-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add support for builder pattern in QuerySpec #94
Conversation
WalkthroughThe primary changes across multiple Changes
Poem
Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration 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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- backend-core-business-impl/pom.xml (1 hunks)
- backend-core-business-spring-impl/pom.xml (1 hunks)
- backend-core-business/pom.xml (1 hunks)
- backend-core-data-impl/pom.xml (1 hunks)
- backend-core-data/pom.xml (1 hunks)
- backend-core-model/pom.xml (1 hunks)
- backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java (1 hunks)
- pom.xml (1 hunks)
Files skipped from review due to trivial changes (7)
- backend-core-business-impl/pom.xml
- backend-core-business-spring-impl/pom.xml
- backend-core-business/pom.xml
- backend-core-data-impl/pom.xml
- backend-core-data/pom.xml
- backend-core-model/pom.xml
- pom.xml
Additional comments not posted (2)
backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java (2)
29-29
: Updated import statement to includelombok.Builder
.The change from
AccessLevel
toBuilder
reflects the addition of the@Builder
annotation, aligning with the PR's objectives to enhance theQuerySpec
class with builder pattern functionality.
33-33
: Addition of@Builder
annotation toQuerySpec
.This enhancement introduces a builder pattern, which is beneficial for creating instances of
QuerySpec
with optional parameters in a clean and readable manner. Ensure that all fields in the class are compatible with the builder pattern, especially considering the presence offinal
fields and complex initializations.
May we discuss whether fluent setters would provide better DX than Lombok |
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.
Make the creation of new QuerySpec instances easier by using chained Accessors. This make the feature not binary compatible, but given that we're just returning QuerySpecs instead of void, everything should compile, thus this is not a breaking change. Closes #93
Quality Gate passedIssues Measures |
Made a different approach with Accessors |
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- backend-core-business-impl/pom.xml (1 hunks)
- backend-core-business-spring-impl/pom.xml (1 hunks)
- backend-core-business/pom.xml (1 hunks)
- backend-core-data-impl/pom.xml (1 hunks)
- backend-core-data/pom.xml (1 hunks)
- backend-core-model/pom.xml (1 hunks)
- backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java (3 hunks)
- pom.xml (1 hunks)
Files skipped from review as they are similar to previous changes (8)
- backend-core-business-impl/pom.xml
- backend-core-business-spring-impl/pom.xml
- backend-core-business/pom.xml
- backend-core-data-impl/pom.xml
- backend-core-data/pom.xml
- backend-core-model/pom.xml
- backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java
- pom.xml
Summary by CodeRabbit
New Features
QuerySpec
model with the@Builder
annotation for easier instantiation.Chores
1.1.0-SNAPSHOT
for various modules to align with new release.