This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 073a24d2d2 [#8039] Assigned tags to tagsToAdd for messaging and
fileset (#8046)
073a24d2d2 is described below
commit 073a24d2d283171fd58c33adec9a573ee47f74d5
Author: Aman Chandra Kumar
<[email protected]>
AuthorDate: Wed Aug 13 04:35:05 2025 +0530
[#8039] Assigned tags to tagsToAdd for messaging and fileset (#8046)
Title:
Fix tags not being saved for FILESET and MESSAGING entities
Description:
- Updated FILESET and MESSAGING cases to assign the result of
associateTags() to tagsToAdd, matching the behavior of RELATIONAL and
MODEL cases.
- Ensures that tags are correctly captured and processed for these
entity types.
Closes #8039
---
.../src/main/java/org/apache/gravitino/cli/commands/TagEntity.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
index 2ea2de5df7..0ad1215cec 100644
--- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
+++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
@@ -88,14 +88,14 @@ public class TagEntity extends Command {
entity = fileset;
Fileset gFileset =
catalogObject.asFilesetCatalog().loadFileset(FullNameUtil.toFileset(name));
- gFileset.supportsTags().associateTags(tags, null);
+ tagsToAdd = gFileset.supportsTags().associateTags(tags, null);
break;
case MESSAGING:
String topic = name.getTopicName();
entity = topic;
Topic gTopic =
catalogObject.asTopicCatalog().loadTopic(FullNameUtil.toTopic(name));
- gTopic.supportsTags().associateTags(tags, null);
+ tagsToAdd = gTopic.supportsTags().associateTags(tags, null);
break;
default: