mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 06:31:13 -05:00
Add ReviewEvent model and ReviewSubmissionService for review management
- Created a new ReviewEvent model to track review events with fields for content, rating, moderation status, and timestamps. - Added ForeignKey relationships to connect ReviewEvent with ContentSubmission, User, and Review. - Implemented ReviewSubmissionService to handle review submissions, including creation, updates, and moderation workflows. - Introduced atomic transactions to ensure data integrity during review submissions and updates. - Added logging for review submission and moderation actions for better traceability. - Implemented validation to prevent duplicate reviews and ensure only the review owner can update their review.
This commit is contained in:
@@ -11,7 +11,6 @@ from .endpoints.ride_models import router as ride_models_router
|
||||
from .endpoints.parks import router as parks_router
|
||||
from .endpoints.rides import router as rides_router
|
||||
from .endpoints.moderation import router as moderation_router
|
||||
from .endpoints.versioning import router as versioning_router
|
||||
from .endpoints.auth import router as auth_router
|
||||
from .endpoints.photos import router as photos_router
|
||||
from .endpoints.search import router as search_router
|
||||
@@ -101,9 +100,6 @@ api.add_router("/rides", rides_router)
|
||||
# Add moderation router
|
||||
api.add_router("/moderation", moderation_router)
|
||||
|
||||
# Add versioning router
|
||||
api.add_router("", versioning_router) # Versioning endpoints are nested under entity paths
|
||||
|
||||
# Add photos router
|
||||
api.add_router("", photos_router) # Photos endpoints include both /photos and entity-nested routes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user