-
Notifications
You must be signed in to change notification settings - Fork 4
25.7 fb container scoping #1022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
labkey-klum
wants to merge
11
commits into
release25.7-SNAPSHOT
Choose a base branch
from
25.7_fb_container_scoping
base: release25.7-SNAPSHOT
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
65d29f9
Validate container permissions
labkey-klum 21b7858
More container scoping plus unit tests.
labkey-klum fe53b58
Container scoping for NAb
labkey-klum f251ba7
Container scoping for NAb including automation
labkey-klum 489bfc6
Linked to study support for contextual roles
labkey-klum 844321b
Container scope
labkey-nicka 36776b6
ExperimentService getExpData() helper with container check
cnathe 89099de
Nab action container scoping
cnathe c670324
Elispot action container scoping
cnathe 230f619
Luminex action protocol scoping
cnathe 6fe6bad
Flow container scope
labkey-nicka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,12 @@ public void reset() | |
| { | ||
| try | ||
| { | ||
| String scriptIdStr = getRequest().getParameter("scriptId"); | ||
| 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"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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(). |
||
| if (scriptIdStr == null) | ||
| scriptIdStr = getRequest().getParameter("scriptId"); | ||
| if (scriptIdStr == null) | ||
| { | ||
| throw new NotFoundException("scriptId required"); | ||
|
|
@@ -92,6 +97,8 @@ public void reset() | |
| { | ||
| throw new NotFoundException("scriptId not found: " + scriptIdStr); | ||
| } | ||
| // GitHub Issue #1892: validate container | ||
| flowObject.checkContainer(getContainer(), getUser(), url); | ||
| _runCount = flowObject.getRunCount(); | ||
| step = FlowProtocolStep.fromRequest(getRequest()); | ||
| _run = FlowRun.fromURL(getViewContext().getActionURL(), getRequest(), getViewContext().getContainer(), getUser()); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.