Skip to content

Conversation

@enverern
Copy link
Contributor

@enverern enverern commented Dec 2, 2025

Helpful Count Feature

This PR introduces the "Helpful" feature for workplace reviews.

Changes

  • New Endpoint: POST /api/workplace/{workplaceId}/review/{reviewId}/helpful

    • Toggles the "helpful" status of a review (like/unlike).
    • Users cannot mark their own reviews as helpful.
  • Response Update: Added isHelpfulByUser field to ReviewResponse.

    • true: The authenticated user has marked this review as helpful.
    • false: The user has not marked it or is not authenticated.
  • Logic:

    • Implemented logic in ReviewService to handle toggling and updating the helpfulCount.
    • Updated list and detail retrieval methods to check the user's reaction status and populate the response accordingly.

Closes #481

@enverern enverern added this to the Milestone 3: Final Milestone milestone Dec 2, 2025
@enverern enverern requested a review from ykaydogdu December 2, 2025 19:55
@enverern enverern self-assigned this Dec 2, 2025
@enverern enverern added type: feature New feature or request domain: backend Back-end related items priority: medium issue with medium priority labels Dec 2, 2025
@enverern enverern linked an issue Dec 2, 2025 that may be closed by this pull request
4 tasks
Copy link
Contributor

@ykaydogdu ykaydogdu left a comment

Choose a reason for hiding this comment

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

All features work as intended, thx!

@enverern enverern merged commit 63a1f5d into dev Dec 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Back-end related items priority: medium issue with medium priority type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Add Helpful Count Support for Workplace Reviews

3 participants