Skip to content

GitHub Issue #1037: Calculated columns on assays don't get round tripped through folder archive - #7959

Open
cnathe wants to merge 5 commits into
developfrom
fb_assayCalcField
Open

GitHub Issue #1037: Calculated columns on assays don't get round tripped through folder archive#7959
cnathe wants to merge 5 commits into
developfrom
fb_assayCalcField

Conversation

@cnathe

@cnathe cnathe commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Rationale

https://github.com/LabKey/internal-issues/issues/1037

Assay calculated columns are exported as query metadata XML overrides against per-protocol schemas (assay.General.<name>). QueryImporter.process() runs before the XAR importer creates the protocols, so the query xml files for these assay protocols get dropped with a warning. The fix stashes those files in a new deferredMetadataFiles map and replays them from postProcess(), after every importer's process() has run.

Related Pull Requests

Changes

  • QueryImporter to track deferredMetadataFiles and attempt to createQueryDef for them in postProcess

…attempt to createQueryDef for them in postProcess
@cnathe cnathe self-assigned this Aug 20, 2026
@cnathe
cnathe requested a review from XingY August 20, 2026 19:08

for (Map.Entry<String, QueryDocument> entry : qic.deferredMetadataFiles.entrySet())
{
String metaFileName = entry.getKey();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems mostly duplicate code inside process. Can those be refactored?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, done

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