Skip to content

GitHub Issue 1058: Sample Finder saved views in subfolder break after MVTC to TC conversion#7585

Open
XingY wants to merge 4 commits intodevelopfrom
fb_issue1058
Open

GitHub Issue 1058: Sample Finder saved views in subfolder break after MVTC to TC conversion#7585
XingY wants to merge 4 commits intodevelopfrom
fb_issue1058

Conversation

@XingY
Copy link
Copy Markdown
Contributor

@XingY XingY commented Apr 15, 2026

Rationale

MVTC to TC conversion breaks subfolder views because the listener only scanned the current container. The same issue is reproducible when renaming a data type. This PR adds a new getDatabaseCustomViews util that queries custom view from all product folders.

Related Pull Requests

Changes

@XingY XingY requested a review from labkey-matthewb April 16, 2026 01:33

for (Map.Entry<Container, List<CstmView>> containerCstmViews: containerViews.entrySet())
{
Map<String, UserSchema> schemas = new HashMap<>();
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.

DefaultSchema caches its children schema. Grab a default schema here (user,container)

QueryDefinition queryDef = queryDefs.get(key);
if (queryDef == null)
{
UserSchema schema = schemas.get(cstmView.getSchema());
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.

Use the DefaultSchema here to resolve the UserSchema.

Copy link
Copy Markdown
Contributor

@labkey-matthewb labkey-matthewb left a comment

Choose a reason for hiding this comment

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

Approved, see small optimization suggestion

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