Inserted required property in the rename list field, to prevent the l…#3862
Inserted required property in the rename list field, to prevent the l…#3862juliusknorr merged 2 commits intonextcloud:masterfrom mstolf:bugfix/3861/inserted-required-property-in-rename-list-field
Conversation
…ist from being unnamed
|
Usually my opinion is, that this is a validation, and validations belong into the backend (at least). Other clients will otherwise still be able to create / rename lists to |
|
@stefan-niedermann In this case I followed the list creation pattern, from what I saw it was treated on the front-end too, I understand that in this case the validation would be better on the back-end because it would not open room for errors |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
juliusknorr
left a comment
There was a problem hiding this comment.
Thanks for the pull request, I pushed a fix to also enforce this on the backend, so LGTM 👍
|
|
@stefan-niedermann The API will return a 400 Bad Request response as if the title was not set at all with the error message from https://github.com/nextcloud/deck/pull/3862/files#diff-8a98def6b971c75496456ec632f1310cd132642aa188861682457694b47b5096R218 |
When creating a list on the Deck, there is a validation requiring the name of the list to be informed
But when renaming a list, it was possible to keep it without a name, so I put the required field validation
Checklist