Skip to content
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

per-user persistent meta-data #25

Open
tacaswell opened this issue Sep 2, 2020 · 3 comments
Open

per-user persistent meta-data #25

tacaswell opened this issue Sep 2, 2020 · 3 comments
Labels
server The core API server web client An HTML/JS UI to the API server

Comments

@tacaswell
Copy link
Collaborator

We should be able to capture metadata from the user (not already in the sample or admin databases) and persist that meta-data across sessions.

@tacaswell tacaswell added server The core API server web client An HTML/JS UI to the API server labels Sep 2, 2020
@tacaswell
Copy link
Collaborator Author

The depends on #24 so we know who the user is.

@developingAlex
Copy link
Contributor

Does this have anything to do with adding in custom metadata to the run engine when it runs a plan?
I was wondering if it would make sense to be able to take in an additional "meta" type key from the plan_parsed at the top of this block in the worker and pass in its keys into the call to the self._RE(...) so as to get that metadata back in the bluesky "start" document ?

@dmgav
Copy link
Contributor

dmgav commented Dec 1, 2020

@developingAlex Yes. We are getting to the point when we will have to implement this. There are multiple ways to implement this. One way is to pass metadata as one of the plan parameters (e.g. all predefined Bluesky plans accept parameter md, which is a dictionary that contains arbitrary metadata). We can definitely implement an additional meta key. This may be preferred approach. Persistent metadata (user/proposal data from the database) may be automatically appended to the contents of the dictionary before the plan is sent to RE Worker. I think the most important thing is to make a decision on exact metadata flow in the system.

I think this issue is mostly related to web-client, since most of the work will be to develop GUI components for entering and editing metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server The core API server web client An HTML/JS UI to the API server
Projects
None yet
Development

No branches or pull requests

3 participants