Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle wildcard parameter in Topic deletion API #443

Merged
merged 6 commits into from
Oct 3, 2024

Conversation

ThomasCAI-mlv
Copy link
Collaborator

No description provided.

@ThomasCAI-mlv ThomasCAI-mlv added the feature This issue adds 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?

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

Copy link

sonarcloud 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 adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants