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 dynamic uses of i18n and correct unprefixed and duplicate i18n identifiers in visBuilder plugin #8399

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

AMoo-Miki
Copy link
Collaborator

Description

Fix dynamic uses of i18n and correct unprefixed and duplicate i18n identifiers in visBuilder plugin

Changelog

  • fix: Fix dynamic uses of i18n and correct unprefixed and duplicate i18n identifiers in visBuilder plugin

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

…entifiers in visBuilder plugin

Signed-off-by: Miki <miki@amazon.com>
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 60.92%. Comparing base (a663a84) to head (518a6bc).
Report is 39 commits behind head on main.

Files with missing lines Patch % Lines
...ilder/public/application/utils/use/use_can_save.ts 0.00% 3 Missing ⚠️
...blic/embeddable/vis_builder_embeddable_factory.tsx 0.00% 1 Missing ⚠️
...lizations/metric/components/metric_viz_options.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8399      +/-   ##
==========================================
- Coverage   60.92%   60.92%   -0.01%     
==========================================
  Files        3750     3750              
  Lines       89103    89101       -2     
  Branches    13925    13925              
==========================================
- Hits        54285    54283       -2     
+ Misses      31442    31441       -1     
- Partials     3376     3377       +1     
Flag Coverage Δ
Linux_1 28.83% <0.00%> (+<0.01%) ⬆️
Linux_2 56.35% <ø> (ø)
Linux_3 37.72% <ø> (-0.01%) ⬇️
Linux_4 29.96% <ø> (ø)
Windows_1 28.84% <0.00%> (+<0.01%) ⬆️
Windows_2 56.30% <ø> (ø)
Windows_3 37.72% <ø> (ø)
Windows_4 29.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ashwin-pc ashwin-pc added the i18n Internationalization related Issues and PRs label Oct 1, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Why are we changing the key here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Each plugin/package/example has a unique namespace that is prefixed to all its keys. Anything under src/plugins/vis_builder belongs to the visBuilder namespace.

@ashwin-pc ashwin-pc merged commit f19e9fa into opensearch-project:main Oct 3, 2024
72 of 73 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 3, 2024
…entifiers in visBuilder plugin (#8399)

* Fix dynamic uses of i18n and correct unprefixed and duplicate i18n identifiers in visBuilder plugin

Signed-off-by: Miki <miki@amazon.com>

* Changeset file for PR #8399 created/updated

---------

Signed-off-by: Miki <miki@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit f19e9fa)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Oct 4, 2024
…entifiers in visBuilder plugin (#8399) (#8476)

* Fix dynamic uses of i18n and correct unprefixed and duplicate i18n identifiers in visBuilder plugin



* Changeset file for PR #8399 created/updated

---------



(cherry picked from commit f19e9fa)

Signed-off-by: Miki <miki@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x distinguished-contributor i18n Internationalization related Issues and PRs v2.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants