Skip to content

feat: watch abcd shift by qualification - #805

Merged
crosspolar merged 32 commits into
masterfrom
790-watch-abcd-shift-by-qualification
Jul 28, 2026
Merged

feat: watch abcd shift by qualification#805
crosspolar merged 32 commits into
masterfrom
790-watch-abcd-shift-by-qualification

Conversation

@crosspolar

Copy link
Copy Markdown
Contributor

fixed #790

@crosspolar crosspolar linked an issue Jun 14, 2026 that may be closed by this pull request
@crosspolar
crosspolar marked this pull request as ready for review June 16, 2026 20:04
@crosspolar

Copy link
Copy Markdown
Contributor Author

The UX in createRecurringShiftWatch is aweful I have to admit

@Theophile-Madet Theophile-Madet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is fine, but shouldn't there be changes in ShiftWatchCreator._filter_shifts_for_recurring so that only shifts with the selected qualifications are watched?
Also in send_shift_watch_mail, so that it only sends mails about the selected slots, not any slots?

# Conflicts:
#	tapir/translations/locale/de/LC_MESSAGES/django.po
@crosspolar crosspolar changed the title 790 watch abcd shift by qualification feat: watch abcd shift by qualification Jul 10, 2026
@crosspolar

Copy link
Copy Markdown
Contributor Author

send_shift_watch_mail was a good hint, thanks. ShiftWatchCreator._filter_shifts_for_recurring only filters for the temporal patterns such as weekdays or templates, not the targets/triggers such as watched_capability

@Theophile-Madet Theophile-Madet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Comment thread tapir/shifts/management/commands/send_shift_watch_mail.py Outdated
# Conflicts:
#	tapir/translations/locale/de/LC_MESSAGES/django.po
@crosspolar
crosspolar merged commit 5a4b03f into master Jul 28, 2026
9 checks passed
@crosspolar
crosspolar deleted the 790-watch-abcd-shift-by-qualification branch July 28, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch ABCD-shift by qualification

2 participants