Repository navigation
DONT MERGE fix(ZMSKVR-1142): reject appointments-per-mail value 1 #3001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ThomasAFink
wants to merge
20
commits into
next
Choose a base branch
from
feature-zmskvr-1142-max-appointments-per-mail
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d5bc6a3
fix(ZMSKVR-1142): reject appointments-per-mail value 1
ThomasAFink 789bca3
fix(ZMSKVR-1142): stop using appointments_per_mail=1 in test fixtures
ThomasAFink 9036274
fix(ZMSKVR-1142): restore citizenapi process fixture appointmentsPerMail
ThomasAFink 128469c
fix(ZMSKVR-1142): constrain appointmentsPerMail to allowed domain
ThomasAFink 9015ad1
fix(ZMSKVR-1142): require appointmentsPerMail empty or > 1
ThomasAFink ea2216e
fix(ZMSKVR-1142): restore acceptance-criteria copy for appointmentsPe…
ThomasAFink 186e67f
Merge branch 'next' into feature-zmskvr-1142-max-appointments-per-mail
ThomasAFink 48bdee3
fix(ZMSKVR-1142): generalize appointmentsPerMail validation message
ThomasAFink a22af4c
fix(ZMSKVR-1142): note empty appointmentsPerMail means unlimited
ThomasAFink 453ee04
feat(ZMSKVR-1142): use unlimited checkbox for appointmentsPerMail
ThomasAFink 687c81b
fix(ZMSKVR-1142): tighten appointmentsPerMail unlimited UX
ThomasAFink 2145784
fix(ZMSKVR-1142): force short side-by-side appointmentsPerMail controls
ThomasAFink 1b83410
fix(ZMSKVR-1142): use +/- counter for appointmentsPerMail
ThomasAFink 6c9ae19
Potential fix for pull request finding 'CodeQL / Unused variable, imp…
ThomasAFink 0cc43bc
Merge branch 'next' into feature-zmskvr-1142-max-appointments-per-mail
ThomasAFink 1c9fb9d
fix(ZMSKVR-1142): keep a single input id and make the mail-limit coun…
ThomasAFink b419a16
Merge branch 'next' into feature-zmskvr-1142-max-appointments-per-mail
ThomasAFink 23ac295
Merge branch 'next' into feature-zmskvr-1142-max-appointments-per-mail
ThomasAFink 71b22e8
chore(ZMSKVR-1142): merge next and keep rebooking plus mail-limit UI
ThomasAFink 5e5017a
chore(ZMSKVR-1142): fix Umbuchung formgroup indentation after merge
ThomasAFink File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
zmsbackend/migrations/91785021142-bump-appointments-per-mail-min-two.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| -- 1 blocks citizen reschedule (needs room for the temporary second booking). | ||
| -- 0 is treated as unlimited already; normalize to NULL. | ||
| UPDATE `standort` | ||
| SET `appointments_per_mail` = 2 | ||
| WHERE `appointments_per_mail` = 1; | ||
|
|
||
| UPDATE `standort` | ||
| SET `appointments_per_mail` = NULL | ||
| WHERE `appointments_per_mail` = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ce/fixtures/ProcessTest/testAppointmentIsAllowedBecauseEMailDomainIsWhitelisted/setup.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| UPDATE standort SET appointments_per_mail = 1, whitelisted_mails = "test@gmail.com,@mail.com" WHERE StandortID = 140; | ||
| UPDATE standort SET appointments_per_mail = 2, whitelisted_mails = "test@gmail.com,@mail.com" WHERE StandortID = 140; | ||
| UPDATE buerger SET EMail = "testmail@mail.com" WHERE absagecode = "a156"; | ||
| UPDATE buerger SET EMail = "testmail@mail.com" WHERE absagecode = "c01b"; |
2 changes: 1 addition & 1 deletion
2
.../Service/fixtures/ProcessTest/testAppointmentIsAllowedBecauseEMailIsWhitelisted/setup.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| UPDATE standort SET appointments_per_mail = 1, whitelisted_mails = "testmail@mail.com" WHERE StandortID = 140; | ||
| UPDATE standort SET appointments_per_mail = 2, whitelisted_mails = "testmail@mail.com" WHERE StandortID = 140; | ||
| UPDATE buerger SET EMail = "testmail@mail.com" WHERE absagecode = "a156"; | ||
| UPDATE buerger SET EMail = "testmail@mail.com" WHERE absagecode = "c01b"; |
2 changes: 1 addition & 1 deletion
2
...fixtures/ProcessTest/testAppointmentIsNotAllowedBecauseEMailLimitationIsReached/setup.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| UPDATE standort SET appointments_per_mail = 1, whitelisted_mails = "somemail@mail.com" WHERE StandortID = 140; | ||
| UPDATE standort SET appointments_per_mail = 2, whitelisted_mails = "somemail@mail.com" WHERE StandortID = 140; | ||
| UPDATE buerger SET EMail = "testmail@mail.com" WHERE absagecode = "a156"; | ||
| UPDATE buerger SET EMail = "testmail@mail.com" WHERE absagecode = "c01b"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.