Skip to content

Commit

Permalink
Task/deseng602 Clean up unused code in the met-cron service (bcgov#2516)
Browse files Browse the repository at this point in the history
* DESENG-602 Remove unneeded libraries and migrations

* DESENG-602 Merge main and update changelog

---------

Co-authored-by: Alex <[email protected]>
  • Loading branch information
Baelx and Alex authored May 21, 2024
1 parent 8093fd2 commit 5563c53
Show file tree
Hide file tree
Showing 22 changed files with 14 additions and 770 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## May 21, 2024
- **Task** Clean up met-cron [🎟️ DESENG-602](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-602)

## May 16, 2024

- **Bugfix** Replace Material Icons with Font Awesome [🎟️ DESENG-608](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-608)
Expand Down
3 changes: 0 additions & 3 deletions met-cron/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ run_publish: ## Run the publish task in local
run_purge: ## Run the publish task in local
. venv/bin/activate && python invoke_jobs.py PURGE

db: ## Update the local database
. venv/bin/activate && python manage.py db upgrade

#################################################################################
# Self Documenting Commands #
#################################################################################
Expand Down
4 changes: 0 additions & 4 deletions met-cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ Before running the following commands run `. venv/bin/activate` to enter into th
>
> Runs the application unit tests<br>
> `make db`
>
> Runs the application database migrations.
> `make lint`
>
> Lints the application code.
Expand Down
11 changes: 0 additions & 11 deletions met-cron/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def get_named_config(environment: Union[str, None]) -> '_Config':
'production': ProdConfig,
'testing': TestConfig,
'docker': DockerConfig,
'migration': MigrationConfig,
}
try:
print(f'Loading configuration: {environment}...')
Expand Down Expand Up @@ -232,16 +231,6 @@ def SQLALCHEMY_DATABASE_URI(self) -> str:
# config for offset days to send reminder emails
OFFSET_DAYS = os.getenv('OFFSET_DAYS', 2)

class MigrationConfig(): # pylint: disable=too-few-public-methods
"""Base class configuration that should set reasonable defaults for all the other configurations."""

# SQLAlchemy settings
# Echoes the SQL queries generated - useful for debugging
SQLALCHEMY_ECHO = env_truthy('SQLALCHEMY_ECHO', True)
# Disable modification tracking for performance
SQLALCHEMY_TRACK_MODIFICATIONS = env_truthy('SQLALCHEMY_TRACK_MODIFICATIONS', True)


class DevConfig(_Config): # pylint: disable=too-few-public-methods
"""Dev Config."""

Expand Down
16 changes: 0 additions & 16 deletions met-cron/manage.py

This file was deleted.

1 change: 0 additions & 1 deletion met-cron/migrations/README

This file was deleted.

50 changes: 0 additions & 50 deletions met-cron/migrations/alembic.ini

This file was deleted.

90 changes: 0 additions & 90 deletions met-cron/migrations/env.py

This file was deleted.

24 changes: 0 additions & 24 deletions met-cron/migrations/script.py.mako

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions met-cron/migrations/versions/07c0dcd415ea_etlruncycle.py

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5563c53

Please sign in to comment.