-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cache image settings #208
Cache image settings #208
Conversation
|
We could probably cache Histogram and Interpolate |
When I switch back to an image with cache settings (unsaved settings), the Save button is displayed |
@jburel The Min/Max, Full Range & Imported buttons probably shouldn't be 'radio' buttons where the last-clicked button is 'selected' since the settings don't continue to be 'Full Range' etc. |
discussed with @will-moore |
The Min/Max, Full Range & Imported buttons aren't 'selected' now (don't show state). To test:
|
After clicking on any of the range button e.g. Min/Max it stays "selected". I think this should not be the case The rest works nicely. |
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.
The various console.log
will need to be removed too
src/model/image_info.js
Outdated
if (cached.projection) { | ||
// Don't need to update response since Z dimension-slider | ||
// will update the ol3-viewer | ||
// response.projection = cached.projection; |
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.
remove commented out code
In multi-view it does not really work:
|
Last commit should fix the multi-view issues described above |
Latest commit solved the bug described by @jburel |
In multi-view, when 2 viewports of the same image are open, then
|
Bug:
user-4, http://web-dev-merge.openmicroscopy.org/webclient/?show=image-79356 Workflow
|
I think the problem #208 (comment) stems from the fact that Projection is not cached, it is not even saved after Save button is clicked. This might seem "logical" to us, but for a user: I do not see why Projection is so "special". Edit: Oh, no, Projection IS saved. Thus, #208 (comment) is a true bug. |
confirmed. this might be one to have a look again, but I don't think it is a blocker. It might get annoying when working with big images. |
In summary, three issues, #208 (comment) (just one Rnd remembered per image, maybe a valid approach), #208 (comment) (projection - there is clearly a regression bug) and #208 (comment) - maybe for improvement later in another PR - obviously a deficiency, but one with which it would be possible to live |
Fixed the toggling of Z-projection having no effect on the image-viewer. |
Yes, the Z-projection problem is fixed. I think that this is ready to merge FMPOV. Maybe we could card the #208 (comment) ? |
src/model/image_config.js
Outdated
/** | ||
* Applies the rendering settings, keeping a history of the old settings | ||
* | ||
* @param {Object} rdef the rendering defintion |
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.
typo
src/model/image_config.js
Outdated
* Applies the rendering settings, keeping a history of the old settings | ||
* | ||
* @param {Object} rdef the rendering defintion | ||
* @param {boolean} for_pasting true if rdef supplied it for pasting of settings, false otherwise |
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.
it/is
I have recorded the comment https://trello.com/c/c3BU4L1x/63-cache-settings-follow-up |
See https://trello.com/c/22S56JnA/2-single-view-cache-settings
To test:
Known issues: