Skip to content

[OU-ADD] iap: backfill service_id from legacy service_name#37

Open
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-iap-pre-migration
Open

[OU-ADD] iap: backfill service_id from legacy service_name#37
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-iap-pre-migration

Conversation

@dnplkndll

@dnplkndll dnplkndll commented May 26, 2026

Copy link
Copy Markdown

Backfills iap.account.service_id from the preserved openupgrade_legacy_*_service_name column — the real-production shape found in the Ledo prod dry-run (gotcha #11): DBs that lived through pre-18.0 upgrades carry the legacy column and rows whose service link was lost.

Rebased 2026-07-13 on top of upstream OCA/OpenUpgrade#5800 (which marked iap Nothing to do | No DB layout changes.). That verdict is correct for the 18→19 hop on a pristine schema and incomplete for upgrade-scarred DBs — this PR's docsource hunk deliberately overrides it, and tests/data_iap_migration.py recreates the scar on the CI seed so the migration test itself executes the backfill (logged_query shows the rows moved). On a DB without the legacy column the script is a guarded no-op.

https://claude.ai/code/session_01MpdyzmGjVAYqAEqMYr3EnX

@dnplkndll dnplkndll force-pushed the 19.0-mig-iap-pre-migration branch from 212e9f0 to 1f8b453 Compare May 27, 2026 01:23
@dnplkndll dnplkndll force-pushed the 19.0-mig-iap-pre-migration branch from 1f8b453 to b01bcfa Compare June 3, 2026 15:43
@dnplkndll dnplkndll force-pushed the 19.0-mig-iap-pre-migration branch 3 times, most recently from 6fa0854 to 0c928dd Compare June 20, 2026 13:35
@dnplkndll dnplkndll marked this pull request as ready for review June 20, 2026 13:37
@dnplkndll dnplkndll force-pushed the 19.0-mig-iap-pre-migration branch 2 times, most recently from ded2721 to b9fb2a8 Compare July 13, 2026 18:04
Upgrade-scarred DBs keep the preserved legacy column with service_id NULL
despite 19.0's required=True — warns at every schema sync until relinked.
@dnplkndll dnplkndll force-pushed the 19.0-mig-iap-pre-migration branch from b9fb2a8 to e1ad1d7 Compare July 13, 2026 19:36
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