Repository navigation
Admin : Empêcher la modification directe de la date de fin d’un PASS IAE - #6484
Merged
Merged
Conversation
francoisfreitag
marked this pull request as draft
July 7, 2025 13:57
Member
Author
|
Passée en brouillon car le support modifie parfois la date de fin. |
Member
Author
|
À résoudre :
|
francoisfreitag
force-pushed
the
ff/approval-end-date
branch
2 times, most recently
from
August 19, 2025 12:36
36dd997 to
bb209ef
Compare
francoisfreitag
marked this pull request as ready for review
August 19, 2025 12:44
francoisfreitag
force-pushed
the
ff/approval-end-date
branch
from
August 19, 2025 12:44
bb209ef to
ff6a208
Compare
|
🥁 La recette jetable est prête ! 👉 Je veux tester cette PR ! |
francoisfreitag
force-pushed
the
ff/approval-end-date
branch
from
August 19, 2025 13:22
ff6a208 to
f4d42bb
Compare
xavfernandez
approved these changes
Aug 20, 2025
francoisfreitag
force-pushed
the
ff/approval-end-date
branch
2 times, most recently
from
August 21, 2025 13:25
4ea079e to
04914a8
Compare
Helps developers know where to insert their values.
This field is tricky. It is maintained via a PostgreSQL trigger, so that prolongations and suspensions update the `end_at` value. In a typical support team operation, they would open the Approval admin page (with the old end_at), then add a prolongation in another tab, comment on the approval admin page with the Zendesk ticket, and save the approval. However, the `end_date` has not been refreshed after the prolongation was saved, so the `end_date` computed by the trigger is overwritten by the `end_date` submitted by the team member.
francoisfreitag
force-pushed
the
ff/approval-end-date
branch
from
August 21, 2025 13:28
04914a8 to
d1a814f
Compare
Member
Author
|
J’ai ajouté des logs et rebasé sur les changements liés à |
In rare cases, the support team needs to close an approval. They would manually set the end date to yesterday, remove future prolongations and suspensions, and set the ongoing suspensions and prolongations end date to yesterday.
Prevent common errors: - forgetting to update the end_at field - allowing a prolongation or suspension to start before the beginning of the Approval
francoisfreitag
force-pushed
the
ff/approval-end-date
branch
from
August 21, 2025 14:46
d1a814f to
af5e3c1
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🤔 Pourquoi ?
Éviter la mise à jour accidentelle de la date de fin du PASS IAE, dans le cas fréquent :
Dans ce déroulé, il manque une étape après 2., pour recharger la page du PASS IAE avec la nouvelle date de fin. C’est facile à oublier et cause des problèmes aux employeurs, car la durée du PASS est réduite sans raison.