-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable attribute update on resource-type API.
Currently, the resource-type API, not allow operators to update resource type's attributes, the API only allows Add and Delete. So, if an operator desires to change a required resource type's attribute to optional and vice-versa, he/she will need to do it manually in the database or deleting and creating the attribute again, but it will result in the attribute's history lose. Therefore, to help operators in that situation, I propose to enhance the Resource-type API to allow updates while adding a new attribute. If the new attribute already exists and is different from the old, it will be updated; otherwise, nothing will happen and we will return the resource type's attribute list as the old behavior. The first version of this implementation will not allow updating the resource type's attribute's type.
- Loading branch information
1 parent
2865e65
commit eb87188
Showing
3 changed files
with
363 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.