-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-0.2.0' into feat/hamed-fse-form-wording-update-…
…1468
- Loading branch information
Showing
48 changed files
with
1,707 additions
and
439 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
backend/lcfs/db/migrations/versions/2024-12-17-11-23_f93546eaec61.py
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""update notification message model | ||
Revision ID: f93546eaec61 | ||
Revises: 5d729face5ab | ||
Create Date: 2024-12-17 11:23:19.563138 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "f93546eaec61" | ||
down_revision = "5d729face5ab" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("notification_message", sa.Column("type", sa.Text(), nullable=False)) | ||
op.add_column( | ||
"notification_message", | ||
sa.Column("related_transaction_id", sa.Text(), nullable=False), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("notification_message", "related_transaction_id") | ||
op.drop_column("notification_message", "type") | ||
# ### end Alembic commands ### |
36 changes: 36 additions & 0 deletions
36
backend/lcfs/db/migrations/versions/2024-12-17-12-25_5b374dd97469.py
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"""Add legacy id to compliance reports | ||
Revision ID: 5b374dd97469 | ||
Revises: f93546eaec61 | ||
Create Date: 2024-17-13 12:25:32.076684 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "5b374dd97469" | ||
down_revision = "f93546eaec61" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"compliance_report", | ||
sa.Column( | ||
"legacy_id", | ||
sa.Integer(), | ||
nullable=True, | ||
comment="ID from TFRS if this is a transferred application, NULL otherwise", | ||
), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("compliance_report", "legacy_id") | ||
# ### end Alembic commands ### |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import asyncio | ||
|
||
from lcfs.services.rabbitmq.transaction_consumer import ( | ||
setup_transaction_consumer, | ||
close_transaction_consumer, | ||
from lcfs.services.rabbitmq.report_consumer import ( | ||
setup_report_consumer, | ||
close_report_consumer, | ||
) | ||
|
||
|
||
async def start_consumers(): | ||
await setup_transaction_consumer() | ||
async def start_consumers(app): | ||
await setup_report_consumer(app) | ||
|
||
|
||
async def stop_consumers(): | ||
await close_transaction_consumer() | ||
await close_report_consumer() |
Oops, something went wrong.