-
Notifications
You must be signed in to change notification settings - Fork 4
Added more clients #37
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
base: main
Are you sure you want to change the base?
Conversation
| ConductorClientResponse<List<WebhookConfig>> response = getAllWebhooks(); | ||
| return response != null && response.getData() != null ? response.getData() : List.of(); | ||
| } catch (Exception e) { | ||
| return List.of(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intentional? For me as a developer it would be very confusing.
| public ConductorClientResponse<WebhookConfig> updateWebhook(String id, WebhookConfig webhookConfig) { | ||
| ConductorClientRequest request = ConductorClientRequest.builder() | ||
| .method(Method.PUT) | ||
| .path("/metadata/webhook/" + id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: mostly in the code pathParam is used
| return client.execute(request, new TypeReference<>() { | ||
| }); | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: new line. Doesn't spotless should check it? I'll take a look later
|
|
||
| private String key; | ||
| private String value; | ||
| public String key; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need this? getter/setter is usually preferred in Java
| private String createdBy; | ||
| private List<Tag> tags; | ||
|
|
||
| private List<WebhookExecutionHistory> webhookExecutionHistory;//TODO Remove this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this TODO? Should it be merged? If yes, then I'd add to the comment info about when and why it should be removed/
| // Test error scenarios | ||
|
|
||
| // Test getting non-existent webhook | ||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert throws
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like tests are mostly generated by LLM. I don't think they are maintainable. Are we ok with having lots of working but not maintainable tests.
IvanKulik-sm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- catch (){return } - I'm against it, let's discuss why we are doing it.
- E2E tests - are we ok with this LLM generated tests?
Pull Request type
NOTE: Please remember to run
./gradlew spotlessApplyto fix any format violations.Changes in this PR
Added SharedResourceClient and WebhookClient
Describe the new behavior from this PR, and why it's needed
Issue #
Alternatives considered
Describe alternative implementation you have considered