Skip to content
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

fix: Delete study measurements instead of all measurements #4882

Merged
merged 7 commits into from
Mar 25, 2025

Conversation

wayfarer3130
Copy link
Contributor

Context

For multiple study measurements, the delete function was deleting all measurements, not just the single study measurements.

Changes & Results

Create a filter argument to delete just the specified measurements (also applies to save/load etc)

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 Mar 24, 2025

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit f790a6c
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/67e19e21ae46000008a59626
😎 Deploy Preview https://deploy-preview-4882--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 site configuration.

Copy link

netlify bot commented Mar 24, 2025

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

Name Link
🔨 Latest commit f790a6c
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/67e19e21cb41e40008e651d3

Copy link

cypress bot commented Mar 24, 2025

Viewers    Run #4986

Run Properties:  status check passed Passed #4986  •  git commit f790a6c473: fix: Update scroll to use fixed version
Project Viewers
Branch Review fix/delete-filtered-measurements
Run status status check passed Passed #4986
Run duration 02m 15s
Commit git commit f790a6c473: fix: Update scroll to use fixed version
Committer Bill Wallace
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 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 43
View all changes introduced in this branch ↗︎

@@ -26,13 +28,19 @@ export const groupByStudy = (items, grouping, childProps) => {
const studyUID = getItemStudyInstanceUID(item);
if (!groups.has(studyUID)) {
const items = [];
const filter = MeasurementFilters.filterAnd(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The study measurements filter needs to define the filter object so that saving and other operations apply on a per study basis.

<Cross2Icon className="text-primary h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
{!unstyled && (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The unstyled dialogs should not show the close icon.

@wayfarer3130 wayfarer3130 requested a review from sedghi March 24, 2025 14:32
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.

Thanks

@sedghi sedghi merged commit 8e47112 into master Mar 25, 2025
19 of 20 checks passed
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.

None yet

2 participants