Open winstonsung opened 1 month ago
The changes encompass a variety of updates across multiple files, including the introduction of localization for Chinese in zh-hant.json
, updates to project dependencies in pyproject.toml
, requirements.txt
, and requirements_dev.txt
, and the addition of new classes and methods in the application code. Notably, new configuration variables were added to .env.example
, and several new files were introduced to enhance the functionality of the SCAICT-uwu project. The updates also include corrections to documentation and comments, ensuring clarity and consistency throughout the codebase.
File Path | Change Summary |
---|---|
src/scaict_uwu/i18n/course/zh-hant.json |
New localization JSON structure added with metadata and translations for course functionalities. |
pyproject.toml |
Project version updated to 0.2.0 , dependencies upgraded for flask , mysql-connector-python , and py-cord . |
requirements_dev.txt |
Updated versions for astroid , black , dill , packaging , platformdirs , pylint , and pytest . |
requirements.txt |
Updated versions for several dependencies including aiohttp , flask , mysql-connector-python , and others. |
.env.example |
New configuration variables added for database and application settings. |
CONTRIBUTING.md |
Typographical error corrected and clarification added in coding conventions. |
README.md |
Badge labels updated, section headers refined, and minor grammatical corrections made. |
app.py |
Integrated environment variables, refactored user permission checks, and improved error handling. |
cog/api/gift.py |
New Gift class introduced for managing gift sending via Discord. |
cog/comment.py |
Minor comment corrections for clarity in the Comment class. |
cog/game.py |
Comment corrected in the rock_paper_scissors method for clarity. |
docs/abstract_schema_table.json |
JSON schema revised to change root type from "object" to "array" and added "enum" type. |
static/switch-btn.js |
Removed redundant line from switchRight function. |
templates/home.html |
Minor textual correction in JavaScript comments. |
test/enumstruct.py |
New file introduced defining GiftType enumeration. |
.github/workflows/pylint.yml |
Conditional statement added for build job execution based on pull request origin. |
src/scaict_uwu/service_container.py |
Enhanced ServiceContainer class with new methods for service management. |
src/scaict_uwu/service_wiring.py |
New module for default service implementations introduced. |
src/scaict_uwu/bot.py |
New entry point for Discord bot with a placeholder function. |
src/scaict_uwu/core/config/config.py |
New Config class with options and methods for option retrieval. |
src/scaict_uwu/core/config/config_factory.py |
New ConfigFactory class introduced for creating Config instances. |
src/scaict_uwu/core/config/config_names.py |
New ConfigNames class added as a placeholder. |
src/scaict_uwu/core/config/config_schema.py |
New ConfigSchema class added as a placeholder. |
src/scaict_uwu/core/maintenance/maintenance.py |
New abstract Maintenance class introduced for maintenance scripts. |
src/scaict_uwu/core/maintenance/parameters.py |
New MaintenanceParameters class for handling command line parameters. |
src/scaict_uwu/core/maintenance/scripts/update.py |
New UpdateMaintenance class for handling database schema updates. |
src/scaict_uwu/libs/language/language_tag.py |
New LanguageTag class for managing language data. |
src/scaict_uwu/libs/language/language_tag_factory.py |
New LanguageTagFactory class for creating LanguageTag objects. |
src/scaict_uwu/libs/language/language_utils.py |
Enhanced LanguageUtils class with new methods for language code handling. |
src/scaict_uwu/libs/system_message/message.py |
New Message class for fetching and processing system messages. |
src/scaict_uwu/website.py |
New entry point for the SCAICT store website with a placeholder function. |
src/scaict_uwu/data/tables.json |
New JSON schema defining multiple database tables and their attributes. |
src/scaict_uwu/data/tables_diagram_layout.json |
New JSON structure for diagram layout of database tables. |
HISTORY.md |
New file added to document change notes for the SCAICT-uwu project. |
RELEASE-NOTES-0.2.md |
New document created to outline changes and updates for version 0.2. |
.github/workflows/pytest.yml |
New workflow added for automating the testing process with Pylint. |
.github/workflows/unittest.yml |
New workflow added for automating linting and unit testing. |
tests/pytest/test_service_wiring.py |
New unit test file for testing the service_wiring module functionality. |
tests/unittest/test_language_tag_factory.py |
New unit test suite for the LanguageTagFactory class. |
🐾 In the code where changes are made,
New features and fixes are laid.
From JSON files to classes anew,
Each line of code, a fresh debut!
With every update, we purr with glee,
Crafting a project as fine as can be! 🐱✨
[!WARNING]
Rate limit exceeded
@winstonsung has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 17 minutes and 29 seconds before requesting another review.
⌛ How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.🚦 How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://docs.coderabbit.ai/faq) for further information.📥 Commits
Reviewing files that changed from the base of the PR and between 32a1029865d0dd90bfe6df247d4222997e529eb5 and c786866427585b8e7accae72e640f77e643c8c28.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
anything to do before release?
Nothing to do during upgrade as far as I know.
any plan about migrating code to src
folder, or develop in original path
New team is assigning tasks for uwu, maybe we need to discuss the future plan
Any plan about migrating code to
src
folder, or develop in original path?
The current plan is to migrate code to the src
folder while keeping some entrypoints in the root folder.
There were attempts about using the flat layout, but it turns out to be more complicated than the src layout, thus being reverted.
New team is assigning tasks for uwu, maybe we need to discuss the future plan.
Yeah, of course.
Please remember to mark [BREAKING CHANGE] in the Changelog for changes of configuration
Then I guess we should bump version number to 0.2.0 instead?
I just thought, if we add Docker, will it bump to 0.3.0 😅
I don't think so, as that's not a breaking change.
But it's a breaking change when we completely migrated to the src layout.
so, is migration to src layout in this version our goal? or wait for next version?
Should we migrate to src layout in this version?
We're already migrating. It's just haven't complete yet.
Should we completely migrate to src layout in this version?
I don't think this could be done in weeks.
Summary by CodeRabbit
Release Notes
New Features
Gift
class for sending gifts via Discord, enhancing user interaction.Message
class for managing system messages with language support.Maintenance
class for managing maintenance scripts and parameters.LanguageTag
class for managing language data and aLanguageTagFactory
for creating language tags.Config
class for managing application configuration options.Improvements
Documentation
README.md
andCONTRIBUTING.md
for clarity and consistency..env.example
file for better setup guidance.HISTORY.md
to include detailed change notes for previous versions.RELEASE-NOTES-0.2.md
to outline changes for the upcoming version.