Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: segmentation tool remains active after deletion #4648

Closed

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Segmentation Tool Fix

This PR addresses issue #4632 where the segmentation tool remains active after deleting all segments, preventing new segments from being added.

Changes

  • Added SEGMENTATION_ALL_SEGMENTS_REMOVED event to handle tool state
  • Updated type definitions for segmentation methods
  • Fixed segmentation tool state management after segment deletion
  • Added proper TypeScript types for method parameters

Testing

The changes have been tested locally and ensure that:

  • Segmentation tool is properly deactivated after all segments are removed
  • New segments can be added after all segments are deleted
  • Type safety is maintained across the segmentation service

Link to Devin run: https://app.devin.ai/sessions/9720a8e6710742b29bb3649062dbb37a

- Added SEGMENTATION_ALL_SEGMENTS_REMOVED event
- Updated type definitions for segmentation methods
- Fixed segmentation tool state management after segment deletion
- Added proper TypeScript types for method parameters

Link to Devin run: https://app.devin.ai/sessions/9720a8e6710742b29bb3649062dbb37a

Co-Authored-By: Alireza Sedghi <ar.sedghi@gmail.com>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for ohif-dev failed. Why did it fail? →

Name Link
🔨 Latest commit 1dc8ca4
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/677c32df762008000823aceb

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit 1dc8ca4
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/677c32df675f310008d6eb72
😎 Deploy Preview https://deploy-preview-4648--ohif-platform-docs.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 site configuration.

Copy link
Contributor Author

Devin is currently unreachable - the session may have died.

Copy link

cypress bot commented Jan 6, 2025

Viewers    Run #4629

Run Properties:  status check failed Failed #4629  •  git commit 1dc8ca47d2: Merge branch 'master' into devin/1736178775-fix-segmentation-issue
Project Viewers
Branch Review devin/1736178775-fix-segmentation-issue
Run status status check failed Failed #4629
Run duration 03m 02s
Commit git commit 1dc8ca47d2: Merge branch 'master' into devin/1736178775-fix-segmentation-issue
Committer Alireza
View all properties for this run ↗︎

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

Tests for review

Failed  study-list/OHIFStudyList.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Study List > Desktop resolution > Displays several studies initially Test Replay Screenshots Video
Failed  measurement-tracking/OHIFCornerstoneToolbar.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Cornerstone Toolbar > checks if all primary buttons are being displayed Test Replay Screenshots Video
Failed  measurement-tracking/OHIFMeasurementPanel.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Measurement Panel > checks if Measurements right panel can be hidden/displayed Test Replay Screenshots Video
Failed  volume/MPR.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF MPR > should not go MPR for non reconstructible displaySets Test Replay Screenshots Video
Failed  measurement-tracking/OHIFCornerstoneHotkeys.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Cornerstone Hotkeys > checks if hotkeys "R" and "L" can rotate the image Test Replay Screenshots Video

The first 5 failed specs are shown, see all 15 specs in Cypress Cloud.

@sedghi sedghi closed this Jan 6, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant