Skip to content

adding guardrails for non-existent ml playground files - #51164

Merged
mgc1194 merged 1 commit into
stagingfrom
p20-109/fix-sync-ou-ml-playground-distribution
Apr 6, 2023
Merged

adding guardrails for non-existent ml playground files#51164
mgc1194 merged 1 commit into
stagingfrom
p20-109/fix-sync-ou-ml-playground-distribution

Conversation

@mgc1194

@mgc1194 mgc1194 commented Apr 6, 2023

Copy link
Copy Markdown
Contributor

Sync out fails in the distribution of content with the following error:
Sync out failed from the error: Errno::ENOENT: No such file or directory @ rb_sysopen - apps/i18n/mlPlayground/sm_ws.json
This is trigger by adding samoan to the supported languages.

This PR adds guardrails to the sync-out, checking if the ml-playground file, for a locale exists, before reading the file, and returning an empty Hash otherwise.

Links

Testing story

Ran sync in test server and successfully included Samoan for ml-playground strings.
image

Deployment strategy

This PR does not have any effect in the Deployment.

@mgc1194
mgc1194 requested a review from a team as a code owner April 6, 2023 14:10

@wilkie wilkie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm 👍

@mgc1194
mgc1194 merged commit d4e62d0 into staging Apr 6, 2023
@mgc1194
mgc1194 deleted the p20-109/fix-sync-ou-ml-playground-distribution branch April 6, 2023 21:23
mgc1194 added a commit that referenced this pull request Apr 7, 2023
@mgc1194 mgc1194 mentioned this pull request Apr 7, 2023
snickell pushed a commit that referenced this pull request Feb 3, 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.

3 participants