tengqm commented on PR #6037:
URL: https://github.com/apache/gravitino/pull/6037#issuecomment-2566047755

   Some more thoughts on this ...
   Maybe we should tighten the check when adding or updating the tags on an 
entity.
   There should be a protocol, somewhere in the docs and the code. For example,
   - An object can optionally have a list of unique tags, each of which is an 
opaque, single-word string.
   - The tags on an object is maintained as a set, i.e. no duplicated items are 
allowed.
   - When updating the tags on an object, the set of new tags is union-ed with 
that of the existing ones. This means you cannot remove any existing tags by 
updating the object with an empty list.
   - An object can have at most N tags.
   - Tags can only be removed explicitly. That is, you have to invoke the 
`removeTags` API or using the command line.
   - A tag must start with a letter, and it can contain digits and `.`, `_` or 
`-`. The maximum length of a tag is M characters.
   - ...
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to