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

Segment Integration: user_id over email #5004

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SteveDMurphy
Copy link
Contributor

@SteveDMurphy SteveDMurphy commented Jun 19, 2024

Closes FIDES-746

Description Of Changes

It's been determined that the email cannot be used as the identity unless it is also the user_id. For this we need to infer the user_id from either traits or external_ids

Code Changes

  • Update the data_protection_Request to use the user_id instead of the identity email

Steps to Confirm

  • Validate the erasure completes with our test data

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Documentation:
    • documentation complete, PR opened in fidesdocs
    • documentation issue created in fidesdocs
    • if there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md
  • For API changes, the Postman collection has been updated
  • If there are any database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!

Copy link

vercel bot commented Jun 19, 2024

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

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 0:26am

@SteveDMurphy SteveDMurphy self-assigned this Jun 19, 2024
Copy link

cypress bot commented Jun 19, 2024

Passing run #8928 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge 62dfb1c into 75b7dda...
Project: fides Commit: e2e4af0d50 ℹ️
Status: Passed Duration: 00:35 💡
Started: Jul 16, 2024 12:35 PM Ended: Jul 16, 2024 12:35 PM

Review all test suite changes for PR #5004 ↗︎

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.44%. Comparing base (75b7dda) to head (62dfb1c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5004   +/-   ##
=======================================
  Coverage   86.44%   86.44%           
=======================================
  Files         354      354           
  Lines       22201    22201           
  Branches     2925     2925           
=======================================
  Hits        19192    19192           
  Misses       2495     2495           
  Partials      514      514           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

fidesops_meta:
fides_meta:
data_type: string
- name: first_name
Copy link
Contributor Author

Choose a reason for hiding this comment

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

additional fields found in testing (these may be configurable by client?)

identity: email
references:
- dataset: <instance_fides_key>
field: traits.user_id
Copy link
Contributor Author

@SteveDMurphy SteveDMurphy Jun 20, 2024

Choose a reason for hiding this comment

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

I chose to use the traits, but it could also be that we use external_ids however it will end up generating extra requests so decided against it for the time being

@SteveDMurphy SteveDMurphy marked this pull request as ready for review June 20, 2024 20:23
@SteveDMurphy SteveDMurphy requested a review from a team as a code owner June 20, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant