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 (startup): fix font theme key #6703

Merged

Conversation

joshuarrrr
Copy link
Member

Description

Fixes undefined value in font family for next theme. The key should be v8 not default. Skipping changelog entry as this is a follow-up fix to #5652, which hasn't yet been released.

Issues Resolved

Screenshot

Before:

Screenshot 2024-05-02 at 10-48-44 Home - OpenSearch Dashboards

After:
Screenshot 2024-05-02 at 10-36-29 Home - OpenSearch Dashboards

Testing the changes

Validated locally. Reviewers can test by inspecting the generated /startup.js file when using the next theme and validating that the font-family starts with Source Sans 3, not undefined.

Changelog

  • skip

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

Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.70%. Comparing base (9ac5203) to head (f9b2328).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6703   +/-   ##
=======================================
  Coverage   67.70%   67.70%           
=======================================
  Files        3417     3417           
  Lines       66922    66922           
  Branches    10888    10888           
=======================================
  Hits        45310    45310           
  Misses      18966    18966           
  Partials     2646     2646           
Flag Coverage Δ
Linux_1 33.18% <ø> (ø)
Linux_2 55.59% <ø> (ø)
Linux_3 45.26% <ø> (ø)
Linux_4 34.84% <ø> (ø)
Windows_1 33.20% <ø> (ø)
Windows_2 55.56% <ø> (ø)
Windows_3 45.26% <ø> (ø)
Windows_4 34.84% <ø> (ø)

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.

key should be `v8` not `default`

Signed-off-by: Josh Romero <[email protected]>
@seraphjiang
Copy link
Member

we might need to figure out how to test effectively and ensure a way to automate regression test. considering it is blocking 2.14, could we merge and test manually?

@seraphjiang
Copy link
Member

#6704

@kavilla kavilla linked an issue May 2, 2024 that may be closed by this pull request
@BionIT
Copy link
Collaborator

BionIT commented May 2, 2024

Want to understand better, is this a bug fix? If yes, what was the issue and how do we know it is fixed?

@BionIT
Copy link
Collaborator

BionIT commented May 2, 2024

Approve to unblock release, but we need more details

@kavilla
Copy link
Member

kavilla commented May 2, 2024

we might need to figure out how to test effectively and ensure a way to automate regression test. considering it is blocking 2.14, could we merge and test manually?

Yeah we felt the same:
#4465

However, haven't had the bandwidth.

@kavilla kavilla merged commit 1029884 into opensearch-project:main May 2, 2024
66 of 67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 2, 2024
key should be `v8` not `default`

Signed-off-by: Josh Romero <[email protected]>
(cherry picked from commit 1029884)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 2, 2024
key should be `v8` not `default`

Signed-off-by: Josh Romero <[email protected]>
(cherry picked from commit 1029884)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ananzh pushed a commit that referenced this pull request May 2, 2024
key should be `v8` not `default`


(cherry picked from commit 1029884)

Signed-off-by: Josh Romero <[email protected]>
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>
ananzh pushed a commit that referenced this pull request May 3, 2024
key should be `v8` not `default`


(cherry picked from commit 1029884)

Signed-off-by: Josh Romero <[email protected]>
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>
kavilla added a commit to kavilla/OpenSearch-Dashboards-1 that referenced this pull request May 7, 2024
kavilla added a commit that referenced this pull request May 7, 2024
LDrago27 pushed a commit to LDrago27/OpenSearch-Dashboards that referenced this pull request Jun 3, 2024
key should be `v8` not `default`

Signed-off-by: Josh Romero <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport 2.14 distinguished-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry v2.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Startup fails with theme overrides
5 participants