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 bugs in UI and refactor types and interfaces #15

Conversation

ansjcy
Copy link
Member

@ansjcy ansjcy commented Sep 10, 2024

Description

This PR fix the bugs in the stats render function caused by the grouping changes. More specifically:

  • Read measurement from the new data type, e.g.measurements.latency?.number.
  • Refactor the constants used in multiple places.
  • Refactor some column names.
  • Use strict types for the records.

Issues Resolved

Related to #11

Results

  • Enabled Top Queries by latency and CPU and inject document.
  • Make search requests
  • On the Overview page, the stats are displayed correctly
image
  • On the details oage, the stats are displayed correctly
image

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.

@ansjcy
Copy link
Member Author

ansjcy commented Sep 11, 2024

This has become a large PR with multiple purposes, I'm gonna move it to several smaller ones for better review experience.

@ansjcy ansjcy changed the title Fix bugs in UI and refactor code Fix bugs in UI and refactor types and interfaces Sep 11, 2024
@ansjcy ansjcy force-pushed the fix-measurements-render-after-grouping-changes branch 3 times, most recently from 6170a3d to f95ecd4 Compare September 11, 2024 21:31
@ansjcy ansjcy force-pushed the fix-measurements-render-after-grouping-changes branch from f95ecd4 to 094e631 Compare September 11, 2024 21:46
@deshsidd
Copy link
Collaborator

LGTM

@ansjcy ansjcy merged commit dcda4b8 into opensearch-project:main Sep 11, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants