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

OFBIZ-12680 Optimized the 'get average product rating' method logic. #540

Closed
wants to merge 1 commit into from

Conversation

sourabhjains04
Copy link

@sourabhjains04 sourabhjains04 commented Aug 26, 2022

Done following:

  • Enhanced and optimized the OOTB 'get average product rating' method logic and updated its references.
  • Updated the 'get average product rating' method logic and optimized the logic by using a dynamic entity using the 'average' function to get the average rather than iterating all the product reviews.
  • Updated the service parameter and updated all the references to add 'delegator' as the new parameter.

Improved: (OFBIZ-12680)
Explanation: Optimized the 'get average product rating' method logic.

Done following:
Enhanced and optimized the OOTB 'get average product rating' method logic and updated its references.
Updated the 'get average product rating' method logic and optimized the logic by using dynamic entity using 'average' function to get the average rather than iterating all the product reviews.
Updated the service parameter and updated all the references to add 'delegator' as the new parameter.
@sonarcloud
Copy link

sonarcloud bot commented Aug 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sourabhjains04 sourabhjains04 deleted the OFBIZ-12680 branch August 26, 2022 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant