Skip to content

25.7 fb container scoping#1022

Merged
labkey-klum merged 12 commits into
release25.7-SNAPSHOTfrom
25.7_fb_container_scoping
Jun 15, 2026
Merged

25.7 fb container scoping#1022
labkey-klum merged 12 commits into
release25.7-SNAPSHOTfrom
25.7_fb_container_scoping

Conversation

@labkey-klum

@labkey-klum labkey-klum commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Rationale

Add permission checks for objects referenced by rowID.

  • Flow module updates with FlowManager integration tests.
  • NAb module updates.
  • Elispot module updates
  • Luminex module updates

Related Pull Requests

@labkey-klum labkey-klum marked this pull request as ready for review June 12, 2026 23:23
@LabKey LabKey deleted a comment from github-actions Bot Jun 12, 2026
if (!selections.isEmpty())
{
// GitHub Kanban #1892: Verify each selected run belongs to the current container before queuing
for (String selection : selections)

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.

nit: We should be cautious of taking data region selections and translating them into single objects / non-aggregate queries. Perhaps the scales here do not warrant change.

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 is the same way that BackgroundSubtractionJob processes the selection values into ExpRun rowIds, so this seems consistent. We could instead push the check down into that BackgroundSubtractionJob.run method if you think that would be better.

ActionURL url = getViewContext().getActionURL();
// Read scriptId from the action URL (falling back to the request parameter) so it resolves under both
// real browser requests and in-JVM mock dispatch, mirroring how runId/compId below are read from the URL.
String scriptIdStr = url.getParameter("scriptId");

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 should not be necessary given the change made in the platform PR to the mocking to support getParameter().

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.

Good catch, I'm not sure why claude thought it was necessary to add this code.

labkey-klum added a commit to LabKey/platform that referenced this pull request Jun 15, 2026
#### Rationale
Small refactors to help introduce better container scoping checks for
NAb actions.

#### Related Pull Requests
- #7747
- LabKey/commonAssays#1022
- LabKey/testAutomation#3042

---------

Co-authored-by: labkey-nicka <nickk@labkey.com>
Co-authored-by: cnathe <cnathe@labkey.com>
labkey-klum added a commit to LabKey/testAutomation that referenced this pull request Jun 15, 2026
#### Rationale
Regression tests for the NAb container scoping updates.

#### Related Pull Requests
- LabKey/platform#7747
- LabKey/commonAssays#1022
- #3042

---------

Co-authored-by: cnathe <cnathe@labkey.com>
@labkey-klum labkey-klum merged commit 3537cba into release25.7-SNAPSHOT Jun 15, 2026
1 of 3 checks passed
@labkey-klum labkey-klum deleted the 25.7_fb_container_scoping branch June 15, 2026 18:09
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.

3 participants