-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
WIP feat: expose hanging protocol stage to default #3300
base: master
Are you sure you want to change the base?
WIP feat: expose hanging protocol stage to default #3300
Conversation
✅ Deploy Preview for ohif-platform-viewer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for ohif-platform-docs canceled.
|
public run( | ||
{ studies, displaySets, activeStudy }, | ||
protocolId, | ||
{ stageIndex } |
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.
Can you pass all the options here rather than extracting stageIndex? There are reasons it might be desirable to pass initial display conditions to the run method.
@@ -75,7 +79,8 @@ function defaultRouteInit( | |||
// hanging protocol in the mode configuration | |||
hangingProtocolService.run( | |||
{ studies, activeStudy, displaySets }, | |||
hangingProtocolId | |||
hangingProtocolId, | |||
{ stageIndex: hangingProtocolStageIndex || 0 } |
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.
This should not pass in 0 if it isn't specified in the URL. There is matching rules to decide the initial protocol stage, and specifically passing it in will disable some of those.
studyInstanceUIDs, | ||
dataSource, | ||
filters, | ||
hangingProtocol: hangingProtocolIdToUse, |
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.
This needs to start getting passed in as a set of options to the route init, as there may well be others that we want here.
@Ouwen Also for this one, any one free you have to work on this? |
Context
This PR is meant to expose the stage index as an initial setting from the mode. The final implementation needs some discussion before it gets merged.
{}
with named key inputs it is a mix of Object and positional argsChanges & Results
This PR tries to expose stage selection or stage matching to the user.
@sedghi