-
Notifications
You must be signed in to change notification settings - Fork 81
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
replace second parameter of ratingCalculation() metod from type 'EcoN… #8074
base: dev
Are you sure you want to change the base?
Conversation
WalkthroughThe changes involve modifications in the Changes
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
service/src/main/java/greencity/service/EcoNewsServiceImpl.java
Outdated
Show resolved
Hide resolved
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
🧹 Nitpick comments (1)
service/src/main/java/greencity/rating/constant/RatingPointsNames.java (1)
3-6
: Good practice using constants, but could benefit from documentation and utility class best practices.The introduction of constants to standardize rating point names is a good practice. Consider these enhancements:
- Add class-level Javadoc explaining the purpose
- Add documentation for each constant
- Prevent instantiation since this is a utility class
Here's how you could improve it:
package greencity.rating.constant; +/** + * Contains constant names for rating points used in the application. + * These constants are used to standardize the identifiers for rating-related actions. + */ public class RatingPointsNames { + private RatingPointsNames() { + throw new UnsupportedOperationException("Utility class should not be instantiated"); + } + + /** Rating points awarded for creating a news article */ public static final String CREATE_NEWS = "CREATE_NEWS"; + + /** Rating points deducted when undoing news creation */ public static final String UNDO_CREATE_NEWS = "UNDO_CREATE_NEWS"; }
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
service/src/main/java/greencity/rating/constant/RatingPointsNames.java
(1 hunks)service/src/main/java/greencity/service/EcoNewsServiceImpl.java
(4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- service/src/main/java/greencity/service/EcoNewsServiceImpl.java
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build
Quality Gate passedIssues Measures |
Issue Link: #8070
Changes:
Summary by CodeRabbit
Bug Fixes
New Features