Skip to content

Commit

Permalink
Specifying Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana committed Jan 13, 2025
1 parent 26d7263 commit 6c2ff81
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/backend_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: "pip"

- name: Install Nox
run: pip install nox>=2022

Expand Down Expand Up @@ -340,6 +346,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: "pip"

- name: Install Nox
run: pip install nox>=2022

Expand Down Expand Up @@ -432,6 +444,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: "pip"

- name: Get Vault Token
uses: hashicorp/[email protected]
with:
Expand Down
4 changes: 1 addition & 3 deletions src/fides/api/api/v1/endpoints/privacy_request_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@
ReviewPrivacyRequestIds,
VerificationCode,
)
from fides.api.service.messaging.message_dispatch_service import (
EMAIL_JOIN_STRING,
)
from fides.api.service.messaging.message_dispatch_service import EMAIL_JOIN_STRING
from fides.api.task.execute_request_tasks import log_task_queued, queue_request_task
from fides.api.task.filter_results import filter_data_categories
from fides.api.task.graph_task import EMPTY_REQUEST, EMPTY_REQUEST_TASK, collect_queries
Expand Down
5 changes: 4 additions & 1 deletion src/fides/service/messaging/messaging_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ def send_verification_code(
return verification_code

def send_privacy_request_receipt(
self, policy: Policy, identity: Identity, privacy_request: PrivacyRequest
self,
policy: Optional[Policy],
identity: Identity,
privacy_request: PrivacyRequest,
) -> None:
if message_send_enabled(
self.db,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def approve_privacy_requests(
if not privacy_request:
failed.append(
BulkUpdateFailed(
message=f"No privacy request found with ID '{request_id}'",
message=f"No privacy request found with id '{request_id}'",
data={"privacy_request_id": request_id},
)
)
Expand Down

0 comments on commit 6c2ff81

Please sign in to comment.