-
Notifications
You must be signed in to change notification settings - Fork 1
V0.0.4 #5
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
Merged
Merged
V0.0.4 #5
Conversation
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
β¦ile; implement port check and free scripts
β¦ication - Updated docker-compose to use JSON config file. - Added structured logging in main application and utility scripts. - Improved error handling and logging in authentication routes. - Migrated configuration from TOML to JSON format for better runtime handling. - Enhanced documentation with module-level and function-level docstrings.
β¦and modify login script email
- Implement tests for landing, login, and register pages to ensure they return 200 status and contain expected text. - Verify that POST requests to login and register pages return 405 Method Not Allowed. - Test custom 404 and 405 error handlers for proper responses. - Mock and test 401 and 403 error handlers for unauthorized access. - Implement tests for tar-pitting mechanism to delay attackers and track failed attempts. - Validate that blueprints are registered and return expected status codes for various endpoints.
β¦cation structure for Second Brain Database - Implemented configuration management in `config.py` to handle environment detection and load settings from a user config file or defaults. - Established MongoDB client and database connection in `database.py`. - Created the main Flask application entry point in `main.py`, including route setup, middleware, and error handling. - Initialized user module and versioned submodules for emotion tracking and notes management. - Developed CRUD operations for emotion tracking in `emotion_tracker/model.py` and `emotion_tracker/routes.py`. - Implemented CRUD operations for notes management in `notes/model.py` and `notes/routes.py`. - Added decorators for user authentication and authorization in `utils/decorators/privileged.py`.
- Deleted `services.py` which contained user authentication and management logic. - Removed `main.py` which served as the entry point for the Flask application, including routes and middleware. - Eliminated emotion tracking model and routes in `emotion_tracker/model.py` and `emotion_tracker/routes.py`. - Removed notes management model and routes in `notes/model.py` and `notes/routes.py`. - Updated `config.py` to include a function for printing effective configuration values. - Adjusted tests to reflect changes in module imports and configurations.
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.
π¦ Second Brain Database β Changelog
[v0.0.4] - 2025-06-11
Status: β Complete
Branch:
devβmainRelease Type: Internal milestone
β Summary of Changes
main.py(21 unit tests)pylintand achieved 10/10 score for entiresrc/codebaseπ Detailed Breakdown
π§ͺ Testing
main.py, achieving 100% test coverage.pytest --covand Codecov CI reports.βοΈ DevOps & Code Quality
pylintfor static code analysis and style enforcement.src/.π³ Docker Fixes
Dockerfileand/ordocker-compose.yml.π Security Improvements
π Affected Files & Areas
src/**β Fully linted and refactoredtests/β New unit tests added.pylintrcβ Added for lint configuration.codecov.ymlor CI config β Coverage uploadDockerfile,docker-compose.ymlβ Fixed deploymentπ Outcome of v0.0.4
main.pyπ Next Steps (Planned for v0.0.5)
src/pre-commithooks for lint/test enforcement