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

Fix Preview when Adding Languages to Experience Config #5316

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gilluminate
Copy link
Contributor

@gilluminate gilluminate commented Sep 23, 2024

Closes PROD-2715

Description Of Changes

When we're adding languages in the Admin UI to an Experience Config, we should see them on the preview until they're saved, the preview just had the exp.title, exp.description, etc. because the new language wasn't included in the available_locales list.

This update ensures that the available_locales list always includes the currently edited language locale.

Code Changes

  • As we're updating/determining the language to display, also update the available_locales list with that language's locale.
  • Cleaned up changelog where some items were added in the wrong release

Steps to Confirm

  • In Admin UI, edit an experience with an available preview (non-TCF).
  • Add a new language to the experience
  • When the language defaults load into the form, those defaults should immediately be displayed in the Preview
    Note: For better context, watch the Loom on the original bug report in Jira

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Sep 23, 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 24, 2024 9:28pm

Copy link

cypress bot commented Sep 23, 2024

fides    Run #10107

Run Properties:  status check passed Passed #10107  •  git commit baba371fd2 ℹ️: Merge b6b0fda57a7ea3cb2516554e96745e4143b9103d into 06d25c744e7863bc3af0ed44c586...
Project fides
Branch Review refs/pull/5316/merge
Run status status check passed Passed #10107
Run duration 00m 38s
Commit git commit baba371fd2 ℹ️: Merge b6b0fda57a7ea3cb2516554e96745e4143b9103d into 06d25c744e7863bc3af0ed44c586...
Committer Jason Gill
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 ↗︎

@gilluminate gilluminate force-pushed the PROD-2715-no-preview-when-adding-language branch from ff062c1 to b6b0fda Compare September 24, 2024 21:27
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.

1 participant