-
Notifications
You must be signed in to change notification settings - Fork 24
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
Don't remove other volume layers when opening volume annotation #6186
Conversation
…lume annotation layer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, works as expected for me 👍
Since this functionality is somewhat brittle, would it be a good candidate for a snapshot test using the e2e test setup? One could create a new annotation without a fallback layer, and would test that the visibility and number of the layers is correct.
Thanks for your review!
Do you mean the e2e tests or the screenshot tests? The e2e tests mainly test the REST API between JS and Scala which doesn't really lend itself to test the behavior introduced in this PR (since the main logic happens in wk JS core). However, I just adapted the screenshot tests to also create a hybrid annotation for a dataset (once with a fallback layer and once without). This tests the basic setup of the default visibilities quite well, I think. Testing that the visibilities are changed correctly would be nice, too. However, I don't see an easy way to do so, since this logic happens in the sagas. Interacting with the page via puppeteer sounds too messy/brittle and calling the sagas manually without the surrounding page context is also not really lucrative in my opinion. This is why I hope that the two new screenshot tests are a good trade-off for now. Do you agree? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Do you mean the e2e tests or the screenshot tests?
I meant the e2e tests, but I overlooked that the frontend doesn't run in that case. Thanks for pointing that out. In that case, I think the screenshot testing is the best we can do right now.
.circleci/config.yml
Outdated
@@ -292,6 +292,10 @@ workflows: | |||
version: 2 | |||
circleci_build: | |||
jobs: | |||
- nightly: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to remove this before merging
frontend/javascripts/test/puppeteer/dataset_rendering.screenshot.ts
Outdated
Show resolved
Hide resolved
…ot.ts Co-authored-by: Daniel <[email protected]>
… into keep-seg-layers
When creating a new annotation with a volume layer (without fallback) for a dataset which has an existing segmentation layer:
URL of deployed dev instance (used for testing):
Steps to test:
Issues:
(Please delete unneeded items, merge only when none are left open)