Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Merge timed-backend #1089

Draft
wants to merge 1,594 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1594 commits
Select commit Hold shift + click to select a range
32fc509
Merge pull request #779 from aziiee/migration-manager-role
Aug 23, 2021
560fcd8
feat: add `in` filter to assignees
Aug 26, 2021
c9f7f39
Merge pull request #780 from aziiee/add-filter-for-assignees
Aug 26, 2021
7135a3d
fix(reports): use correct columns for calculations
trowik Sep 1, 2021
2a34c75
Merge pull request #781 from trowik/update-workreport
Sep 2, 2021
d60852d
feat(employment): add is_accountant flag for user
trowik Sep 1, 2021
8a87a92
Merge pull request #782 from trowik/add-accounting-flag-for-user
Sep 2, 2021
4c3b40e
fix: add X_FORWARDED_PROTO header
trowik Sep 23, 2021
44b7cdc
Merge pull request #785 from trowik/fix-header-forward
open-dynaMIX Sep 23, 2021
1ba81c4
fix: fix black formatting
trowik Sep 23, 2021
07e9e02
Merge pull request #786 from trowik/fix-header-forward
open-dynaMIX Sep 23, 2021
c12354a
fix: use whitenoise middleware to host admin statics
hairmare Sep 27, 2021
037da27
Merge pull request #790 from hairmare/fix/static-files
Sep 28, 2021
ba1df12
fix(redmine): fix total hours calculation
trowik Sep 28, 2021
72cbd42
Merge pull request #793 from trowik/fix-redmine-total-hours
Sep 29, 2021
bd35967
fix(reports): add logo and udpate font in workreport
trowik Sep 30, 2021
16cf0f0
Merge pull request #794 from trowik/workreport-logo-font
trowik Sep 30, 2021
6480d8c
fix(permissions): rename IsNotBilledAndVerified permissions
trowik Oct 5, 2021
fc4e947
Merge pull request #796 from trowik/fix-reports-update
trowik Oct 5, 2021
20f94ae
fix(tracking): set correct value for billed flag on reports
trowik Oct 13, 2021
98e546f
Merge pull request #799 from trowik/fix-billed-flag-on-reports
trowik Nov 2, 2021
8e09aac
feat(reports): change column for total hours for tasks
trowik Nov 2, 2021
71138ec
Merge pull request #800 from trowik/change-column-for-total-hours-in-…
Nov 2, 2021
e6685cd
fix(fixtures): add user with accountant role
Nov 10, 2021
85811ba
Merge pull request #802 from aziiee/fix-fixtures-accountant-user
Nov 10, 2021
e9b9df2
feat: include user in report-intersection
Nov 10, 2021
a9bc8ab
fix(filters): correct filtering for accountants
Nov 11, 2021
ce1eff4
Merge pull request #803 from aziiee/feat-report-intersection-user
Nov 11, 2021
846ac89
fix(filters): billing should not affect finish state of a report
Nov 11, 2021
dcf43c4
Merge pull request #804 from aziiee/fix-editable-filter
Nov 11, 2021
484b768
feat(settings): add DATA_UPLOAD_MAX_NUMBER_FIELDS to env
trowik Nov 9, 2021
326d3e4
Merge pull request #805 from trowik/data-upload-max-number-fields
trowik Nov 23, 2021
7f907d8
fix(tracking): update reviewer filter
trowik Nov 18, 2021
41db32d
Merge pull request #807 from trowik/reviewer-notifications
Nov 23, 2021
18a4394
feat: update visibility to not depend on employment
trowik Nov 24, 2021
a4dd2d8
Merge pull request #808 from trowik/remove-employment-check
Dec 7, 2021
6ad9b02
feat: update visibility to not depend on employment
trowik Nov 24, 2021
70818bb
feat: create new assignee role
trowik Nov 25, 2021
b246d29
Merge pull request #810 from trowik/new-assignee-role
trowik Dec 9, 2021
1054ad7
fix: update fixtures and keycloak config
Dec 9, 2021
7e1cdac
Merge pull request #813 from aziiee/update-test-data-and-config
Dec 10, 2021
0a0d3ae
fix(docker-compose): add hint for keycloak config export
Dec 10, 2021
a134adf
Merge pull request #819 from aziiee/document-export-command
Dec 10, 2021
0f8d7b1
fix(subscription): fixed visibility on subscription-projects for cust…
trowik Dec 9, 2021
12e9a1e
Merge pull request #812 from trowik/filter-subs-projects
trowik Dec 10, 2021
1860d6d
fix(oidc): update django user data according to OIDC userinfo
trowik Dec 7, 2021
06d5d04
Merge pull request #814 from trowik/update-oidc
trowik Dec 10, 2021
ff4a7d9
feat(subscription): send mail on order creation
trowik Dec 9, 2021
ac618b7
Merge pull request #811 from trowik/cc-mailing
Dec 10, 2021
13e5f2b
feat(settings): add CORS_ALLOWED_ORIGINS to env
trowik Dec 14, 2021
9e32bdc
Merge pull request #821 from trowik/cors-headers
Dec 14, 2021
c3a8c6c
fix(subscriptions/notify_admin): use dateutils parser to prevent an e…
velrest Dec 16, 2021
db19bb8
Merge pull request #823 from velrest/fix_mailing
Dec 17, 2021
63273d2
fix(subscription/notify_admin): check project.estimate before calcual…
velrest Dec 17, 2021
c25e65b
Merge pull request #824 from velrest/fix_mailing
Dec 17, 2021
c7c22ed
chore(deps): bump django from 3.1.7 to 3.1.14
dependabot[bot] Dec 17, 2021
2b78629
Merge pull request #820 from adfinis-sygroup/dependabot/pip/django-3.…
Dec 17, 2021
1d7e45c
chore(deps-dev): bump pytest-django from 4.3.0 to 4.5.2
dependabot[bot] Dec 17, 2021
b5f0a79
Merge pull request #817 from adfinis-sygroup/dependabot/pip/pytest-dj…
Dec 17, 2021
1b2dc95
chore(deps-dev): bump flake8-isort from 4.0.0 to 4.1.1
dependabot[bot] Dec 17, 2021
b06ad05
Merge pull request #825 from adfinis-sygroup/dependabot/pip/flake8-is…
Dec 17, 2021
d1add11
chore: relese 1.5.1
winged Dec 17, 2021
1717948
Merge pull request #827 from winged/bump
velrest Dec 17, 2021
645881d
fix(subscription/notify_admin): prevent invalid addition of datetime …
velrest Dec 17, 2021
c8b2543
Merge pull request #829 from velrest/fix_mailing
Dec 17, 2021
83ded82
chore: release v1.5.2
Dec 20, 2021
99cd3ee
Merge pull request #830 from aziiee/release-v1.5.2
Dec 21, 2021
a821065
fix(filters): make date filter on employments work across timezones
winged Dec 27, 2021
e4f4b9d
Merge pull request #832 from winged/fix_date_filter
fugal-dy Dec 27, 2021
3acb9c6
chore(deps): bump mozilla-django-oidc from 1.2.4 to 2.0.0
dependabot[bot] Dec 28, 2021
daa5bdf
Merge pull request #828 from adfinis-sygroup/dependabot/pip/mozilla-d…
Dec 28, 2021
1db37f6
chore(deps): bump django-nested-inline from 0.4.2 to 0.4.4
dependabot[bot] Dec 28, 2021
e842804
Merge pull request #826 from adfinis-sygroup/dependabot/pip/django-ne…
Dec 28, 2021
6f8f477
chore(deps): bump sentry-sdk from 1.0.0 to 1.5.1
dependabot[bot] Dec 28, 2021
01572a9
Merge pull request #822 from adfinis-sygroup/dependabot/pip/sentry-sd…
Dec 28, 2021
cdb230c
fix(reports): change total hours column in workreport
trowik Dec 28, 2021
ad11137
Merge pull request #836 from trowik/revert-workreport
Dec 29, 2021
fa4f3a6
fix(visibility): restrict visibilty for customers
trowik Dec 21, 2021
b2b87ab
Merge pull request #831 from trowik/fix-customer-visibility
Dec 29, 2021
1ce24bd
fix(auth): username should be case insensitive
Jan 3, 2022
cd5fec5
Merge pull request #839 from aziiee/fix-case-sensitive-username
Jan 3, 2022
1acd374
fix(reports): center total hours column in workreport
trowik Jan 4, 2022
51a10ec
Merge pull request #840 from trowik/center-total-hours
trowik Jan 4, 2022
91751e9
fix(reports): add reviewer hierarchy in notify_reviewers_unverified
trowik Jan 11, 2022
c57e512
Merge pull request #843 from trowik/notify-reviewers
trowik Jan 25, 2022
c68107a
feat: add tls option for emails to env var
trowik Jan 25, 2022
ab89aa8
Merge pull request #845 from trowik/email-tls
trowik Jan 25, 2022
11640f8
fix(SubscriptionProject): incude cost center
Jan 25, 2022
270fbee
Merge pull request #846 from aziiee/subscriptions-include-cost-center
Jan 25, 2022
8a705db
fix(projects): change permissions and visibility for billing types
trowik Jan 27, 2022
5041daa
Merge pull request #847 from trowik/billing-type-permission
Feb 8, 2022
0deaafa
fix(subscription): fix parser and notifications for orders
trowik Feb 8, 2022
f835108
Merge pull request #849 from trowik/order-fix
Feb 10, 2022
e73e716
fix(tracking): allow updating billed reports
trowik Feb 22, 2022
04215cb
Merge pull request #851 from trowik/fix-billed-reports
trowik Feb 23, 2022
ca8b76d
chore(deps): update django to 3.2.13
trowik Apr 14, 2022
b792c07
Merge pull request #856 from trowik/update-django
trowik Apr 14, 2022
257e2ae
chore(reports): update workreport meta data
trowik Apr 4, 2022
8e87046
Merge pull request #855 from trowik/workreport-meta
trowik Apr 14, 2022
8ca44d2
chore(deps)!: update dependencies, rename field
trowik Jun 13, 2022
15dc8fe
Merge pull request #861 from trowik/update-deps
trowik Jun 21, 2022
2895b09
fix(dev-config): add first and last name to dev keycloak config
trowik Jun 21, 2022
c41c698
Merge pull request #862 from trowik/update-dev-keycloak-config
Jun 23, 2022
8fbdf68
chore(changelog): update missing changelog entries + prepare release …
trowik Jun 22, 2022
450923f
Merge pull request #863 from trowik/update-changelog
Jun 23, 2022
0c3fa09
chore(ci): publish container image to ghcr.io
hairmare Jul 19, 2022
505f20d
Merge pull request #870 from hairmare/ci/publish-container-image-to-g…
trowik Jul 19, 2022
2cf3463
chore(ci): fix building on legacy default branch
hairmare Jul 19, 2022
5112475
Merge pull request #873 from hairmare/ci/fix-build-on-legacy-default-…
trowik Jul 20, 2022
a4e8983
feat(tracking): reject reports
trowik Jun 24, 2022
055dc6e
Merge pull request #871 from trowik/reject-reports
Jul 29, 2022
0f44be9
chore: rename github orga from adfinis-sygroup to adfinis
hairmare Aug 4, 2022
48ba932
Merge pull request #879 from hairmare/chore/cleanup-rename
trowik Aug 5, 2022
3d045f2
feat: track remaining effort on tasks
trowik Jul 20, 2022
74671c3
Merge pull request #874 from trowik/remaining-effort
Aug 16, 2022
0245539
chore(deps): bump sentry-sdk from 1.5.12 to 1.9.5
dependabot[bot] Aug 19, 2022
3be293c
Merge pull request #883 from adfinis/dependabot/pip/sentry-sdk-1.9.5
trowik Aug 22, 2022
4c01054
feat(admin): add searchable dropdowns for user lists in admin
trowik Sep 16, 2022
01463f3
Merge pull request #887 from trowik/user-list-filters
Sep 16, 2022
8a1b272
feat(employment): add is_external filter for user endpoint
trowik Sep 16, 2022
2e5847e
Merge pull request #890 from trowik/external-filter
Sep 16, 2022
21d3677
fix(reports): refactor statistics
trowik Aug 15, 2022
b5b9c8d
feat(filters): allow filtering of tasks and reports in statistics
winged Sep 2, 2022
b629c9d
fix(filters): allow Q filtering for MultiQS querysets
trowik Sep 8, 2022
0af5f54
chore: remove unnecessary comment
trowik Sep 16, 2022
29cbdc3
Merge pull request #891 from trowik/filter-stats
trowik Oct 24, 2022
5e3ae64
chore(deps): use poetry for dependency and tool management
trowik Oct 25, 2022
bfb37cf
Merge pull request #897 from trowik/poetry
trowik Oct 27, 2022
fde9d90
chore: add Make commands for easier development
trowik Oct 10, 2022
12701ab
Merge pull request #900 from trowik/make-commands
open-dynaMIX Oct 31, 2022
c7c14f0
refactor(app-server): replace uWSGI with Django Hurricane
fugal-dy Nov 8, 2022
34f2751
fix(container): executable bit for cmd.sh
hairmare Oct 18, 2022
5ecb632
Merge pull request #903 from fugal-dy/django-hurricane-app-server
Nov 9, 2022
3efc77d
chore: prevent poetry from creating virtual environment
trowik Nov 9, 2022
90bf223
Merge pull request #904 from trowik/poetry-virtual-env
Nov 9, 2022
31edbc9
chore: remove poetry prefix from commands
trowik Nov 9, 2022
94a9fde
Merge pull request #906 from trowik/poetry-virtual-env
trowik Nov 9, 2022
0aa9da6
feat(redmine): update expenditures on redmine projects
trowik Nov 8, 2022
9d08324
Merge pull request #908 from trowik/redmine-expanditure-update
trowik Nov 30, 2022
766f79b
feat(redmine): import project expenditure from redmine
trowik Nov 24, 2022
01ad1f2
Merge pull request #911 from trowik/redmine-timed-migration
trowik Dec 5, 2022
144444b
feat(statistics): show amount offered and invoiced in project statistics
trowik Nov 23, 2022
5150eb0
Merge pull request #909 from trowik/project-statistics-add-expenditures
trowik Dec 5, 2022
b81e28e
feat(notifications): project budget check notifications
trowik Sep 1, 2022
293757d
Merge pull request #901 from trowik/budget_check_cronjob
trowik Dec 7, 2022
21e5dd7
fix(projects): ignore signal when loading a fixture
trowik Oct 31, 2022
e1c94c5
Merge pull request #913 from trowik/fix-loaddata-with-signal
trowik Dec 13, 2022
903594e
chore(notifications): move notification commands to notifications app…
trowik Dec 13, 2022
91154c8
fx(cmd): fix collectstatic command in cmd.sh
trowik Dec 14, 2022
d4215de
Merge pull request #917 from trowik/fix-cmd
trowik Dec 14, 2022
a3ab8ac
fix(reports): fix project and customer statistics
trowik Jan 4, 2023
31e4a79
Merge pull request #918 from trowik/fix-statistics
Jan 5, 2023
89fb718
fix(statistics): add missing fields for project and task statistics
trowik Jan 16, 2023
fcbac20
Merge pull request #921 from trowik/statistics-missing-field
Jan 16, 2023
fc7c92c
fix(tracking): fix remaining effort check when creating report
trowik Jan 16, 2023
5063059
Merge pull request #922 from trowik/fix-remainig-effort
trowik Jan 19, 2023
50e5da2
fix(dev): remove deprecated flag from pre-commit isort
fugal-dy Jan 24, 2023
8454601
fix(auth): let failing auth requests return 401
fugal-dy Jan 24, 2023
42a656a
Merge pull request #925 from fugal-dy/fix-unhandled-exception-for-inv…
Jan 26, 2023
ee8f79a
fix: add missing rejected field to ReportIntersectionSerializer
trowik Jan 19, 2023
000984b
Merge pull request #923 from trowik/fix-rejected-intersection
trowik Feb 3, 2023
d884ef6
fix(tracking): fix absence for users with multiple employments
trowik Jan 12, 2023
7dc1574
chore(deps): bump dependencies
trowik Feb 3, 2023
9a37f57
Merge pull request #919 from trowik/fix-absence
trowik Feb 6, 2023
3129b2e
Merge branch 'master' into update-deps
trowik Feb 6, 2023
8f3965c
Merge pull request #927 from trowik/update-deps
trowik Feb 6, 2023
08a5aa4
fix(tracking): allow null values on remaining effort for reports
trowik Feb 9, 2023
1ab0b82
Merge pull request #928 from trowik/testing
trowik Feb 9, 2023
91a6dd5
fix(notifications): omit projects with no reports
trowik Feb 13, 2023
93d9f5e
Merge pull request #929 from trowik/fix-budget-check
trowik Feb 13, 2023
16f1dbb
fix(tracking): fix setting of remaining effort
trowik Feb 14, 2023
903980c
Merge pull request #931 from trowik/total-remaining-effort
trowik Feb 15, 2023
abc5083
feat(redmine): add pretend mode to redmine commands
trowik Feb 13, 2023
f3a3221
Merge pull request #932 from trowik/pretend-mode
trowik Feb 15, 2023
a05f099
chore(deps): bump django from 3.2.16 to 3.2.18
dependabot[bot] Feb 17, 2023
4750bcf
doc: update and fix commands
derrabauke Feb 17, 2023
abceb32
fix(tracking): fix remaining effort on report creation
trowik Feb 20, 2023
79a8316
Merge pull request #938 from trowik/fix-re-creation
trowik Feb 20, 2023
4688e41
feat(filters): add number multi value filter
derrabauke Feb 17, 2023
48961a4
Merge pull request #936 from adfinis/feat-multi-number-filter
derrabauke Feb 20, 2023
a0d7588
Merge branch 'master' into dependabot/pip/django-3.2.18
derrabauke Feb 21, 2023
5b8d9ce
Merge pull request #935 from adfinis/dependabot/pip/django-3.2.18
trowik Feb 22, 2023
fa78592
chore(deps): bump cryptography from 38.0.3 to 39.0.1
dependabot[bot] Feb 22, 2023
2151dd9
Merge pull request #939 from adfinis/dependabot/pip/cryptography-39.0.1
trowik Feb 22, 2023
f110eb0
fix(tracking): fix automatic unreject when bulk updating
trowik Feb 22, 2023
553e914
Merge pull request #941 from trowik/fix-unreject
trowik Feb 24, 2023
79f3809
chore: release v3.0.0
trowik Feb 27, 2023
7e8dd0b
Merge pull request #943 from trowik/release-notes
trowik Feb 27, 2023
a8994c8
chore(reports): disable project and customer statistics
trowik Feb 27, 2023
7dbb343
Merge pull request #944 from trowik/disable-stats
trowik Feb 27, 2023
9c47123
fix(makefile): use aliases for debug backend
winged Feb 28, 2023
8b6d215
chore: use correct frontend image reference
winged Feb 28, 2023
345b8df
fix(statistics): refactor multiqs to use filtering aggregates
winged Feb 28, 2023
6e111af
refactor(statistics): use alternate lookup for foreign keys
winged Feb 28, 2023
fb5a2dc
feat(statistics): support ordering in new queryset wrapper
winged Feb 28, 2023
bb8e8b7
chore(api): re-enable statistics views
winged Feb 28, 2023
4e08672
fix(pytest): ignore "invalid escape sequence" deprecation warning
winged Feb 28, 2023
c99b512
fix(tests): customer statistic test had a missing customer
winged Feb 28, 2023
bc526d7
Merge pull request #947 from winged/fix_statistics
trowik Feb 28, 2023
8d0d0fd
fix(tracking): fix report update notifactions
trowik Feb 28, 2023
757ac53
Merge pull request #945 from trowik/fix-report-change-reject
trowik Feb 28, 2023
757de4e
feat: empty sums in correcr ordering
winged Feb 28, 2023
5713799
Merge pull request #949 from winged/fix_ordering_in_stats
trowik Feb 28, 2023
cd3b312
chore: release v3.0.1
trowik Feb 28, 2023
e444308
Merge pull request #950 from trowik/patch-release
trowik Feb 28, 2023
6e1f4c8
fix(redmine): fix NoneType for amount offered/invoiced for projects
trowik Mar 1, 2023
bf79cac
chore(reject template): add further information to reject mail template
tongpu Mar 2, 2023
3472e6a
chore(reject template): add further information to reject mail template
tongpu Mar 2, 2023
a53039e
Merge pull request #952 from tongpu/chore/update_reject_mail_template
tongpu Mar 2, 2023
e70ae5a
Merge branch 'master' into fix-timed-redmine-sync
trowik Mar 2, 2023
fde8b9c
Merge pull request #951 from trowik/fix-timed-redmine-sync
trowik Mar 2, 2023
43edfc7
chore: release v3.0.2
trowik Mar 2, 2023
5e51b67
Merge pull request #953 from trowik/v3.0.2-release-notes
trowik Mar 2, 2023
5f6bc53
fix(redmine): fix value check for custom fields
trowik Mar 14, 2023
74ebdbe
Merge pull request #954 from trowik/fix-import-project-data
Mar 15, 2023
41611b3
chore: release v3.0.3
trowik Mar 15, 2023
23b1a87
Merge pull request #955 from trowik/release-v3.0.3
Mar 15, 2023
7f0ebab
chore(dockerfile): pin wait-for-it version
derrabauke Mar 24, 2023
ba08639
Merge pull request #957 from adfinis/chore-pin-wait-for-it-image
trowik Mar 27, 2023
fc1f631
fix(redmine): log estimated_hours in update_project_expenditure command
trowik Apr 3, 2023
2abbcac
chore(docker): install wait-for-it from debian package
trowik Apr 4, 2023
90d43b8
Merge pull request #961 from trowik/dockerfile
Apr 4, 2023
9a24008
Merge branch 'master' into redmine-timed
trowik Apr 5, 2023
7f77f3f
Merge pull request #959 from trowik/redmine-timed
trowik Apr 5, 2023
393d546
chore: release v3.0.4
trowik Apr 5, 2023
c81d5f5
Merge pull request #962 from trowik/release-v3.0.4
trowik Apr 5, 2023
6a5d0ed
fix(tracking): fix updating own rejected reports and rejecting own re…
trowik May 3, 2023
29bab49
Merge pull request #964 from trowik/fix-rejected-report
trowik May 3, 2023
24c6d19
chore(deps): update dependencies and pin django to 3.2.19
trowik May 8, 2023
c464aa0
chore(subscription): update choices for currency
trowik May 8, 2023
fe54dde
chore(deps): pin openpyxl to version 3.0.10
trowik May 9, 2023
fd843ea
Merge pull request #965 from trowik/django-bump-3.2.19
trowik May 15, 2023
b269b06
chore(release): v3.0.5
trowik May 9, 2023
190bfd0
Merge pull request #966 from trowik/release-v3.0.5
May 15, 2023
b5c509b
chore(redmine): add redmine issue id to log
trowik May 24, 2023
e747d8b
Merge pull request #968 from trowik/redmine-sync-issue-number
May 25, 2023
25d16a6
chore(release): v3.0.6
trowik May 25, 2023
45ffd50
Merge pull request #969 from trowik/release-v3.0.6
trowik May 25, 2023
9cd1aee
refactor(redmine): remove spent hours from redmine bot
trowik May 30, 2023
c6a3510
Merge pull request #971 from trowik/remove-spent-hours
trowik May 30, 2023
5f613d1
fix(redmine): convert Decimal objects to floats
trowik Jun 14, 2023
c9e516e
Merge pull request #974 from trowik/fix-bot
trowik Jun 14, 2023
4d2a636
chore(deps): update dependencies (#973)
trowik Jun 14, 2023
3e06680
chore(release): v3.0.7 (#975)
trowik Jun 15, 2023
c4822ff
chore: update dependencies and format code
trowik Jun 28, 2023
5d8cef4
Merge pull request #976 from trowik/maintenance
Jun 28, 2023
d12d884
chore: move frontend files into frontend subdirectory
trowik Nov 29, 2023
26de904
Merge remote-tracking branch 'timed-backend/master' into test-merge
trowik Nov 29, 2023
22c5ba2
chore: move backend files into backend subdirectory
trowik Nov 29, 2023
c795ef8
WIP: restructuring files for mono repo
trowik Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ insert_final_newline = false

[*.{diff,md}]
trim_trailing_whitespace = false

[*.py]
indent_size = 4
22 changes: 21 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,31 @@ updates:
time: "12:00"
timezone: "Europe/Zurich"
- package-ecosystem: npm
directory: "/"
directory: "/frontend"
schedule:
interval: "weekly"
day: "friday"
time: "12:00"
timezone: "Europe/Zurich"
open-pull-requests-limit: 10
versioning-strategy: increase
- package-ecosystem: pip
directory: "/backend"
schedule:
interval: weekly
day: friday
time: "12:00"
timezone: "Europe/Zurich"
commit-message:
prefix: chore
include: scope
- package-ecosystem: docker
directory: "/"
schedule:
interval: weekly
day: friday
time: "12:00"
timezone: "Europe/Zurich"
commit-message:
prefix: chore
include: scope
11 changes: 7 additions & 4 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release ghcr image
name: Release ghcr images

on:
release:
Expand All @@ -7,6 +7,9 @@ on:
jobs:
container:
runs-on: ubuntu-latest
strategy:
matrix:
target: [frontend, backend]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -15,11 +18,11 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/adfinis/timed-frontend
images: ghcr.io/adfinis/timed-${{ matrix.target }}
flavor: |
latest=auto
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.title=${{ github.event.repository.name }}-${{ matrix.target }}
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
Expand All @@ -38,7 +41,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
file: ./${{ matrix.target }}/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release npm package

on: workflow_dispatch

env:
frontend-dir: ./frontend

jobs:
release:
name: Release
Expand All @@ -24,9 +27,11 @@ jobs:

- name: Install dependencies
run: pnpm install
working-directory: ${{ env.frontend-dir }}

- name: Release on NPM
run: pnpm semantic-release
working-directory: ${{ env.frontend-dir }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 31 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ on:

env:
NODE_VERSION: 18
frontend-dir: ./frontend
backend-dir: ./backend

jobs:
lint:
lint-frontend:
name: Lint
runs-on: [ubuntu-latest]
timeout-minutes: 5
Expand All @@ -39,13 +41,15 @@ jobs:

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
working-directory: ${{ env.frontend-dir }}

- name: Lint ${{ matrix.target }}
run: pnpm lint:${{ matrix.target }}
working-directory: ${{ env.frontend-dir }}

test:
test-frontend:
name: Tests
needs: [lint]
needs: [lint-frontend]
runs-on: [ubuntu-latest]
timeout-minutes: 10

Expand All @@ -64,13 +68,37 @@ jobs:

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
working-directory: ${{ env.frontend-dir }}

- name: Run tests
run: pnpm test
working-directory: ${{ env.frontend-dir }}
env:
COVERAGE: true

- name: upload coverage report to codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage/lcov.info

test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: .venv
key: poetry-${{ hashFiles('poetry.lock')}}
restore-keys: |
peotry-
- name: Build the project
run: |
echo "ENV=dev" > .env
docker-compose up -d --build backend
- name: Lint the code
run: |
docker-compose exec -T backend black --check .
docker-compose exec -T backend flake8
docker-compose exec -T backend python manage.py makemigrations --check --dry-run --no-input
- name: Run pytest
run: docker-compose exec -T backend pytest --no-cov-on-fail --cov --create-db -vv
108 changes: 79 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,87 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp

# dependencies
/node_modules
/bower_components
# VSCode
.vscode/

# misc
/.sass-cache
/.eslintcache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log*
testem.log
*.swp
*.orig
# PyCharm
.idea/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# vscode
jsconfig.json
# Translations
*.mo
*.pot

/.vscode/
/.idea/
# Django stuff:
*.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
# Sphinx documentation
docs/_build/

# broccoli-debug
/DEBUG/
# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints

# Pyenv
.python-version

# Editor swap files
*.swp

# local .env file
.env

# pytest
.pytest_cache

# dependencies
/node_modules
/bower_components
8 changes: 0 additions & 8 deletions .husky/commit-msg

This file was deleted.

8 changes: 0 additions & 8 deletions .husky/pre-commit

This file was deleted.

3 changes: 3 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code owners for the Timed backend.
* @adfinis/dev-backend
* @adfinis/dev-frontend
65 changes: 65 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Contributing

Contributions to Timed are very welcome! Best have a look at the open [issues](https://github.com/adfinis/timed)
and open a [GitHub pull request](https://github.com/adfinis/timed/compare). See instructions below how to setup development
environment. Before writing any code, best discuss your proposed change in a GitHub issue to see if the proposed change makes sense for the project.

## Setup development environment

### Clone

To work on Timed you first need to clone

```bash
git clone https://github.com/adfinis/timed.git
cd timed
```

### Open Shell

Once it is cloned you can easily open a shell in the docker container to
open a development environment.

```bash
make shell
```

### Testing

Once you have shelled in to the docker container as described above
you can use common python tooling for formatting, linting, testing
etc.

```bash
# linting
poetry run flake8
# format code
poetry run black .
# running tests
poetry run pytest
# create migrations
poetry run python manage.py makemigrations
```

Writing of code can still happen outside the docker container of course.

### Install new requirements

In case you're adding new requirements you simply need to build the docker container
again for them to be installed and re-open shell.

```bash
docker-compose build --pull
```

### Setup pre commit

Pre commit hooks are an additional option instead of executing checks in your editor of choice.

First create a virtualenv with the tool of your choice before running below commands:

```bash
pip install pre-commit
pip install -r requiements-dev.txt -U
pre-commit install
```
Loading