-
Notifications
You must be signed in to change notification settings - Fork 7
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
add update feature in v1beta1/assets #200
Comments
Would suggest performing a lookup for the asset using the URN first. Make the update call only if the asset is found. |
If I understand correctly, in case of upsert we do 1 lookup already before updating, if I add another look up outside, we would be performing 2 lookups for 1 update. |
Lets say we add a |
Currently we already have an API which only creates a new entry if it isn't already present. - Upsert |
Yes, but what you are describing is a |
Is your feature request related to a problem? Please describe.
Currently we have upsert functionality in assets api wherein it searches for an asset based on urn, type and service. In case it is not found, it inserts a new row. I think we can add one more function which only updates and returns error if matching asset is not found. We have use cases where we are creating an asset from a different service and wish to update it with certain fields from a different service. Currently while updating it is also adding assets which were not present earlier which is creating a problem.
Describe the solution you'd like
We can either add a new function for update or add a flag in the upsert function which checks whether to insert in case the asset is not found.
The text was updated successfully, but these errors were encountered: