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

Create test/demo data by selecting configured languages localizations #3057

Merged
merged 6 commits into from
Oct 11, 2022

Conversation

aatkin
Copy link
Collaborator

@aatkin aatkin commented Oct 6, 2022

relates #2334

Add logic to test-data-helpers functions to select configured languages for localized fields. Test data creation/generation can pass as many localizations as needed, and the actual localizations are selected based on the current configuration.

Also refactored test-data namespace to use test-data-helpers functions with namespace prefix (test-helpers as used elsewhere) instead of :all.

Checklist for author

Remove items that aren't applicable, check items that are done.

Reviewability

  • Link to issue

Documentation

  • Update changelog if necessary

Follow-up

  • New tasks are created for pending or remaining tasks

@aatkin aatkin changed the title Parameterize test/demo data creation by configured language Create test/demo data localizations by selecting configured language localizations Oct 10, 2022
@aatkin aatkin changed the title Create test/demo data localizations by selecting configured language localizations Create test/demo data by selecting configured language localizations Oct 10, 2022
@aatkin aatkin changed the title Create test/demo data by selecting configured language localizations Create test/demo data by selecting configured languages localizations Oct 10, 2022
It would be better to use test-data-helpers ns, but a lot of code uses test-helpers so if it is decided to refactor these ns referrals, then it is easier to do mass replace if every place uses the same ns.
@aatkin aatkin marked this pull request as ready for review October 10, 2022 08:11
@aatkin aatkin merged commit 900d1d1 into master Oct 11, 2022
@aatkin aatkin deleted the 2334/demo-data-languages branch October 11, 2022 14:49
@aatkin aatkin mentioned this pull request Oct 12, 2022
2 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.

None yet

2 participants