Conversation
- Split the monolithic utils.py into a modular mw_utils package with dedicated modules for environment, config, parameter encoding, authentication, HTTP client, and handler creation. - Updated app.py to use the new utilities, added logging configuration, improved CORS setup, and introduced request ID and health check endpoints. - Replaced .env.example with a more detailed .env.template.
- Introduces _get_env_moodle_url to treat empty or '*' MOODLE_URL as unset, requiring moodle_url query param. - Adds docstrings for clarity, refines handler logic to use normalized base URL, and updates handler signature construction to reflect new environment variable handling.
- Streamlined feature list - Updated Docker and manual run instructions - Clarified authentication and usage steps - Improved configuration documentation. - Enhanced environment variable explanations and provided clearer examples for API usage. - Added Credits
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.
Type of Change
Description
Refactor utils into mw_utils package and improve app setup
Improve MOODLE_URL handling and handler creation
Revise and clarify README documentation
Testing
Checklist