-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate from Sqlite to MongoDB (#85)
* feat: migrate data from sqlite to mongo * feat: migrate cogs * fix: move add_roll_result_thumb to misc * refactor: reorganize modules * test: improve coverage * fix: pass linters * ci: add mongo to github ci * build(deps): bump dependencies * test: mock call to fakeuser.me * test: use polyfactory factories for db models * ci: fix poetry install * ci: remove python 3.12 and refactor CI workflows * refactor: move init database to utility function * fix: prepare for deployment
- Loading branch information
1 parent
1349817
commit 7994d1d
Showing
87 changed files
with
7,756 additions
and
12,143 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
# Default configuration values. These are overwritten by docker-compose.yml environment variables | ||
VALENTINA_BACKUP_PATH = "/valentina/backup" | ||
VALENTINA_DAILY_RETENTION = "7" # Number of daily backups to keep | ||
VALENTINA_DB_PATH = "/valentina/valentina.sqlite" | ||
VALENTINA_LOG_FILE = "/valentina/valentina.log" | ||
VALENTINA_LOG_LEVEL_AWS = "INFO" # Log level for AWS S3 client | ||
VALENTINA_LOG_LEVEL_DB = "INFO" # Log level for database SQL queries | ||
VALENTINA_LOG_LEVEL_HTTP = "INFO" # Log level for discord HTTP, gateway, webhook, client events | ||
VALENTINA_LOG_LEVEL = "INFO" # Overall log level for the bot | ||
VALENTINA_MONTHLY_RETENTION = "12" # Number of monthly backups to keep | ||
VALENTINA_WEEKLY_RETENTION = "4" # Number of weekly backups to keep | ||
VALENTINA_YEARLY_RETENTION = "2" # Number of yearly backups to keep | ||
VALENTINA_LOG_LEVEL_AWS = "INFO" # Log level for AWS S3 client | ||
VALENTINA_LOG_LEVEL_DB = "INFO" # Log level for database SQL queries | ||
VALENTINA_LOG_LEVEL_HTTP = "INFO" # Log level for discord HTTP, gateway, webhook, client events | ||
VALENTINA_LOG_LEVEL = "INFO" # Overall log level for the bot |
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
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
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
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
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
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
Oops, something went wrong.