-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix: add validation on tag name to have name + onDelete refresh list view #25831
Conversation
@@ -58,7 +58,7 @@ class TaggedObjectEntityResponseSchema(Schema): | |||
|
|||
|
|||
class TagObjectSchema(Schema): | |||
name = fields.String() | |||
name = fields.String(validate=Length(min=1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this logic also need to reside within the Command or DAO? Additionally do we have any tests for schema validation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it lies in the API, I'm working on a test now to validate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved pending tests
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
…view (apache#25831) Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
…view (apache#25831) Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
…view (apache#25831) Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
SUMMARY
add validation on tag name to have name
bug in production that allows users to create tags without names. So we added validation to the schema to make sure the length of the tag name field is atleast 1.
fix reload callback after deleting tag
before hand the callback would execute before a tag would actually be deleted from the db. So fixed it the refresh to be called after success/failed request
Screen.Recording.2023-11-02.at.3.44.59.PM.mov
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION