-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add facility to sync functions #126
Add facility to sync functions #126
Conversation
I've tried pushing a commit to your branch but could not do so. Here is the diff:
|
Also looks like the stats need to be updated - currently only handling nsls2, though we could fix this separately. |
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.
please clarify how the facility name is going to be set in sync_proposals_for_cycle - will it be added to the URL, or will it need to be part of the request? or will another method be required?
Are proposals ID guaranteed by PASS to be unique across facilities? This obviously could impact other things - pardon my ignorance about this detail. |
My understanding is that the proposal IDs are a common pool so there could be proposal IDs that are the same between facilities, but only when the proposal will potentially use multiple facilities. I also asked this question before as it is not obvious from our code or the PASS API documentation. |
Diff to fix the issue with text when synchronizing proposals_for_cycle:
|
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.
added suggested change to background_service.py to fix awkward text
In this case, hopefully the proposal is just one singular entity in PASS? i.e. not two entities that just have the same proposal ID but may have differing "metadata" otherwise. Some partial evidence of this is that when you retrieve a proposal through nsls2api, there is no facility field (not sure if that is reflective of its state in PASS) |
one last suggestion to fix the check for facility name in get_proposals_for_cycle():
|
I've checked this in the past with the PASS developers and yes - all proposal ids are unique across all of PASS irrespective of what facility they are for. |
…e facility name is not correct
Deprecated the existing one
I made the change that was suggested (the facilities->facility)
This really needs a rethink - but for now just add the LBMS stats.
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.
one last minor spelling change!
Co-authored-by: Jun Aishima <jaishima@bnl.gov>
Self merging as changes have been approved by @JunAishima |
Exposed the facility name to various functions and endpoints.
I have not extensively tested this yet.