Repository navigation
fix(migration): remove the personal calendars 1.0.12 stored - #275
Merged
Merged
Conversation
Up to 1.0.12, Absence copied approved leave into a calendar stored in each employee's calendar home under the uri `absence`. The built-in personal calendar is listed as `app-generated--absence--absence` and does not replace it, so after the upgrade people saw every leave twice, and the old copy never followed a cancellation. The upgrade now deletes those calendars for good when they only hold the events 1.0.12 wrote (`absence-<request id>-<8 hex>.ics`, trashed ones included). A calendar with events of the person's own keeps them and only loses the leave. An empty one goes only under the name 1.0.12 gave it. The 1.0.12 upgrade check seeds two such calendars and verifies the result. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
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.
Up to 1.0.12, Absence copied approved leave into a calendar stored in each employee's calendar home, under the uri
absence. The built-in calendar is listed asapp-generated--absence--absenceand doesn't replace it, so after the upgrade people see every leave twice, and the old copy never follows a cancellation.The upgrade now deletes those calendars when they only hold the events 1.0.12 wrote. A calendar with events of the person's own keeps them and only loses the leave. An empty one only goes if it still has the name 1.0.12 gave it.
New integration test, and the 1.0.12 upgrade check now seeds two such calendars and checks them after
occ upgrade. I ran that upgrade locally on NC 34 with SQLite; CI covers MySQL and PostgreSQL.👾 This pull request was assisted by Claude Code, commits carry an
Assisted-bytrailer.