Skip to content
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

Updating custom integrations to support multiple identities #5318

Conversation

galvana
Copy link
Contributor

@galvana galvana commented Sep 23, 2024

Closes PROD-2794

Description Of Changes

Updating the Responsys and Firebase Auth integrations to support multiple identities. These two integrations are custom and were relying on some code that is no longer in use.

Code Changes

  • Updated Responsys and Firebase Auth

Steps to Confirm

  • These two integrations should not fail if a privacy request is submitted with two identities

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

@galvana galvana requested a review from a team as a code owner September 23, 2024 19:38
Copy link

vercel bot commented Sep 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 4:31pm

@galvana galvana added the run unsafe ci checks Runs fides-related CI checks that require sensitive credentials label Sep 23, 2024
identities = list({k for k, v in identity_data.items() if v})
if len(identities) > 1:
raise FidesopsException(
"Only one identity can be specified for SaaS connector traversal"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the error we're currently seeing, but this isn't accurate since we support multiple identities now

assert len(
access_results[f"{fides_key}:{collection['name']}"]
), f"No rows returned for collection '{collection['name']}'"
if not skip_access_results_check:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick fix to avoid checking for access data. This is necessary since our test account for Responsys isn't going to return access data for every collection.

Copy link

cypress bot commented Sep 23, 2024

fides    Run #10094

Run Properties:  status check passed Passed #10094  •  git commit 866e420c57 ℹ️: Merge 673b1e0bec06c19949b555295e5338de611f9129 into 0a0ea4f400ca6d1e10ad3b154f90...
Project fides
Branch Review refs/pull/5318/merge
Run status status check passed Passed #10094
Run duration 00m 42s
Commit git commit 866e420c57 ℹ️: Merge 673b1e0bec06c19949b555295e5338de611f9129 into 0a0ea4f400ca6d1e10ad3b154f90...
Committer Adrian Galvan
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

Copy link
Contributor

@Vagoasdf Vagoasdf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good. I just have some suggestions on using functions and splitting, but nothing crucial

"Unsupported identity type for Oracle Responsys connector. Currently only `email` and `phone_number` are supported"
)
for identity in get_identities(privacy_request):
if identity == "email":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could extract the code fragment for retrieving the query_ids and query_attributes into its own method for readability, now that we are one level deeper with a for loop. It would help readability

@galvana galvana merged commit 41094b7 into main Sep 24, 2024
14 checks passed
@galvana galvana deleted the PROD-2794-update-responsys-integration-to-support-multiple-identities branch September 24, 2024 16:31
Copy link

cypress bot commented Sep 24, 2024

fides    Run #10095

Run Properties:  status check passed Passed #10095  •  git commit 41094b7274: Updating custom integrations to support multiple identities (#5318)
Project fides
Branch Review main
Run status status check passed Passed #10095
Run duration 00m 39s
Commit git commit 41094b7274: Updating custom integrations to support multiple identities (#5318)
Committer Adrian Galvan
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run unsafe ci checks Runs fides-related CI checks that require sensitive credentials
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants