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

Rename user_id --> ga_client_id #2356

Merged

Conversation

allisonking
Copy link
Contributor

@allisonking allisonking commented Jan 24, 2023

Patches up #2304 after some more conversation with @pattisdr

Code Changes

  • Rename all references of user_id to ga_client_id. Since this was merged to a feature branch, should be safe to make these changes directly instead of making another alembic migration

Steps to Confirm

  • list any manual steps for reviewers to confirm the changes

Pre-Merge Checklist

Description Of Changes

Will also need to update #2337

@allisonking allisonking marked this pull request as ready for review January 24, 2023 22:52
Copy link
Contributor

@pattisdr pattisdr left a comment

Choose a reason for hiding this comment

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

this is great thank you

@allisonking allisonking merged commit 13e528f into consent-propagation Jan 24, 2023
@allisonking allisonking deleted the aking/fidesplus-519/rename-ga-client-id branch January 24, 2023 23:09
@@ -767,7 +767,7 @@ class ProvidedIdentityType(EnumType):

email = "email"
phone_number = "phone_number"
user_id = "user_id"
ga_client_id = "ga_client_id"
Copy link
Contributor

Choose a reason for hiding this comment

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

one more question, are we sure that it is the client_id and not the app_instance_id?

My options in the API request are:
Type of user. One of APP_INSTANCE_ID, CLIENT_ID or USER_ID.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh! I know that the cookie only has the client_id. I'm guessing the app_instance_id might be the GA value customers have to put in their javascript, but let me take a look at the docs and get back to you.

Copy link
Contributor

Choose a reason for hiding this comment

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

okay great 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay yes, looking at this, https://developers.google.com/analytics/devguides/config/userdeletion/v3, it should be client_id we want here

Copy link
Contributor

Choose a reason for hiding this comment

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

excellent

@pattisdr pattisdr mentioned this pull request Jan 25, 2023
14 tasks
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