jerryshao opened a new issue, #15016:
URL: https://github.com/apache/gravitino/issues/15016

   ### What would you like to be improved?
   
   A domain's backing tag is currently bound as a tag plus an optional value 
(`TagValue`). A new backing tag (`create=true`) is created without values, but 
binding an existing tag still accepts a value, so one tag can back several 
domains through different values (for example `domain=Finance` and 
`domain=Sales`). This has two problems:
   
   1. Binding an existing tag that has an allowed-values list without a value 
is rejected with 400 "Tag X requires assignment values from allowed values 
...", even though a domain should be able to use any existing tag as its 
backing tag.
   2. Value binding is part of the public domain API, REST API and clients. A 
domain is expected to have its own backing tag, applied with no value, where 
membership depends only on the tag being present. Value binding makes the model 
harder to understand and must be removed before the domain API is released in 
2.0.0.
   
   ### How should we improve?
   
   Make the backing tag a tag name only in the public interfaces:
   
   - Java API (`Domain`, `DomainOperations`), DTOs and requests, REST API and 
OpenAPI spec, Java and Python clients, MCP domain tools, listener `DomainInfo`, 
and docs: the backing tag is a tag name, with no value.
   - Binding an existing tag does not check its allowed values, so any existing 
tag can back a domain.
   - A tag backs at most one domain (`BackingTagAlreadyBoundException` 
otherwise).
   - Membership depends only on the tag being present; any value on an 
assignment is ignored.
   - Storage and the internal core layer keep the backing tag value support 
unchanged; the public interfaces always bind without a value.
   
   This is a breaking change to the unreleased 2.0.0 domain API.
   


-- 
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