-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PROD-2700 Implement Soft Delete for PrivacyRequests (#5321)
- Loading branch information
1 parent
faf46fc
commit 01267a1
Showing
18 changed files
with
804 additions
and
10 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
10 changes: 10 additions & 0 deletions
10
clients/admin-ui/src/types/api/models/BulkSoftDeletePrivacyRequests.ts
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,10 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { BulkUpdateFailed } from "./BulkUpdateFailed"; | ||
|
||
export type BulkSoftDeletePrivacyRequests = { | ||
succeeded: Array<string>; | ||
failed: Array<BulkUpdateFailed>; | ||
}; |
22 changes: 22 additions & 0 deletions
22
clients/admin-ui/src/types/api/models/DynamicErasureEmailDocsSchema.ts
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,22 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { AdvancedSettings } from "./AdvancedSettings"; | ||
import type { FidesDatasetReference } from "./FidesDatasetReference"; | ||
|
||
/** | ||
* DynamicErasureEmailDocsSchema Secrets Schema for API Docs | ||
*/ | ||
export type DynamicErasureEmailDocsSchema = { | ||
test_email_address?: string | null; | ||
advanced_settings?: AdvancedSettings; | ||
/** | ||
* Dataset reference to the field containing the third party vendor name. Both third_party_vendor_name and recipient_email_address must reference the same dataset and collection. | ||
*/ | ||
third_party_vendor_name: FidesDatasetReference; | ||
/** | ||
* Dataset reference to the field containing the recipient email address. Both third_party_vendor_name and recipient_email_address must reference the same dataset and collection. | ||
*/ | ||
recipient_email_address: FidesDatasetReference; | ||
}; |
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
33 changes: 33 additions & 0 deletions
33
...fides/api/alembic/migrations/versions/75bb9ee843f5_add_soft_delete_for_privacy_request.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 @@ | ||
"""Adds deleted_at and deleted_by to PrivacyRequest | ||
Revision ID: 75bb9ee843f5 | ||
Revises: 68c590ff6e89 | ||
Create Date: 2024-09-19 14:35:30.510909 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "75bb9ee843f5" | ||
down_revision = "68c590ff6e89" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"privacyrequest", | ||
sa.Column("deleted_at", sa.DateTime(timezone=True), nullable=True), | ||
) | ||
op.add_column("privacyrequest", sa.Column("deleted_by", sa.String(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("privacyrequest", "deleted_by") | ||
op.drop_column("privacyrequest", "deleted_at") | ||
# ### 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.