Skip to content

Conversation

@jnation3406
Copy link
Member

These changes should make all the data structures within configdb fully writable via the API. This was requested from a user in these issues:

observatorycontrolsystem/ocs_example#22
observatorycontrolsystem/ocs_example#24

The only change from the read API is the addition of some id fields to the optical element, optical element group, generic mode, generic mode group, and configuration type properties output. I also updated the simple index page to link to all the data structures API results.

@jnation3406 jnation3406 requested a review from Fingel February 7, 2025 20:42
Copy link

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this require updates for the LCO observing portal or developers docs?

@jnation3406
Copy link
Member Author

@jchate6 Yes, it would be good to add something to the OCS docs with examples of how to setup configdb via the API. I'll plan to add that. I don't think the developer docs need to be updated since the read API should be returning the same things and apparently we already had ids in those docs even if they weren't being returned before. But maybe it would be worth calling out some of the different field names for the write_only fields for the writable part of the API there too.

@jnation3406 jnation3406 merged commit ab99478 into main Feb 25, 2025
10 checks passed
@jnation3406 jnation3406 deleted the feature/writable_api branch February 25, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants