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

Issue30 builderclasses #60

Merged
merged 18 commits into from
Oct 10, 2022
Merged

Issue30 builderclasses #60

merged 18 commits into from
Oct 10, 2022

Conversation

muralibasani
Copy link
Contributor

@muralibasani muralibasani commented Sep 30, 2022

About this change - What it does

Introduces enums, valid requests between apis

Resolves: Removes clumsy code
Why this way : Easy maintenance, robust code

Copy link

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

Looks good to me, albeit one comment regarding the response in case of exception/internal server error.

muralibasani added 2 commits October 3, 2022 13:23
- Updating ApiResponse for topic creation
- Updating with ApiResponse for acls
- Updating ApiResponse for schema, acl, connector creation
- Updating with ApiResponse for schemas, conenctors
@muralibasani muralibasani marked this pull request as ready for review October 3, 2022 13:58
@muralibasani muralibasani requested a review from snuyanzin October 5, 2022 08:34
Copy link
Contributor

@jlprat jlprat left a comment

Choose a reason for hiding this comment

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

I have some change requests.
And a general comment. We should avoid having a 140 file PR with over 9000 lines added/modified. I see there are at least 3 or 4 set of changes in this PR. Next time let's try to separate changes in smaller PRs

@mdedetrich
Copy link

@jlprat Regarding your comments about formatting, does it make sense to incorporate a java formatter into this project to automatically handle these things? Something like https://github.com/diffplug/spotless should do the trick, and its better to do these things sooner rather than later.

Copy link

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

So my change was done so approval from my end. I do agree with Josep thought that splitting up the PR's into smaller chunks if possible is much more desirable unless the changes are entirely mechanical (i.e. refactoring).

@jlprat
Copy link
Contributor

jlprat commented Oct 6, 2022

@jlprat Regarding your comments about formatting, does it make sense to incorporate a java formatter into this project to automatically handle these things? Something like https://github.com/diffplug/spotless should do the trick, and its better to do these things sooner rather than later

Yes, I think we'd need to create an issue for this. I don't know if Spotless or another one more Java-native.

@mdedetrich
Copy link

So spotless itself doesn't do formatting, it just an abstraction around existing formatters (with Java you have a choice of like 4 including ones such as https://github.com/google/google-java-format) that also adds other options like ratcheting.

In any case we should discuss this on an separate issue

@muralibasani
Copy link
Contributor Author

@jlprat Regarding your comments about formatting, does it make sense to incorporate a java formatter into this project to automatically handle these things? Something like https://github.com/diffplug/spotless should do the trick, and its better to do these things sooner rather than later.

@jlprat @mdedetrich We have spotless already in there.

@muralibasani
Copy link
Contributor Author

So my change was done so approval from my end. I do agree with Josep thought that splitting up the PR's into smaller chunks if possible is much more desirable unless the changes are entirely mechanical (i.e. refactoring).

@mdedetrich totally agree, there were several inter related changes. And even tried to change few unrelated html content.

@mdedetrich
Copy link

@jlprat @mdedetrich We have spotless already in there.

In that case we should pick a suitable style of formatting and just accept it, the major point of having automated formatters is to prevent bikeshedding arguments over style as well as to provide a consistent look for the project.

Something to consider for later is to add a github workflow action to check that the codebase is formatted properly.

@muralibasani
Copy link
Contributor Author

So spotless itself doesn't do formatting, it just an abstraction around existing formatters (with Java you have a choice of like 4 including ones such as https://github.com/google/google-java-format) that also adds other options like ratcheting.

In any case we should discuss this on an separate issue

@mdedetrich indeed, we have this configured



${google-java-format.version}
<style>GOOGLE</style>



Copy link
Contributor

@jlprat jlprat left a comment

Choose a reason for hiding this comment

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

LGTM

muralibasani and others added 2 commits October 10, 2022 13:55
@muralibasani muralibasani merged commit 6670b10 into main Oct 10, 2022
@muralibasani muralibasani deleted the issue30-builderclasses branch October 10, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants