Skip to content

Conversation

igoroctaviano
Copy link
Contributor

Context

Changes & Results

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • [] My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] OS:
  • [] Node version:
  • [] Browser:

Copy link

netlify bot commented Sep 3, 2025

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit 3676931
🔍 Latest deploy log https://app.netlify.com/projects/ohif-dev/deploys/68c4131a7188d70008fd6001
😎 Deploy Preview https://deploy-preview-5381--ohif-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

cypress bot commented Sep 3, 2025

Viewers    Run #5528

Run Properties:  status check passed Passed #5528  •  git commit 3676931e64: Merge branch 'master' into feat/load-derived-display-sets
Project Viewers
Branch Review feat/load-derived-display-sets
Run status status check passed Passed #5528
Run duration 02m 45s
Commit git commit 3676931e64: Merge branch 'master' into feat/load-derived-display-sets
Committer Igor Octaviano
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 37
View all changes introduced in this branch ↗︎

Comment on lines +152 to +162
const getDerivedSequences = (displaySetUID: string): DisplaySet[] => {
const currentDs = displaySetService.getDisplaySetByUID(displaySetUID);
const displaySetCache = displaySetService.getDisplaySetCache();
return Array.from(displaySetCache.values()).filter(
(ds: any): ds is DisplaySet =>
(ds?.referencedDisplaySetInstanceUID === displaySetUID ||
ds.referencedSeriesInstanceUID === currentDs.SeriesInstanceUID) &&
!ds?.isHydrated
);
};

Copy link
Member

Choose a reason for hiding this comment

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

I don't see any logic to check if this is derived. I think derived DS have isDerived on them or similar

segmentationService.addSegmentationRepresentation(activeViewportId, {
segmentationId: displaySet.displaySetInstanceUID,
type:
displaySet.Modality === 'SEG'
Copy link
Member

Choose a reason for hiding this comment

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

we like to think about Segmentation as a general term that includes Contour, Labelmap or Meshes. And each of them are segmentation representation.
I think this function should be called loadAvailableLabelmapsForActiveViewport maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But is mesh a representation today? I thought it was just contour and labelmap. Surface generation occurs even without explicit requests, and the mesh is loaded through geometry calls (no mesh/STL code in ohif today).
I agree to changing the name. Maybe loadLabelmapsAndContoursForActiveViewport?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sedghi i'll need some input about this question above

"extensions/cornerstone": {
"name": "@ohif/extension-cornerstone",
"version": "3.12.0-beta.18",
"version": "3.12.0-beta.23",
Copy link
Member

Choose a reason for hiding this comment

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

no sure why bun lock is changing but not yarn lock

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are we using both? I find it very confusing that we use yarn and bun today. Maintaining two lock files seems error-prone.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Ask @jbocce please

Copy link
Collaborator

Choose a reason for hiding this comment

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

@igoroctaviano

So yes we are currently maintaining both bun.lock and yarn.lock. I don't know why - it predates my current stint on OHIF.

In this case I'm not sure why the OHIF dependencies were updated. This sometimes occurs when someone branches off master prior to the Update package versions [skip ci] step running. In this particular case, I think simply updating from master again should remove this from the PR's list of changed files. If there is a conflict be sure to take the bun.lock file from master. Please merge from master again and see what happens.

In any case the changes I see here to the bun.lock file are benign.

Does this make sense (i.e. capisce?) 😜

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

see my comments thanks

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