-
Notifications
You must be signed in to change notification settings - Fork 10
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
Having an option to keep or replace generated pv images when a new request is made (backend) #1176
Comments
I think for simplicity this should be a boolean "overwrite" field in the PvRequest message. What should the name of the second PV image be? Update: field changed to boolean "keep" so that default (false) is current behavior. |
Shall we append a number? |
Starting with 1 (pv, pv1, pv2) or 2 (pv, pv2, pv3)? |
I prefer option 1 but either way is fine. 🙂 |
As users may close one of the in-ram PV images at any time, we can just keep increasing the index and don’t re-use the index. |
I just noticed the @crocka and I have been chatting about this issue, with |
how about we close all generated images associated with the source image when “replace” mode is selected? The idea is similar to how we handle “load image” and “append image”. When it is load image we close all loaded images first then load the new image. When it is append image we do not close any loaded images and append the image. |
Ok, that makes sense. In this case would the new PV image be simply "pv" (reset index to 0 and future images 1, 2, etc.), or continue incrementing the previous index? |
Maybe we can reset the index if that makes sense to you too. I don’t have preference though. |
@kswang1029 @crocka I created a separate backend issue #1202 for keeping moment images. |
user feedback from v3 beta test
With v3 release, when a new request made in the pv generator or moment generator, generated images from the previous request will be removed. Users would like to have an option to keep or replace the pv or moment images.
The companion backend issue is CARTAvis/carta-frontend#1951
The text was updated successfully, but these errors were encountered: