Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent setting default index set readonly. (#3339)
* Prevent setting default index set readonly. Without this change it was possible to update the default index set and make it read only, leading to unwanted behavior. After this change, when updating an index set we check if it is the default index set and kindly refuse setting it read only. Fixes #3331. * Removing superfluous id property from IndexSetUpdateRequest. The id property of the IndexSetUpdateRequest DTO is unneeded, as the id of the index set to update is already given in the URL. It is actually misleading and requires an additional unneeded check to see if the ids of the URL and the body are consistent. Therefore the id is removed from the IndexSetUpdateRequest and the one from the URL is used only. * Prevent making non-writable index sets the default index set. * Add read only labels and disable setting default in index sets ui.
- Loading branch information
1 parent
d4eb29e
commit faf0800
Showing
4 changed files
with
185 additions
and
61 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.