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

Leshan: Observe Objects with CompositeObserve #38

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

jonas-rem
Copy link
Member

Depends on #34, #37

Whenever an Object is updated on the endpoint, the whole object is sent as a composite resource. This allows to categorize all resources to one event in Django.

This is a first test, until handling the observations is implemented via Django.

@jonas-rem jonas-rem self-assigned this Jun 14, 2024
@jonas-rem jonas-rem force-pushed the WIP/jonas-rem/composite_obs branch from f4bca8b to b163e02 Compare June 14, 2024 12:06
@jonas-rem jonas-rem force-pushed the WIP/jonas-rem/composite_obs branch 2 times, most recently from a099703 to 526c412 Compare June 14, 2024 14:27
Base automatically changed from WIP/jonas-rem/async_comm to main July 4, 2024 20:48
@jonas-rem jonas-rem force-pushed the WIP/jonas-rem/composite_obs branch from 526c412 to 29978de Compare July 4, 2024 20:49
Subscribing to objects directly, includes all resources. This is still
preliminary, as those oberve commands should be triggered later directly
from Django.

Django: Modify serializer to accomodate for the added hierarchical layer
in the composite request data.

Signed-off-by: Jonas Remmert <jremmert@gmx.net>
@jonas-rem jonas-rem force-pushed the WIP/jonas-rem/composite_obs branch from 29978de to 408ebf5 Compare July 4, 2024 20:51
@jonas-rem jonas-rem marked this pull request as ready for review July 4, 2024 20:52
@jonas-rem jonas-rem merged commit 2a416d1 into main Jul 4, 2024
2 checks passed
@jonas-rem jonas-rem deleted the WIP/jonas-rem/composite_obs branch July 4, 2024 20:52
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.

1 participant