MNT: replace this with working logbook endpoint
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 7
- Avg merge
- 7d 7h
- Merged PRs (30d)
- 1
Description
This endpoint has apparently never worked, but could be replaced by a logbook endpoint:
from krtc import KerberosTicket
import requests
krbheaders = KerberosTicket("HTTP@pswww.slac.stanford.edu").getAuthHeaders()
ws_url = "https://pswww.slac.stanford.edu/ws-kerb/lgbk/lgbk/ws/experiments_to_proposal"
r = requests.get(ws_url, headers=krbheaders)
r.raise_for_status()
r.json()["value"]["xppx1003221"]
{'name': 'xppx1003221', 'instrument': 'XPP', 'proposal_id': 'X-10032'}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at psdm_qs_cli/QuestionnaireClient.py around line 340 and inspect the existing endpoint implementation. Compare it with the provided logbook request and response example; done means the replacement endpoint returns the expected experiment and proposal information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100