-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/user registration #85
Open
gsinghjay
wants to merge
19
commits into
main
Choose a base branch
from
feature/user-registration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
Add test coverage details and database setup guides for development and testing
- Added test mode check in rate limiter middleware - Skip rate limiting when TESTING environment variable is set to '1'
- Removed mypy hook to fix type checking issues - Will re-enable after fixing type hints
- Added pytest-postgresql configuration - Created test database fixtures - Added test environment setup
- Updated database URL configuration - Fixed test assertions for PostgreSQL - Added proper database cleanup in tests
- Fixed import path for _rate_limit_exceeded_handler - Resolved test failures due to incorrect import
- Re-enabled mypy in pre-commit config - Added proper type hints to all Python files - Fixed return type annotations in routers and tests - Added missing type hints in test fixtures - Added type ignore for slowapi Limiter.hit method
- Add docker-compose test configuration with PostgreSQL service - Configure pytest with coverage reporting - Add coverage configuration - Add test-specific Dockerfile with multi-stage builds - Set up test environment variables BREAKING CHANGE: Testing now requires Docker and docker-compose
- Add detailed instructions for running tests - Document test environment setup - Add debugging instructions - Include common issues and solutions - Document best practices for testing
- Add PostgreSQL test database configuration - Implement database connection retry logic - Add session fixtures for database testing - Configure test client with database integration - Add environment setup for testing
- Add user registration test cases with Protocol-based typing - Add login flow test cases with proper type hints - Add email verification tests - Add input validation tests - Add comprehensive docstrings to UserServiceProtocol - Implement duck typing with documented Protocol methods - Fix flake8-docstrings and MyPy errors
- Add Protocol usage and service patterns to STANDARDS.md - Update CONTRIBUTING.md with PostgreSQL requirements - Update README.md with new features and setup instructions - Add comprehensive CI/CD workflow documentation - Add type checking and database configuration details - Update environment variables documentation BREAKING CHANGE: PostgreSQL is now required for development and testing
- Add type-safe rate limit middleware - Add custom rate limit handler with proper error responses - Add proper docstrings following Google style - Add test mode handling - Add retry headers following RFC standards - Add error type field for better client handling - Fix UserService Protocol type hints - Remove unused imports BREAKING CHANGE: Rate limit responses now include type field and retry headers
- Add SQLAlchemy connection pooling - Add database retry logic - Add connection timeout settings - Add timezone configuration - Add Alembic migrations with proper documentation - Add users table migration with auth support - Configure database URL handling BREAKING CHANGE: Database configuration now requires PostgreSQL
- Add security utilities for password hashing - Add JWT token handling - Add email verification utilities - Add Pydantic schemas with validation - Add type-safe schema models - Add proper error handling BREAKING CHANGE: Authentication now requires email verification
- Add UserServiceProtocol for type safety - Add user model with SQLAlchemy types - Add service methods with proper typing - Add password reset functionality - Add email verification logic - Add role-based access control BREAKING CHANGE: User service now follows Protocol pattern
- Add environment variable templates with PostgreSQL settings - Add database performance tuning variables - Add coverage configuration - Update Poetry dependencies - Update gitignore patterns for test artifacts - Add testing environment settings BREAKING CHANGE: Development environment now requires PostgreSQL configuration
gsinghjay
force-pushed
the
feature/user-registration
branch
from
January 3, 2025 16:47
8bf3110
to
ca99381
Compare
Resolve merge conflicts in: - app/routers/user_router.py - CONTRIBUTING.md
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.
No description provided.