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

Send property id and also override path. #5532

Conversation

tvandort
Copy link
Contributor

@tvandort tvandort commented Nov 22, 2024

Description Of Changes

Fetch correct experience when a privacy center property is being use. Add env variable to override use a specific property for the root domain (when no property paths are used).

Code Changes

  • If property_id is available, send it as a paramater to the fetch experience function
  • Add env variable to override use a specific property

Steps to Confirm

  1. list any manual steps for reviewers to confirm the changes

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
  • Followup issues:
    • Followup issues created (include link)
    • No followup issues

Copy link

vercel bot commented Nov 22, 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 Nov 22, 2024 6:30pm

Copy link

cypress bot commented Nov 22, 2024

fides    Run #11155

Run Properties:  status check passed Passed #11155  •  git commit ebfa33e455 ℹ️: Merge 2a5bdc5e1db9fd87b8ca8b2903795d200374c345 into f80dddb59f1fdf36534a2069ff34...
Project fides
Branch Review refs/pull/5532/merge
Run status status check passed Passed #11155
Run duration 00m 41s
Commit git commit ebfa33e455 ℹ️: Merge 2a5bdc5e1db9fd87b8ca8b2903795d200374c345 into f80dddb59f1fdf36534a2069ff34...
Committer Tom Van Dort
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 ↗︎

@@ -16,7 +16,9 @@ const loadEnvironmentVariables = () => {
"file:///app/config/config.css",
SHOW_BRAND_LINK:
process.env.FIDES_PRIVACY_CENTER__SHOW_BRAND_LINK === "true" || false,
CUSTOM_PROPERTIES: process.env.CUSTOM_PROPERTIES === "true" || true,
CUSTOM_PROPERTIES: process.env.CUSTOM_PROPERTIES !== "false", // default: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I understand the "why" behind this change, can you elaborate?

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixing a bug I noticed. || true will always be true even if you set it to "false". So I fix that.

It shouldn't matter too much, the default is true and I doubt anyone will set it to false. But just in case I wanted to fix it.

Copy link
Contributor

@lucanovera lucanovera left a comment

Choose a reason for hiding this comment

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

Tested the fix for fetching the correct experience when using properties and it works correctly. Tested the override env variable and works correctly too. Approved.

@lucanovera lucanovera merged commit 955a866 into main Nov 22, 2024
13 checks passed
@lucanovera lucanovera deleted the pass-property-id-to-experience-and-experiment-with-manual-override branch November 22, 2024 19:23
Copy link

cypress bot commented Nov 22, 2024

fides    Run #11158

Run Properties:  status check passed Passed #11158  •  git commit 955a866ed1: Send property id and also override path. (#5532)
Project fides
Branch Review main
Run status status check passed Passed #11158
Run duration 00m 39s
Commit git commit 955a866ed1: Send property id and also override path. (#5532)
Committer Tom Van Dort
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 ↗︎

lucanovera pushed a commit that referenced this pull request Nov 22, 2024
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