-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding ability to resubmit DSRs #5658
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3e61c1f
Adding ability to resubmit DSRs
galvana 00298a2
Running static checks
galvana 8955f94
Additional static fixes
galvana 729e32b
Adding missing inits
galvana e06bb4a
Fixing imports
galvana 7badf89
Fixing mocks in tests
galvana f84e0b3
Fixing assertions
galvana f4b53ad
Importing missing fixture
galvana d1948a8
Renaming services module + misc cleanup
galvana e4d01fe
Adding privacy request service tests
galvana 26d7263
Removing unused imports
galvana 6c2ff81
Specifying Python version
galvana 66f0d4a
Merge branch 'main' into LA-112-add-ability-to-resubmit-a-DSR
galvana 65a723f
Adding endpoint tests
galvana 105e449
Merge branch 'main' into LA-112-add-ability-to-resubmit-a-DSR
galvana 8cd070e
Fixing downrev
galvana 0466046
Misc cleanup + test updates
galvana d1455cb
Falling back to resubmit if cache has expired during privacy request …
galvana 7816425
Reverting changes to user fixture
galvana 6953bb2
Merge branch 'main' into LA-112-add-ability-to-resubmit-a-DSR
galvana 3253756
Merge branch 'main' into LA-112-add-ability-to-resubmit-a-DSR
galvana a27e492
Updating change log
galvana e28c0da
Changing encryption key in test to avoid pre-commit error
galvana 6bbd5db
Formatting fix
galvana 6787aa7
Merge branch 'main' into LA-112-add-ability-to-resubmit-a-DSR
galvana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
99 changes: 99 additions & 0 deletions
99
...ides/api/alembic/migrations/versions/1088e8353890_update_privacy_request_relationships.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,99 @@ | ||
"""update privacy request relationships | ||
|
||
Revision ID: 1088e8353890 | ||
Revises: d9237a0c0d5a | ||
Create Date: 2024-12-26 22:38:37.905571 | ||
|
||
""" | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "1088e8353890" | ||
down_revision = "d9237a0c0d5a" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.drop_constraint( | ||
"custom_privacy_request_field_privacy_request_id_fkey", | ||
"custom_privacy_request_field", | ||
type_="foreignkey", | ||
) | ||
op.create_foreign_key( | ||
"custom_privacy_request_field_privacy_request_id_fkey", | ||
"custom_privacy_request_field", | ||
"privacyrequest", | ||
["privacy_request_id"], | ||
["id"], | ||
onupdate="CASCADE", | ||
ondelete="CASCADE", | ||
) | ||
op.drop_constraint( | ||
"providedidentity_privacy_request_id_fkey", | ||
"providedidentity", | ||
type_="foreignkey", | ||
) | ||
op.create_foreign_key( | ||
"providedidentity_privacy_request_id_fkey", | ||
"providedidentity", | ||
"privacyrequest", | ||
["privacy_request_id"], | ||
["id"], | ||
onupdate="CASCADE", | ||
ondelete="CASCADE", | ||
) | ||
op.drop_constraint( | ||
"privacyrequesterror_privacy_request_id_fkey", | ||
"privacyrequesterror", | ||
type_="foreignkey", | ||
) | ||
op.create_foreign_key( | ||
"privacyrequesterror_privacy_request_id_fkey", | ||
"privacyrequesterror", | ||
"privacyrequest", | ||
["privacy_request_id"], | ||
["id"], | ||
onupdate="CASCADE", | ||
ondelete="CASCADE", | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_constraint( | ||
"providedidentity_privacy_request_id_fkey", | ||
"providedidentity", | ||
type_="foreignkey", | ||
) | ||
op.create_foreign_key( | ||
"providedidentity_privacy_request_id_fkey", | ||
"providedidentity", | ||
"privacyrequest", | ||
["privacy_request_id"], | ||
["id"], | ||
) | ||
op.drop_constraint( | ||
"custom_privacy_request_field_privacy_request_id_fkey", | ||
"custom_privacy_request_field", | ||
type_="foreignkey", | ||
) | ||
op.create_foreign_key( | ||
"custom_privacy_request_field_privacy_request_id_fkey", | ||
"custom_privacy_request_field", | ||
"privacyrequest", | ||
["privacy_request_id"], | ||
["id"], | ||
) | ||
op.drop_constraint( | ||
"privacyrequesterror_privacy_request_id_fkey", | ||
"privacyrequesterror", | ||
type_="foreignkey", | ||
) | ||
op.create_foreign_key( | ||
"privacyrequesterror_privacy_request_id_fkey", | ||
"privacyrequesterror", | ||
"privacyrequest", | ||
["privacy_request_id"], | ||
["id"], | ||
) |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow up on deprecation