-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add topic description on Confluent Cloud (#383)
* Description feature * Description feature * Typo fixes * Style fix 1 * Style fix 2 * Style fix 3 * Style fix 4 * IsConfluent fix for TU * Style fix 5 * TU fix * TU fix 2 * TU fix 3 * TU fix 4 * TU fix 5 * TU fix 5 * TU fix 6 * TU fix 7 * TU style fix * TU fix * TU fix 2 * TU fix 3 * TU fix 4 * TU fix 5 * Add new TU * Fix TU * Widen coverage, cleanup and status update fix for tag addition * Remove unsued imports * Rework: type and null possibility for description variable, iteration in topics, and persist topic status update * Cleanup (unused imports, variables, code) * unused imports * switch createTags arguments & update TU * unused import * put log.info and log.error earlier for more coverage & TU updates * Update response POJO + primitive boolean + description default null fix + enrich topics with description and tags merged * enriching topic optimized, topic entity renamed, TU fixed, unused imports removed --------- Co-authored-by: thcai <thomas.cai_ext@michelin.com>
- Loading branch information
1 parent
bd6300e
commit 94b76bb
Showing
15 changed files
with
791 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/main/java/com/michelin/ns4kafka/services/clients/schema/entities/TagEntity.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
.../michelin/ns4kafka/services/clients/schema/entities/TopicDescriptionUpdateAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.michelin.ns4kafka.services.clients.schema.entities; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.Builder; | ||
|
||
/** | ||
* Topic description update body's entity's information. | ||
* | ||
* @param qualifiedName topic entity name | ||
* @param description topic description | ||
*/ | ||
@Builder | ||
@JsonInclude | ||
public record TopicDescriptionUpdateAttributes(String qualifiedName, String description) { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...va/com/michelin/ns4kafka/services/clients/schema/entities/TopicDescriptionUpdateBody.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.michelin.ns4kafka.services.clients.schema.entities; | ||
|
||
import lombok.Builder; | ||
|
||
/** | ||
* Topic description update body. | ||
* | ||
* @param entity entity | ||
*/ | ||
@Builder | ||
public record TopicDescriptionUpdateBody(TopicDescriptionUpdateEntity entity) { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
.../com/michelin/ns4kafka/services/clients/schema/entities/TopicDescriptionUpdateEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.michelin.ns4kafka.services.clients.schema.entities; | ||
|
||
import lombok.Builder; | ||
|
||
/** | ||
* Topic description update body's entity. | ||
* | ||
* @param attributes attributes of the topic | ||
* @param typeName topic type name | ||
*/ | ||
@Builder | ||
public record TopicDescriptionUpdateEntity(TopicDescriptionUpdateAttributes attributes, String typeName) { | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
...om/michelin/ns4kafka/services/clients/schema/entities/TopicDescriptionUpdateResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.michelin.ns4kafka.services.clients.schema.entities; | ||
|
||
import lombok.Builder; | ||
|
||
/** | ||
* Update topic description response. | ||
* | ||
*/ | ||
@Builder | ||
public record TopicDescriptionUpdateResponse() { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/michelin/ns4kafka/services/clients/schema/entities/TopicEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.michelin.ns4kafka.services.clients.schema.entities; | ||
|
||
import java.util.List; | ||
import lombok.Builder; | ||
|
||
/** | ||
* Topics list response's entity. | ||
* | ||
* @param attributes attributes of the topic | ||
*/ | ||
@Builder | ||
public record TopicEntity(TopicEntityAttributes attributes, List<String> classificationNames) { | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...in/java/com/michelin/ns4kafka/services/clients/schema/entities/TopicEntityAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.michelin.ns4kafka.services.clients.schema.entities; | ||
|
||
import lombok.Builder; | ||
|
||
/** | ||
* Topics list response's entity's attributes. | ||
* | ||
* @param qualifiedName topic entity name | ||
* @param description topic description if any | ||
* @param name topic name | ||
*/ | ||
@Builder | ||
public record TopicEntityAttributes(String qualifiedName, String description, String name) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.