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

Update operations do not update the TD id correctly #14

Closed
hyperloris opened this issue Aug 17, 2022 · 0 comments
Closed

Update operations do not update the TD id correctly #14

hyperloris opened this issue Aug 17, 2022 · 0 comments
Assignees
Labels
effort: hours priority: high (2) High-priority issue that should be resolved as soon as possible scope: api-reference type: bug Something isn't working

Comments

@hyperloris
Copy link
Contributor

Zion uses a "wrapper" model to save a TD called InternalThingDescription. In this model, there are various fields including json containing the descriptor and urn which saves its id. The directory uses the urn field for retrieval operations.

If we perform an update (either via PUT or via PATCH) where we change the TD id, this is updated inside the descriptor, but not on the urn field.

This prevents later retrieval of the TD via the new id.

@hyperloris hyperloris added type: bug Something isn't working priority: high (2) High-priority issue that should be resolved as soon as possible scope: api-reference effort: hours labels Aug 17, 2022
@ivanzy ivanzy self-assigned this Aug 24, 2022
@relu91 relu91 closed this as completed in c4aa57d Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: hours priority: high (2) High-priority issue that should be resolved as soon as possible scope: api-reference type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants