Open shengb opened 8 years ago
I'm not sure about exposing ids. In git this could be the repo/sha1, but I'm not sure in masar? Guobao, is it a uid, or just an id (ie. what if there are multiple masar services, is the id unique across instances)?
@berryma4 For historical reason, MASAR use just an id. The ID is not unique if there are multiple services unless they are using the same database. The use case at NSLS II was that all physicists always talk about for example "Lattice 1234", which means MASAR snapshot dataset 1234. It is even in the official report.
I hate to repeat the same problem I have with olog. Can we make the ids unique over services somehow? On Feb 17, 2016 8:51 AM, "Guobao Shen" notifications@github.com wrote:
- A PV has 2 connection status, the current one, and the one when the snapshot was taken. The red shows its current status, but the status at taking snapshot is missing.
- Where to find the search button in the browser view toolbar?
- Thanks
- Thanks
- The year shown in the Timestamp field was when the snapshot was taken. The timestamp for PV is the time when the PV was process. If a PV is not processed, its year would be 1989. What's about the case if a PV is not processed during past year (I know it is almost impossible, but might happen to an operational machine)?
@berryma4 https://github.com/berryma4 For historical reason, MASAR use just an id. The ID is not unique if there are multiple services unless they are using the same database. The use case at NSLS II was that all physicists always talk about for example "Lattice 1234", which means MASAR snapshot dataset 1234. It is even in the official report.
— Reply to this email directly or view it on GitHub https://github.com/frib-high-level-controls/save-set-restore/issues/14#issuecomment-185211896 .
Yes, we can discuss how to handle the ID properly. The use case I mentioned above was not my idea. The physicists naturally picked up the ID because it is simple and easy to mention. It took me a while to realize the "Lattice 1234" means masar snapshot 1234.
I'll also add the search by ID, but one will need to know the ID from somewhere... I need to display it somewhere.
You may also want to update the python client. Even though search by ID is supported, it's not mentioned in the comments.
In MASAR PyQt UI, I displayed the ID of each snapshot. You might want to do the same thing.
For the Python client, appreciated. Yes, I did forget to update the comments. Thanks.
I would rather people use the tags instead of ids. I found with olog exposing your internal database id isn't always a good idea.
On Wed, Feb 17, 2016 at 9:04 AM, Guobao Shen notifications@github.com wrote:
Yes, we can discuss how to handle the ID properly. The use case I mentioned above was not my idea. The physicists naturally picked up the ID because it is simple and easy to mention. It took me a while to realize the "Lattice 1234" means masar snapshot 1234.
— Reply to this email directly or view it on GitHub https://github.com/frib-high-level-controls/save-set-restore/issues/14#issuecomment-185220049 .
@berryma4 tag would be an interesting idea. For save set, we need to tag every snapshot data set, which is same with tag then. Olog could be a different use case.
I'm saying it is a bad idea to expose, use ids in the save restore gui, and that we shouldn't do it.
On Wed, Feb 17, 2016 at 9:51 AM, Guobao Shen notifications@github.com wrote:
@berryma4 https://github.com/berryma4 tag would be an interesting idea. For save set, we need to tag every snapshot data set, which is same with tag then. Olog could be a different use case.
— Reply to this email directly or view it on GitHub https://github.com/frib-high-level-controls/save-set-restore/issues/14#issuecomment-185237188 .
I guess I'll bite at the last comment. Why would you need to tag every snapshot?
Let's talk this over in our next group meeting. I would like to hear Vasu, Dong, and Dylan's thoughts.
Good. I want to narrow down the topic to the use case of save set.