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

[Follow-up] Fix extraction script #4895

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Conversation

curq
Copy link
Collaborator

@curq curq commented Sep 1, 2023

Description

This is a follow-up fix to #4794, after the initial bug was solved in this pr. There were 2 additional errors that prevented script from running after I tried to running script later.

ERROR  I18N ERROR  Error in src/plugins/vis_type_vega/public/expressions/vega_fn.ts
      Error: There is more than one default message for the same id "visTypeVega.function.help":
      "Construct line vega spec" and "Vega visualization"
ERROR  I18N ERROR  Error in src/plugins/visualizations/public/embeddable/visualize_embeddable.ts
      Error: expressions are not allowed in template literals ("visualizations.renderVisTitle").

I tried running script again after some time and there were 3 more new errors
image
It looks like they were introduced in recent PRs related to discover.

Issues Resolved

#4794

Screenshot

Testing the changes

We can test it by running the script from #4794
./scripts/use_node scripts/i18n_extract.js --output-dir plugins/dashboards-i18n/translations/ It will create en.json file in output directory without any errors. If no such directory we can output result to root directory to check ./scripts/use_node scripts/i18n_extract.js --output-dir plugins/dashboards-i18n/translations/

Check List

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

Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>
Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #4895 (585d7eb) into main (83cd7f6) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #4895      +/-   ##
==========================================
- Coverage   66.39%   66.39%   -0.01%     
==========================================
  Files        3397     3397              
  Lines       64804    64804              
  Branches    10360    10360              
==========================================
- Hits        43028    43026       -2     
- Misses      19217    19218       +1     
- Partials     2559     2560       +1     
Flag Coverage Δ
Linux_1 34.85% <ø> (ø)
Linux_2 55.15% <ø> (ø)
Linux_3 44.23% <ø> (ø)
Linux_4 34.92% <ø> (ø)
Windows_1 34.87% <ø> (ø)
Windows_2 55.12% <ø> (ø)
Windows_3 44.24% <ø> (-0.01%) ⬇️
Windows_4 34.92% <ø> (ø)

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

Files Changed Coverage Δ
...izations/public/embeddable/visualize_embeddable.ts 19.65% <ø> (ø)

... and 1 file with indirect coverage changes

Copy link
Member

@ananzh ananzh left a comment

Choose a reason for hiding this comment

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

nice. thank you!

@ananzh ananzh merged commit 4e1c370 into opensearch-project:main Sep 13, 2023
67 of 82 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 13, 2023
* fix-script
* fix additional script errors

---------

Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>
(cherry picked from commit 4e1c370)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ananzh pushed a commit that referenced this pull request Sep 13, 2023
* fix-script
* fix additional script errors

---------


(cherry picked from commit 4e1c370)

Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry v2.11.0 valued-contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants