-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Bug] getHangingProtocolModule Name or Id ? #3755
Comments
I think id makes more sense, you are saying URL is based on name? |
The weird thing is that getHangingProtocolModule is mapping the id of the hanging protocol to a "name" property The HP object has itself a "name" and an "id" property, so I guess getHangingProtocolModule could simply return array of protocols. If needed to add a differentiating key then I guess it would be better to expose "id" instead of "name" in this getHangingProtocolModule |
I hate this, maybe next next version we can fix it |
I took a closer look at this issue. The problem lies in the following code: {
name: defaultProtocol.id,
protocol: defaultProtocol,
}, This is causing the protocol module registration to hang. Our modules, such as the viewport module and panelModule, are identified by their I'm making a PR to just make the id case insensitive, maybe that helps a bit |
humm didn't understand so much but will look at the PR ^^ |
What I mean is that all modules register with a unique name. For example, you can see this in the documentation for data source modules at |
Describe the Bug
It seems to be a discordance between documentation and code
in the documentation : https://docs.ohif.org/platform/services/data/hangingprotocolservice/#protocol-definition
Hanging protocol should be registered by Id
But in the code they are registered by name property :
Viewers/extensions/default/src/getHangingProtocolModule.js
Line 101 in c73a403
Also the url param to set a HP is hangingProtocolId so I guess there is a error in the code (should use id instead of name, and will led to breaking change)
Steps to Reproduce
None
The current behavior
registering of HP use name
The expected behavior
should use id property
OS
linux
Node version
20
Browser
Chrome 100+
The text was updated successfully, but these errors were encountered: