Skip to content

fix(migration): remove the personal calendars 1.0.12 stored - #275

Merged
skjnldsv merged 1 commit into
mainfrom
fix/remove-old-personal-calendars
Nov 26, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/remove-old-personal-calendars

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

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 as app-generated--absence--absence and 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-by trailer.

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>
@skjnldsv skjnldsv added 3. to review Waiting for reviews bug Something isn't working AI assisted This PR contains AI-assisted commits labels Nov 26, 2026
@skjnldsv skjnldsv self-assigned this Nov 26, 2026
@skjnldsv
skjnldsv merged commit 4fcb115 into main Nov 26, 2026
66 checks passed
@skjnldsv
skjnldsv deleted the fix/remove-old-personal-calendars branch November 26, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted This PR contains AI-assisted commits bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant