Conversation
…to fix-opp-scoring
Merge release into master
- Implemented JWT authentication with token creation and revocation. - Added user login, signup, and logout mutations. - Introduced favorite game management with add/remove functionality. - Updated database schema to support token blocklist and user favorite games. - Enhanced game query to retrieve user's favorited games. - Configured CORS and JWT settings in the Flask app. - Added necessary dependencies in requirements.txt.
Add JWT authentication and user management features
hockey game desc field should not be null now
Fix opp scoring
Add health endpoint
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip You can disable sequence diagrams in the walkthrough.Disable the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This pull request introduces a comprehensive authentication and user favorites system to the backend API, along with several supporting infrastructure improvements. The main changes include JWT-based authentication (login, signup, refresh, logout), secure token revocation and blocklisting, user-specific favorite games management, and related database/index enhancements. Additionally, the API now exposes a health check endpoint and includes several minor improvements and bug fixes.
Authentication & Authorization:
flask_jwt_extended, with support for login, signup, refresh, and logout mutations in GraphQL. Tokens are securely revoked by blocklisting their JTIs in MongoDB, and expired tokens are periodically cleaned up. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]User Favorites Management:
Database & Infrastructure:
/healthendpoint to check API and database connectivity.GraphQL Schema & API Enhancements:
Bug Fixes & Minor Improvements:
References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
Changes Made
Test Coverage
Next Steps (delete if not applicable)
Related PRs or Issues (delete if not applicable)
Screenshots (delete if not applicable)
Screen Shot Name