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

PROD-2818 Update Fides.shopify() integration for Shopify Plus Consent #5329

Merged
merged 8 commits into from
Sep 25, 2024

Conversation

eastandwestwind
Copy link
Contributor

@eastandwestwind eastandwestwind commented Sep 25, 2024

Closes https://ethyca.atlassian.net/browse/PROD-2818

Description Of Changes

Updates Fides.shopify() to appropriately push consent to new shopify consent fields, mapped to Fides data uses.

Code Changes

  • Update Fides.shopify() fn to handle mapping Fides data uses to shopify consent

Steps to Confirm

Loom here- https://www.loom.com/share/cbd2dea0919a4706bad28cb360cff6ef

  • Configure Admin-UI with notices / experiences that point to the marketing, data_sales_and_sharing, analytics, and functional data categories.
  • On a test Shopify site using the above experiences, enable shopify integration by running window.Fides.shopify() after fides.js has loaded
  • Run window.Shopify.customerPrivacy.currentVisitorConsent() to view current privacy status
  • Update privacy settings on banner or modal
  • Run window.Shopify.customerPrivacy.currentVisitorConsent() to view updated privacy status. See this mapping for details on what shopify keys map to which Fides notice keys

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 Sep 25, 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 25, 2024 7:13pm

Copy link

cypress bot commented Sep 25, 2024

fides    Run #10164

Run Properties:  status check passed Passed #10164  •  git commit a5dc8760c3 ℹ️: Merge 3570d058c8916c8762a8d35c479ea4e967d12fd8 into c0c6d73e59cf1581f06356a47ebd...
Project fides
Branch Review refs/pull/5329/merge
Run status status check passed Passed #10164
Run duration 00m 38s
Commit git commit a5dc8760c3 ℹ️: Merge 3570d058c8916c8762a8d35c479ea4e967d12fd8 into c0c6d73e59cf1581f06356a47ebd...
Committer Catherine Smith
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

@thingscouldbeworse thingscouldbeworse left a comment

Choose a reason for hiding this comment

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

Unfamiliar with FidesJS but the base change of passing in more options looks good

@eastandwestwind eastandwestwind merged commit 0f2f465 into main Sep 25, 2024
13 checks passed
@eastandwestwind eastandwestwind deleted the PROD-2818 branch September 25, 2024 19:29
Copy link

cypress bot commented Sep 25, 2024

fides    Run #10166

Run Properties:  status check passed Passed #10166  •  git commit 0f2f465ad2: PROD-2818 Update Fides.shopify() integration for Shopify Plus Consent (#5329)
Project fides
Branch Review main
Run status status check passed Passed #10166
Run duration 00m 39s
Commit git commit 0f2f465ad2: PROD-2818 Update Fides.shopify() integration for Shopify Plus Consent (#5329)
Committer Catherine Smith
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants