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

[IL-286] Average Rating, Review Exists Check #254

Merged
merged 15 commits into from
Mar 18, 2024

Conversation

annstriganova
Copy link
Contributor

@annstriganova annstriganova commented Mar 17, 2024

1. Task's name:

[IL-286] Post a review and rating
[IL-299] Add Product Review

2. Developer's full name:

Anna Striganova

3. Changes:

  • implemented GET /api/v1/products/{productId}/reviews/exists
  • implemented getRatingByProductId returning AVG rating
  • added tests for rating

MatsnevAl and others added 15 commits February 15, 2024 21:00
…get-avg-rating

# Conflicts:
#	src/main/java/com/zufar/icedlatte/review/endpoint/RatingEndpoint.java
# Conflicts:
#	pom.xml
#	src/main/java/com/zufar/icedlatte/common/exception/handler/GlobalExceptionHandler.java
#	src/main/java/com/zufar/icedlatte/product/api/SingleProductProvider.java
#	src/main/java/com/zufar/icedlatte/security/configuration/SecurityConstants.java
#	src/main/java/com/zufar/icedlatte/security/configuration/SpringSecurityConfiguration.java
#	src/main/resources/db/changelog/version-1.0/changelog-master-version-1.0.yaml
…-Add-Product-Rating

# Conflicts:
#	pom.xml
#	src/main/java/com/zufar/icedlatte/review/api/RatingUpdater.java
#	src/main/java/com/zufar/icedlatte/review/converter/RatingConverter.java
#	src/main/java/com/zufar/icedlatte/review/endpoint/ProductRatingEndpoint.java
#	src/main/java/com/zufar/icedlatte/review/entity/ProductRating.java
#	src/main/java/com/zufar/icedlatte/review/repository/RatingRepository.java
#	src/main/java/com/zufar/icedlatte/security/configuration/SecurityConstants.java
#	src/main/java/com/zufar/icedlatte/security/configuration/SpringSecurityConfiguration.java
#	src/main/java/com/zufar/icedlatte/security/jwt/JwtAuthenticationFilter.java
#	src/main/resources/api-specs/product-rating-openapi.yaml
#	src/main/resources/db/changelog/version-1.0/15.02.2024.part1.create-product-rating-table.sql
#	src/main/resources/db/changelog/version-1.0/changelog-master-version-1.0.yaml
Copy link

gitguardian bot commented Mar 17, 2024

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
9368413 Triggered Generic High Entropy Secret c02f933 src/test/resources/application-test.yaml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@Sunagatov Sunagatov merged commit 635a5dd into development Mar 18, 2024
3 of 4 checks passed
@Sunagatov Sunagatov deleted the feature/IL-298-Add-Product-Rating branch March 18, 2024 20:06
@Sunagatov Sunagatov linked an issue Jun 16, 2024 that may be closed by this pull request
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.

averageRating getting from 2 endpoints has a different data type.
2 participants