23 Commits

Author SHA1 Message Date
3727c84f3e
refactor: code style changes
Signed-off-by: miguel456 <me@nogueira.codes>
2023-01-15 00:04:00 +00:00
0941023aef
fix: check if absence is cancellable in expiry check instead
Approved & pending absences can be cancelled. Initial actionability check only accounts for pending absences. Fixes issue where expired absences wouldn't be ended.

Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-19 03:05:55 +00:00
228750e1c3
fix: check actual absence relationship instead of id
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-19 02:59:25 +00:00
4a2061fbf9
fix: prevent flood of absence expiry notifcation emails
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-12 22:09:42 +00:00
35d112a5ca
fix: check if absence is ended
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 01:19:58 +00:00
27ba576678
fix: remove n+1 absence notification
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 00:56:56 +00:00
b89d71b371
Revert "Revert "merge 1""
This reverts commit 0c463d1f10145bf99dd63fd7128f992ab2371ffb.
2022-10-24 01:04:22 +01:00
0c463d1f10
Revert "merge 1"
This reverts commit 0bc6c20a6d6ad9b906827b9d3f3034a811178f60.
2022-10-24 01:03:43 +01:00
0bc6c20a6d
merge 1
Signed-off-by: miguel456 <me@nogueira.codes>
2022-10-24 01:01:10 +01:00
a265debe4c feat: add account unlock/lock notifications 2022-03-07 19:43:14 +00:00
a4f41b8f8d fix: add constraint actions to db structure
This commit adds several missing "cascade delete" actions to relationships on database tables. This effectively fixes errors while trying to delete user accounts because of pending child records.

Additionally, the observers for applications and vacancies were removed, since they are now obsolete.

The account deletion system was also refactored.
2022-03-07 18:14:42 +00:00
294c678283 Fix broken opt-in notifications 2022-02-11 00:51:16 +00:00
025f69f622 Update email salutations/greetings 2022-02-10 20:33:08 +00:00
6a4ba00c78 Prepared Pusher push notifications 2022-02-07 22:54:10 +00:00
befc2ebdc6
Added better cancel log message
Added a better cancellation log message that details the reason for cancelling the appointment.
2021-11-05 10:36:19 +00:00
fce6e92d9d
Added an appointment cancellation button 2021-11-03 00:38:20 +00:00
59cfbd7ed1
Fix broken suspension cleaner
This commit rewrites the previously broken auto ban cleaner. It's now much more efficient and compact, and it removes bans correctly and on the right date.

Fixes #1
2021-10-30 03:53:32 +01:00
3f4bc28fd4
Added Demo mode
Demo mode allows to safely run a demo version of the app, with destructive features limited.

Some bugs were also fixed in this commit.
2021-09-04 00:44:54 +01:00
8942623bde
Added services
This commit moves most controller logic onto Services. Services are part of the Service-Repository pattern. The models act as repositories.

Services are easily testable and are needed for the upcoming API, in order to avoid duplicated code and to maintain a single source of "truth".

 The User, Vacancy and Vote controllers still need their logic moved onto services.
2021-07-25 22:54:15 +01:00
c739933668
Push suspension logic onto Service
In preparation to the upcoming API, most logic is being moved to services. Models function as repositories.
2021-07-21 19:33:52 +01:00
96aa01b9c6 Recent changes 2020-11-02 21:44:05 +00:00
6541e25a39 Apply fixes from StyleCI 2020-10-10 16:30:26 +00:00
596a469e15 Add user invitation facilities RSM-5
Adds user invitation to teams, and framework for assigning taems
Also adds user acc. deletion.
2020-10-08 19:19:10 +01:00