-
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
Set default view configuration in datasource properties json #4357
Conversation
…w-defaults-from-disk
…w-defaults-from-disk
@MichaelBuessemeyer this pr should also take care of #4378. Could you do the necessary frontend part? This involves the the dataset edit view and the rendering in the tracing view. Thank you 🙂 |
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.
Wow, cool stuff :)
Small thing: could you provide a small example json in the changelog / steps to test?
Also, reading the changelog, I think defaultViewConfigurationOpt
is a user-facing field name? I’d prefer to go without the “Opt” in the json (that was just a shorthand for us related to the scala Option code)
@youri-k If we want to
we need to add the configs of the segmentation layer to the other layer configs in the DatasetConfiguration under the property "layers". Currently, that's not the case and will be needed. Can you please do the backend part of this and write a conversion script, that removes the "segmentationOpacity" from DatasetConfiguration and adds a layer configuration for the segmentation to the |
…bknossos into view-defaults-from-disk
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! But as @fm3, I didn't test this again. Please do so before deploying (especially the case were view configurations already exist in the old format).
…w-defaults-from-disk
…w-defaults-from-disk
@philippotto First of all, I am sorry that I missed merging this PR earlier. Because I missed this, your newest PR reworking the rendering to only display the enabled layers when the GPU does not support rendering all layers created some "hidden" merge conflicts. I tried resolving them and it looks fine now and everything works as expected on my local machine. Nevertheless could you please check the newest changes again and whether everything works on your machine? But I can ensure that the bug @fm3 found is resolved and does not appear in the current version of this PR. |
* clean up apit to only print deprication warning if necessary
…w-defaults-from-disk
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.
Thanks for resolving the hidden conflicts!
I just tested the branch, but something doesn't seem right to me:
- I edited
2017-05-31_mSEM_scMS109_bk_100um_v01-aniso
so that the color layer hasalpha: 80
andcolor: [ 255, 100, 255 ]
and made the dataset public. - When opening https://viewdefaultsfromdisk.webknossos.xyz/datasets/sample_organization/2017-05-31_mSEM_scMS109_bk_100um_v01-aniso/view in an incognito tab, the layer configuration is not the one I edited. Instead, alpha is 100% and color is white.
Shouldn't this use the values I edited?
@philippotto Thanks for finding this bug. I debugged it a bit further and it looks like the backend sends false information:
In my opinion the answer should have an alpha value of 80 and the color you set in the settings, shouldn't it? @youri-k Could you please have a look at this issue/bug? I think it has something to do with the backend. |
@MichaelBuessemeyer I found the bug and fixed it 🙂 |
@youri-k Awesome :D |
Cool, then we can merge this tomorrow, right? @youri-k Can you take care of this (plus migration)? |
Nice! Now we need to put this into voxelytics (and maybe wkcuber) |
URL of deployed dev instance (used for testing):
Steps to test:
for the evolutions:
for the disk defaults:
alpha
value of a color layer (default is 100)Issues:
[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes