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

Merged
merged 7 commits into from
Jul 31, 2024

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 31, 2024 0:55am

@SteveDMurphy SteveDMurphy self-assigned this Jun 19, 2024
@SteveDMurphy SteveDMurphy requested a review from galvana June 19, 2024 10:41
Copy link

cypress bot commented Jun 19, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit 1c3aac5780 ℹ️
Started Jul 31, 2024 1:04 PM
Ended Jul 31, 2024 1:05 PM
Duration 00:36 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.54%. Comparing base (59de170) to head (7d5ce20).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5004   +/-   ##
=======================================
  Coverage   86.54%   86.54%           
=======================================
  Files         357      357           
  Lines       22331    22331           
  Branches     2955     2955           
=======================================
  Hits        19327    19327           
  Misses       2480     2480           
  Partials      524      524           

☔ 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
@SteveDMurphy SteveDMurphy requested a review from MarcGEthyca June 20, 2024 20:24
@SteveDMurphy SteveDMurphy requested review from galvana and removed request for MarcGEthyca July 30, 2024 22:21
@SteveDMurphy SteveDMurphy merged commit f509c2d into main Jul 31, 2024
44 of 45 checks passed
@SteveDMurphy SteveDMurphy deleted the SteveDMurphy-segment-erase-user-id branch July 31, 2024 15:50
Copy link

cypress bot commented Jul 31, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit f509c2d
Started Jul 31, 2024 4:02 PM
Ended Jul 31, 2024 4:03 PM
Duration 00:35 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

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.

2 participants