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

Traces table fix for invalid date #2399

Merged
merged 3 commits into from
Apr 3, 2025

Conversation

TackAdam
Copy link
Collaborator

@TackAdam TackAdam commented Apr 2, 2025

Description

Currently the query for traces was dependent on a trace group being present to display the date. This change adds a fallback so that if the trace does not have a group we still display the date it was last updated.

This also removes the default 0 value that was displayed for duration in these cases that was misleading and instead shows "-" indicating the trace group is absent.

These changes don't impact the displayed metrics or calculations, it just improves the user's experience and provides additional clarity.

Before:
Before

After:
After

Issues Resolved

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.

@TackAdam TackAdam added the bug Something isn't working label Apr 2, 2025
@TackAdam TackAdam marked this pull request as ready for review April 3, 2025 18:44
@@ -366,6 +365,6 @@ describe('Testing traces Custom source', () => {

cy.get('a.euiLink.euiLink--primary').first().click();
cy.get('[data-test-subj="globalLoadingIndicator"]').should('not.exist');
cy.get('.overview-content').should('contain.text', 'be0a3dceda2ecf601fd2e476fef3ee07');
cy.get('.overview-content').should('contain.text', 'd5bc99166e521eec173bcb7f9b0d3c43');
Copy link
Member

Choose a reason for hiding this comment

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

how did this get changed?

Copy link
Collaborator Author

@TackAdam TackAdam Apr 3, 2025

Choose a reason for hiding this comment

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

The date was previously invalid. With the actual date displayed, the default sorting added in changes the order and this test was clicking the first link which is now d5bc99166e521eec173bcb7f9b0d3c43.

@ps48 ps48 changed the title Traces - Invalid date Traces table fix for invalid date Apr 3, 2025
@TackAdam TackAdam merged commit 44de4f9 into opensearch-project:main Apr 3, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants