Skip to content

[BUG FIX] Enable Correct Sorting for Metrics in Query Insights Dashboard #173

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

Merged

Conversation

KishoreKicha14
Copy link
Contributor

Description

This PR fixes a bug in the Query Insights Dashboard where the following metric columns were not sorting correctly due to improper sortable configuration for Latency, CPU time, Memory Usage and Query Count.

Also improved the test coverage to ensure these functionalities work properly.

  • Before
Screenshot 2025-04-24 at 12 08 16 AM
  • After
Screenshot 2025-04-24 at 1 24 43 AM

Issues Resolved

Closes: [#170]

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: Kishore Kumaar Natarajan <[email protected]>
Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
Copy link
Member

@ansjcy ansjcy left a comment

Choose a reason for hiding this comment

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

LGTM.

@ansjcy ansjcy merged commit 3843f4f into opensearch-project:main Apr 24, 2025
10 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 24, 2025
…ard (#173)

* Bug fix Sort and added cypress for them

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>

* Updated Snapshots

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>

---------

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
Co-authored-by: Kishore Kumaar Natarajan <[email protected]>
(cherry picked from commit 3843f4f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/query-insights-dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/query-insights-dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-173-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 3843f4fd512c9d83962cf70e9b775b861f87dfd2
# Push it to GitHub
git push --set-upstream origin backport/backport-173-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/query-insights-dashboards/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-173-to-2.x.

ansjcy pushed a commit that referenced this pull request Apr 24, 2025
…ard (#173) (#174)

* Bug fix Sort and added cypress for them



* Updated Snapshots



---------



(cherry picked from commit 3843f4f)

Signed-off-by: Kishore Kumaar Natarajan <[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>
Co-authored-by: Kishore Kumaar Natarajan <[email protected]>
KishoreKicha14 added a commit to KishoreKicha14/query-insights-dashboards that referenced this pull request May 1, 2025
…ard (opensearch-project#173)

* Bug fix Sort and added cypress for them

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>

* Updated Snapshots

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>

---------

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
Co-authored-by: Kishore Kumaar Natarajan <[email protected]>
dzane17 pushed a commit to dzane17/query-insights-dashboards that referenced this pull request May 27, 2025
…ard (opensearch-project#173)

* Bug fix Sort and added cypress for them

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>

* Updated Snapshots

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>

---------

Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
Co-authored-by: Kishore Kumaar Natarajan <[email protected]>
dzane17 pushed a commit to dzane17/query-insights-dashboards that referenced this pull request May 27, 2025
dzane17 added a commit that referenced this pull request May 28, 2025
…Insights Dashboard + dependent PRs (#200)

* Feat: dynamically display columns (#103)

Signed-off-by: David Zane <[email protected]>

* [Improvement] Improved Cypress test that validates the dynamic column (#168)

Signed-off-by: David Zane <[email protected]>

* [BUG FIX] Enable Correct Sorting for Metrics in Query Insights Dashboard (#173)

Signed-off-by: David Zane <[email protected]>

---------

Signed-off-by: David Zane <[email protected]>
Co-authored-by: Kishore Kumaar Natarajan <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 28, 2025
…Insights Dashboard + dependent PRs (#200)

* Feat: dynamically display columns (#103)

Signed-off-by: David Zane <[email protected]>

* [Improvement] Improved Cypress test that validates the dynamic column (#168)

Signed-off-by: David Zane <[email protected]>

* [BUG FIX] Enable Correct Sorting for Metrics in Query Insights Dashboard (#173)

Signed-off-by: David Zane <[email protected]>

---------

Signed-off-by: David Zane <[email protected]>
Co-authored-by: Kishore Kumaar Natarajan <[email protected]>
(cherry picked from commit 7a21131)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dzane17 pushed a commit that referenced this pull request May 28, 2025
…Insights Dashboard + dependent PRs (#200) (#201)

* Feat: dynamically display columns (#103)
* [Improvement] Improved Cypress test that validates the dynamic column (#168)
* [BUG FIX] Enable Correct Sorting for Metrics in Query Insights Dashboard (#173)

(cherry picked from commit 7a21131)

Signed-off-by: David Zane <[email protected]>
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.

2 participants