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

[Backport 2.x] Feat (home): Remove color customizations from sample dashboards #4743

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport ca70d5e from #4741.

* Feat (home): Remove color customizations from sample dashboards

So that they better reflect default color palettes and theming

- Remove `uiStateJSON` `vis.colors` and `vis.defaultColors` customizations
- Remove `embeddableConfig` `vis.colors` and `vis.defaultColors` cusomtizations from dashboard `panelsJSON`
- TSVB visualizations require explicit color picker values - use only defined categorical palette values
- Replace named and explicit colors in vega spec with OUI palette values
- Add missing `time_field` and `index_pattern` properties to TSVB configs that were missing them
- Update vega/vega-lite default config to use `OuiTextColor` for `text` marks

Signed-off-by: Josh Romero <rmerqg@amazon.com>

* update changelog

Signed-off-by: Josh Romero <rmerqg@amazon.com>

---------

Signed-off-by: Josh Romero <rmerqg@amazon.com>
(cherry picked from commit ca70d5e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Merging #4743 (8ed4d13) into 2.x (e0e6617) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              2.x    #4743      +/-   ##
==========================================
- Coverage   66.12%   66.10%   -0.03%     
==========================================
  Files        3315     3315              
  Lines       63892    63894       +2     
  Branches    10123    10123              
==========================================
- Hits        42251    42236      -15     
- Misses      19233    19248      +15     
- Partials     2408     2410       +2     
Flag Coverage Δ
Linux_1 34.77% <100.00%> (+<0.01%) ⬆️
Linux_2 55.07% <ø> (ø)
Linux_3 43.05% <ø> (+<0.01%) ⬆️
Linux_4 35.10% <ø> (ø)
Windows_1 34.79% <100.00%> (-0.04%) ⬇️
Windows_2 55.03% <ø> (ø)
Windows_3 43.05% <ø> (ø)
Windows_4 ?

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

Files Changed Coverage Δ
...s/sample_data/data_sets/ecommerce/saved_objects.ts 100.00% <ø> (ø)
...ces/sample_data/data_sets/flights/saved_objects.ts 100.00% <ø> (ø)
...rvices/sample_data/data_sets/logs/saved_objects.ts 100.00% <ø> (ø)
...ins/vis_type_vega/public/data_model/vega_parser.ts 74.72% <100.00%> (+0.18%) ⬆️

... and 3 files with indirect coverage changes

@joshuarrrr joshuarrrr merged commit 727125d into 2.x Aug 15, 2023
68 of 70 checks passed
@joshuarrrr joshuarrrr deleted the backport/backport-4741-to-2.x branch August 15, 2023 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports distinguished-contributor v2.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants