Skip to content

[OU-ADD] event: question m2o→m2m + slots migration#56

Open
dnplkndll wants to merge 4 commits into
19.0from
19.0-mig-event-slots-questions
Open

[OU-ADD] event: question m2o→m2m + slots migration#56
dnplkndll wants to merge 4 commits into
19.0from
19.0-mig-event-slots-questions

Conversation

@dnplkndll

Copy link
Copy Markdown

Migration work on the ledoent/OpenUpgrade fork (internal review).

  • event.question.event_id/event_type_id (m2o) → event_ids/event_type_ids
    (m2m): post-migration m2o_to_x2m populates the new join tables.
  • pre-migration deletes the obsolete noupdate event_stage_cancelled stage.
  • noupdate_changes_work.xml reloads only the event_mail_scheduler cron;
    the three mail.template body_html drifts are omitted to preserve
    operator edits.

@dnplkndll dnplkndll force-pushed the 19.0-mig-event-slots-questions branch 4 times, most recently from 99903fb to 8a883d8 Compare May 30, 2026 03:17
@dnplkndll dnplkndll force-pushed the 19.0-mig-event-slots-questions branch 2 times, most recently from 0e12b6c to 5e2949d Compare June 5, 2026 19:53
@dnplkndll dnplkndll force-pushed the 19.0-mig-event-slots-questions branch 3 times, most recently from fdec7b1 to e947125 Compare June 17, 2026 12:44
- event.question.event_id/event_type_id (m2o) → event_ids/event_type_ids
  (m2m): post-migration m2o_to_x2m populates the new join tables.
- pre-migration deletes the obsolete noupdate event_stage_cancelled stage.
- noupdate_changes_work.xml reloads only the event_mail_scheduler cron;
  the three mail.template body_html drifts are omitted to preserve
  operator edits.
event.event.stage_id is ondelete='restrict' — the raw DELETE crashed on
any DB with a cancelled event (and left the imd row behind). Remap to the
Ended stage with kanban_state='cancel' (19's replacement), then use the
safe-delete helper. Also restore the rebuilt badge mail template into the
loaded noupdate work file: 19 rebuilt the badge flow and dropped the old
reports the 18 body references.
…odel

event.stage isn't in the registry during event's pre-migration (KeyError
caught by the enriched gate's first post-#106 run); resolve the stage ids
from ir_model_data and delete the remapped stage + its imd row in SQL.
@dnplkndll dnplkndll force-pushed the 19.0-mig-event-slots-questions branch from e947125 to 5e03438 Compare June 19, 2026 11:59
The post-migration load_data reloads event_registration_mail_template_badge
(mail.template) whose body_html changed in 19.0, but omitted
delete_record_translations — stale 18.0 per-language translations would shadow
the new source for non-English users (the check-17 class).
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.

1 participant