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.4] [Chore] Refactor and improve Discover field summaries #2753

Closed
wants to merge 1 commit into from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport b53d4d8 from #2391.

* [Chore] Refactor and improve field summaries

* Convert to typescript
* Fix types
* Add tests

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

* [Test] Update functional test

Groups are now naturally sorted by key, which requires selecting a different date filter

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

* [Chore] Add changelog entry

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

* [Chore] Refactor columns passing, fix bugs

* pass columns explicitly as props
* fix branding in core mocks
* fix `toBeUndefined()` usage in tests
* remove leftover comment
* fix test subject
* condense types

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

Signed-off-by: Josh Romero <rmerqg@amazon.com>
(cherry picked from commit b53d4d8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner November 3, 2022 02:52
@AMoo-Miki AMoo-Miki added the autocut Skip the changelog verification check on backports label Nov 3, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #2753 (effba84) into 2.4 (29cccb0) will increase coverage by 0.01%.
The diff coverage is 93.61%.

@@            Coverage Diff             @@
##              2.4    #2753      +/-   ##
==========================================
+ Coverage   66.74%   66.75%   +0.01%     
==========================================
  Files        3210     3210              
  Lines       61265    61269       +4     
  Branches     9359     9368       +9     
==========================================
+ Hits        40889    40902      +13     
+ Misses      18129    18122       -7     
+ Partials     2247     2245       -2     
Impacted Files Coverage Δ
src/core/public/mocks.ts 59.09% <ø> (ø)
.../application/components/sidebar/discover_field.tsx 84.37% <ø> (ø)
...ation/components/sidebar/discover_field_bucket.tsx 88.88% <ø> (+22.22%) ⬆️
.../application/components/sidebar/lib/get_details.ts 62.50% <50.00%> (+5.35%) ⬆️
...tion/components/sidebar/discover_field_details.tsx 80.00% <91.66%> (+14.78%) ⬆️
...ication/components/sidebar/lib/field_calculator.ts 96.87% <96.87%> (ø)
...pplication/components/sidebar/discover_sidebar.tsx 78.37% <100.00%> (ø)
...ic/application/models/sense_editor/sense_editor.ts 64.88% <0.00%> (+0.88%) ⬆️
.../components/sidebar/lib/visualize_trigger_utils.ts 52.94% <0.00%> (+11.76%) ⬆️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ananzh
Copy link
Member

ananzh commented Nov 3, 2022

This backport has merge conflicts but we are not allowed to force push on this PR. I opened another backport PR:
#2778

Close this one

@ananzh ananzh closed this Nov 3, 2022
@kavilla kavilla deleted the backport-2391-to-2.4 branch November 23, 2022 09:09
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants