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

Feature/220 space api #221

Merged
merged 9 commits into from
Oct 22, 2023
Merged

Conversation

proffalken
Copy link
Contributor

@proffalken proffalken commented Oct 12, 2023

Fixes #220 (possibly! 🤣 )

This is an attempt to start the migration of certain parts of the SpaceAPI integration from Constance to a more dynamic way of working.

It allows for the space state (open/close) and message to be set via a database model, and also provides sensors that can be added to the database inline with the JSON Schema for SpaceAPI.
SpaceDIROutput

@proffalken proffalken marked this pull request as ready for review October 13, 2023 12:10
@proffalken proffalken changed the title [WIP] Feature/220 space api Feature/220 space api Oct 13, 2023
@proffalken proffalken force-pushed the feature/220-SpaceAPI branch from 48a7a1e to 4fc2a7f Compare October 19, 2023 07:51
@jabelone
Copy link
Member

Heya @proffalken I've left a few comments with some suggested changes. Looks really good and would be great to merge after!

Also it would be good to check a few sample outputs against the space api validator below before we merge just to make sure it hasn't broken anything.
https://validator.spaceapi.io/ui/

memberportal/api_spacedirectory/views.py Outdated Show resolved Hide resolved
docs/SPACEDIRECTORY.md Outdated Show resolved Hide resolved
docs/SPACEDIRECTORY.md Outdated Show resolved Hide resolved
memberportal/api_spacedirectory/models.py Show resolved Hide resolved
memberportal/api_spacedirectory/views.py Outdated Show resolved Hide resolved
@proffalken proffalken force-pushed the feature/220-SpaceAPI branch from 09638a3 to 9e20c81 Compare October 22, 2023 16:18
@jabelone jabelone merged commit 9cf0496 into membermatters:dev Oct 22, 2023
2 checks passed
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.

2 participants