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

Add route to add segment index to existing volume annotations #7208

Merged
merged 4 commits into from
Jul 25, 2023

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Jul 17, 2023

Adds route to add a segment index to an existing volume annotaiton. Note that this is currently only available for volume annotaiton layer with no fallback segmentation.

Steps to test:

(I think no manual testing is required if the code looks good, as it is pretty hard to set up, and if we see this fail in production, not much harm is done and we can fix it then)

Issues:

@fm3 fm3 requested a review from frcroth July 17, 2023 09:32
@fm3 fm3 self-assigned this Jul 17, 2023
annotation.downsample.volumeOnly=Downsampling is only possible for volume annotation layers.
annotation.addSegmentIndex.layerNotFound=Could not add segment index to volume annotation (annotation layer not found)
annotation.addSegmentIndex.explorationalsOnly=Could not add segment index to annotation because it is only allowed for explorational annotations.
annotation.addSegmentIndex.volumeOnly=Adding segment index is only possible for volume annotation layers.
Copy link
Member

Choose a reason for hiding this comment

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

annotation.addSegmentIndex.failed is used but does not occur here

dataSet <- dataSetDAO.findOne(annotation._dataSet) ?~> "dataSet.notFoundForAnnotation"
_ <- bool2Fox(volumeAnnotationLayer.typ == AnnotationLayerType.Volume) ?~> "annotation.downsample.volumeOnly"
rpcClient <- tracingStoreService.clientFor(dataSet)
// duplicate in tracingstore will add segment index if possible
Copy link
Member

Choose a reason for hiding this comment

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

Can you point me to where that happens? Didn't immediately see it in VolumeTracingController.duplicate

Copy link
Member Author

Choose a reason for hiding this comment

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

hasSegmentIndex = VolumeSegmentIndexService.canHaveSegmentIndex(tracingWithResolutionRestrictions.fallbackLayer)

in combination with

Not sure how to make this more discoverable. Hence the comment here

Copy link
Member

Choose a reason for hiding this comment

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

I guess line 361 in VolumeTracingService is the surprising one, so there could be a comment there "Adding segment index on duplication if the volume tracing allows it" or something like that.

@fm3 fm3 requested a review from frcroth July 19, 2023 06:52
@fm3 fm3 enabled auto-merge (squash) July 25, 2023 07:25
@fm3 fm3 merged commit 418b434 into master Jul 25, 2023
1 check passed
@fm3 fm3 deleted the add-segment-index-button branch July 25, 2023 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants