-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: store payload & make webhook UUID clickable to show payload
- Loading branch information
Showing
4 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...d/coprs_frontend/alembic/versions/046fb5ed2cf3_add_new_column_to_store_webhook_payload.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,24 @@ | ||
""" | ||
add new column to store Webhook payload | ||
Revision ID: 046fb5ed2cf3 | ||
Create Date: 2024-10-07 05:53:50.891339 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '046fb5ed2cf3' | ||
down_revision = 'bb52d9f878f5' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('webhook_history', sa.Column('payload', sa.Text())) | ||
Check warning Code scanning / vcs-diff-lint Trailing whitespace Warning
Trailing whitespace
|
||
|
||
|
||
def downgrade(): | ||
op.drop_column('webhook_history', 'payload') |
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