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

LA-141 Apply privacy policy override even when locale doesn't match #5515

Conversation

lucanovera
Copy link
Contributor

@lucanovera lucanovera commented Nov 19, 2024

Description Of Changes

Apply privacy policy override even when locale doesn't match

Code Changes

  • Add exception to locale check for fides_privacy_policy_url
  • Add tests

Steps to Confirm

You can use fides-js-demo.html to test

  1. Make sure you have an experience setup, that has a Privacy policy link label & Privacy policy link URL .
  2. Add this code to the head to do some overrides
    <script> window.fides_overrides = { fides_override_language: "es", fides_privacy_policy_url: "https://ethyca.com", }; </script>
  3. Check that the privacy policy url is overriden even if the fides_override_language doesn't match or if it isn't present.

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated

Copy link

vercel bot commented Nov 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 Nov 20, 2024 2:19pm

Copy link

cypress bot commented Nov 19, 2024

fides    Run #11102

Run Properties:  status check passed Passed #11102  •  git commit c8b1b3da7e ℹ️: Merge 8ced1717e0a322d2c0b9e453dfa2ce08936acea5 into 30c44648063eb2e6dd6d761bfb2b...
Project fides
Branch Review refs/pull/5515/merge
Run status status check passed Passed #11102
Run duration 00m 39s
Commit git commit c8b1b3da7e ℹ️: Merge 8ced1717e0a322d2c0b9e453dfa2ce08936acea5 into 30c44648063eb2e6dd6d761bfb2b...
Committer Lucano Vera
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

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for adding the test too!

expect(mockI18n.load).toHaveBeenCalledWith("es", {
...mockI18nCatalogLoad[1],
"exp.privacy_policy_url":
experienceTranslationOverrides.privacy_policy_url,
Copy link
Contributor

Choose a reason for hiding this comment

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

nice 👍

Lucano Vera added 2 commits November 20, 2024 10:58
…Apply-fides_privacy_policy_url-CMP-override-at-all-times-regardless-of-language
@lucanovera lucanovera merged commit 5418cab into main Nov 20, 2024
13 checks passed
@lucanovera lucanovera deleted the LA-141-Mediavine-Apply-fides_privacy_policy_url-CMP-override-at-all-times-regardless-of-language branch November 20, 2024 16:09
Copy link

cypress bot commented Nov 20, 2024

fides    Run #11106

Run Properties:  status check passed Passed #11106  •  git commit 5418cab86c: LA-141 Apply privacy policy override even when locale doesn't match (#5515)
Project fides
Branch Review main
Run status status check passed Passed #11106
Run duration 00m 38s
Commit git commit 5418cab86c: LA-141 Apply privacy policy override even when locale doesn't match (#5515)
Committer Lucano Vera
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