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

Migrate to REST API. Removed 'update' state #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adrianlzt
Copy link
Collaborator

Since skydive commit 7dc363cc25 (in master, not released yet), node and
edge APIs are exposed also with a REST API.
Using this API makes more sense for this modules, as it only make one
operation and do not need to stay connected to receive messages (as
websockets do).

This PR also uses the PATCH method (still a PR:
skydive-project/skydive#2263) to update
nodes/edges generating a list of JSON patches for the keys found in the
metadata key.
Keys defined in metadata will modify the stored node/edge.
Other metadata values in the stored node/edge will remaing unmodified.

'update' state is removed, so modules behave similar to others ansible
modules ('file' for example).
Now 'present' state will create or update nodes/edges.
Breaking change that should be reported to users.

SUMMARY
ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Since skydive commit 7dc363cc25 (in master, not released yet), node and
edge APIs are exposed also with a REST API.
Using this API makes more sense for this modules, as it only make one
operation and do not need to stay connected to receive messages (as
websockets do).

This PR also uses the PATCH method (still a PR:
skydive-project/skydive#2263) to update
nodes/edges generating a list of JSON patches for the keys found in the
metadata key.
Keys defined in metadata will modify the stored node/edge.
Other metadata values in the stored node/edge will remaing unmodified.

'update' state is removed, so modules behave similar to others ansible
modules ('file' for example).
Now 'present' state will create or update nodes/edges.
Breaking change that should be reported to users.
@gundalow
Copy link
Contributor

gundalow commented Mar 4, 2021

@lebauce @safchain @network Any thoughts on this PR from @adrianlzt

@adrianlzt I notice a rebase is needed

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