-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send email alerts on privacy request failures (#1793)
Co-authored-by: Paul Sanders <pau@ethyca.com>
- Loading branch information
Paul Sanders
and
Paul Sanders
authored
Dec 8, 2022
1 parent
df994f6
commit d74ac56
Showing
21 changed files
with
854 additions
and
18 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
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
24 changes: 24 additions & 0 deletions
24
src/fides/api/ctl/migrations/versions/1f61c765cd1c_merge_alembic_heads.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 @@ | ||
"""Merge alembic heads | ||
Revision ID: 1f61c765cd1c | ||
Revises: 8f84fad4e00b, b72541d79f10 | ||
Create Date: 2022-12-02 17:59:08.490577 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1f61c765cd1c' | ||
down_revision = ('8f84fad4e00b', 'b72541d79f10') | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
pass | ||
|
||
|
||
def downgrade(): | ||
pass |
55 changes: 55 additions & 0 deletions
55
src/fides/api/ctl/migrations/versions/28108b17a99c_add_notifications_for_failed_dsr_.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,55 @@ | ||
"""Add notifications for failed DSR requests | ||
Revision ID: 28108b17a99c | ||
Revises: 8f1a19465239 | ||
Create Date: 2022-11-07 23:56:14.066374 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "28108b17a99c" | ||
down_revision = "8f1a19465239" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table( | ||
"privacyrequestnotifications", | ||
sa.Column("id", sa.String(length=255), nullable=False), | ||
sa.Column( | ||
"created_at", | ||
sa.DateTime(timezone=True), | ||
server_default=sa.text("now()"), | ||
nullable=True, | ||
), | ||
sa.Column( | ||
"updated_at", | ||
sa.DateTime(timezone=True), | ||
server_default=sa.text("now()"), | ||
nullable=True, | ||
), | ||
sa.Column("email", sa.String(), nullable=False), | ||
sa.Column("notify_after_failures", sa.Integer(), nullable=False), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
op.create_index( | ||
op.f("ix_privacyrequestnotifications_id"), | ||
"privacyrequestnotifications", | ||
["id"], | ||
unique=False, | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_index( | ||
op.f("ix_privacyrequestnotifications_id"), | ||
table_name="privacyrequestnotifications", | ||
) | ||
op.drop_table("privacyrequestnotifications") | ||
# ### end Alembic commands ### |
24 changes: 24 additions & 0 deletions
24
src/fides/api/ctl/migrations/versions/58933b5cc6e8_merge_failed_dsr_and_twilio.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 @@ | ||
"""Merge failed dsr and twilio | ||
Revision ID: 58933b5cc6e8 | ||
Revises: 179f2bb623ae, 28108b17a99c | ||
Create Date: 2022-11-14 21:26:49.027809 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "58933b5cc6e8" | ||
down_revision = ("179f2bb623ae", "28108b17a99c") | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
pass | ||
|
||
|
||
def downgrade(): | ||
pass |
54 changes: 54 additions & 0 deletions
54
src/fides/api/ctl/migrations/versions/8f84fad4e00b_add_error_message_tracking.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,54 @@ | ||
"""Add error message tracking | ||
Revision ID: 8f84fad4e00b | ||
Revises: 58933b5cc6e8 | ||
Create Date: 2022-11-15 01:38:28.531640 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "8f84fad4e00b" | ||
down_revision = "58933b5cc6e8" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table( | ||
"privacyrequesterror", | ||
sa.Column("id", sa.String(length=255), nullable=False), | ||
sa.Column( | ||
"created_at", | ||
sa.DateTime(timezone=True), | ||
server_default=sa.text("now()"), | ||
nullable=True, | ||
), | ||
sa.Column( | ||
"updated_at", | ||
sa.DateTime(timezone=True), | ||
server_default=sa.text("now()"), | ||
nullable=True, | ||
), | ||
sa.Column("message_sent", sa.Boolean(), nullable=False), | ||
sa.Column("privacy_request_id", sa.String(), nullable=False), | ||
sa.ForeignKeyConstraint( | ||
["privacy_request_id"], | ||
["privacyrequest.id"], | ||
), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
op.create_index( | ||
op.f("ix_privacyrequesterror_id"), "privacyrequesterror", ["id"], unique=False | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_index(op.f("ix_privacyrequesterror_id"), table_name="privacyrequesterror") | ||
op.drop_table("privacyrequesterror") | ||
# ### 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
Oops, something went wrong.