Skip to content

Defer population of attachment parent types even further#7530

Merged
labkey-adam merged 1 commit intodevelopfrom
fb_extra_deferred
Mar 28, 2026
Merged

Defer population of attachment parent types even further#7530
labkey-adam merged 1 commit intodevelopfrom
fb_extra_deferred

Conversation

@labkey-adam
Copy link
Copy Markdown
Contributor

@labkey-adam labkey-adam commented Mar 27, 2026

Rationale

Upgrade tests started failing after the related PR was merged. The change to correctly detect the Structure2D attachment column in Compounds seems more sensitive to the underlying columns vs. the previous approach. core.populateAttachmentParentTypeColumn() (which uses the data class parent type that examines the tables) runs before exp.addRowIdToProvisionedDataClassTables() (which alters the tables, removing ClassId). The solution is to throw the attachment parent type upgrade in a StartupListener, which runs after all @DeferredUpgrades.

Also, re-run that parent type upgrade on all deployments to fix ParentType values for those Structure2D columns.

And remove all previous invocations of this upgrade code; we need only one.

Related Pull Requests

@labkey-adam labkey-adam requested a review from XingY March 27, 2026 22:53
@labkey-adam labkey-adam merged commit a61333a into develop Mar 28, 2026
15 of 16 checks passed
@labkey-adam labkey-adam deleted the fb_extra_deferred branch March 28, 2026 16: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.

2 participants