Skip to content

feat: for data grid no need to filter stats by#1382

Merged
joshuali925 merged 2 commits intoopensearch-project:mainfrom
SuZhou-Joe:feature/remove-filter
Jan 25, 2024
Merged

feat: for data grid no need to filter stats by#1382
joshuali925 merged 2 commits intoopensearch-project:mainfrom
SuZhou-Joe:feature/remove-filter

Conversation

@SuZhou-Joe
Copy link
Copy Markdown
Member

@SuZhou-Joe SuZhou-Joe commented Jan 24, 2024

Description

Before we filter ppls to make sure it includes stats by as ppl visualization requires two dimensions to render. However in data grid, one dimension is enough so the filter function is useless.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f2962ef) 53.87% compared to head (2631173) 53.87%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1382   +/-   ##
=======================================
  Coverage   53.87%   53.87%           
=======================================
  Files         316      316           
  Lines       11309    11309           
  Branches     2957     2957           
=======================================
  Hits         6093     6093           
  Misses       5168     5168           
  Partials       48       48           
Flag Coverage Δ
dashboards-observability 53.87% <ø> (ø)

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.

Copy link
Copy Markdown
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

lgtm, minor comment

Comment on lines 34 to 37
const statsPPLs = ppls;
if (!statsPPLs.length) {
return [];
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

since we don't need ppl based charts, maybe just remove these

Suggested change
const statsPPLs = ppls;
if (!statsPPLs.length) {
return [];
}

and change statsPPLs here to ppls?

return statsPPLs.map((query) => {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, done for that.

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@SuZhou-Joe
Copy link
Copy Markdown
Member Author

Merge and backport to 2.x will be much appreciated. @joshuali925

@joshuali925 joshuali925 merged commit 5144529 into opensearch-project:main Jan 25, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 25, 2024
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
(cherry picked from commit 5144529)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshuali925 pushed a commit that referenced this pull request Jan 25, 2024
(cherry picked from commit 5144529)

Signed-off-by: SuZhou-Joe <suzhou@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>
sejli pushed a commit to sejli/dashboards-observability that referenced this pull request Jan 26, 2024
paulstn pushed a commit to paulstn/dashboards-observability that referenced this pull request Feb 1, 2024
RyanL1997 added a commit to RyanL1997/dashboards-observability that referenced this pull request Apr 18, 2024
Signed-off-by: Ryan Liang <jiallian@amazon.com>
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…) (opensearch-project#1385)

(cherry picked from commit 5144529)

Signed-off-by: SuZhou-Joe <suzhou@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>
(cherry picked from commit e28cb38)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants