Skip to content

Conversation

@ThomasCAI-mlv
Copy link
Collaborator

No description provided.

@ThomasCAI-mlv ThomasCAI-mlv added the feature This issue or pull request contains a new feature label Sep 18, 2024
@ThomasCAI-mlv ThomasCAI-mlv self-assigned this Sep 18, 2024
@ThomasCAI-mlv ThomasCAI-mlv changed the title Handle wildcard parameter in Topic delete API Handle wildcard parameter in Topic deletion API Sep 18, 2024
@ThomasCAI-mlv ThomasCAI-mlv marked this pull request as ready for review October 2, 2024 09:36
Copy link
Collaborator

@loicgreffier loicgreffier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThomasCAI-mlv Just one improvement, otherwise LGTM

*
* @param topics The topics to delete
*/
public void deleteTopics(List<Topic> topics) throws InterruptedException, ExecutionException, TimeoutException {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little improvement:

public void deleteTopic(Topic topic) throws InterruptedException, ExecutionException, TimeoutException {
can call deleteTopics(List<Topics> topics) like

public void deleteTopic(Topic topic) {
deleteTopics(List.of(topic));
}

Copy link
Collaborator Author

@ThomasCAI-mlv ThomasCAI-mlv Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, it is even better to completely remove the method and replace all usages by deleteTopics(List<Topic> topics).
What do you think?

* @param dryrun Is dry run mode or not ?
* @param dryrun Is dry run mode or not?
* @return An HTTP response
* @deprecated use bulkDelete(String, String name, boolean) instead.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{@link #bulkDelete(String, String, boolean)} better 😉

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2024

@ThomasCAI-mlv ThomasCAI-mlv merged commit c2d293b into master Oct 3, 2024
3 checks passed
@ThomasCAI-mlv ThomasCAI-mlv deleted the feat/delete-topic-filter branch October 3, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature This issue or pull request contains a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants