Skip to content

Fix crash at loading app analytics tabs#369

Merged
joshuali925 merged 2 commits intoopensearch-project:mainfrom
joshuali925:fix-apps-crash
Apr 17, 2023
Merged

Fix crash at loading app analytics tabs#369
joshuali925 merged 2 commits intoopensearch-project:mainfrom
joshuali925:fix-apps-crash

Conversation

@joshuali925
Copy link
Copy Markdown
Member

@joshuali925 joshuali925 commented Apr 17, 2023

Description

For future refactoring: it would be better to use core chrome service to get current breadcrumbs, then append new ones to it, rather than passing down parentBreadcrumbs as props.

Passing parent down can be inconsistent (this case breadcrumb vs array) and redundant

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: Joshua Li <joshuali925@gmail.com>
Array [
undefined,
Object {
"href": "#/trace_analytics/home",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is trace_analytics in url works? I thought it was removed in earlier pr

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.

that is probably from test files

The unit test doesn't care what it should be in reality, as long as dummy arguments are all valid it serves its purpose

Copy link
Copy Markdown
Collaborator

@anirudha anirudha left a comment

Choose a reason for hiding this comment

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

thanks

Copy link
Copy Markdown
Contributor

@rupal-bq rupal-bq left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Joshua Li <joshuali925@gmail.com>
@joshuali925 joshuali925 merged commit 6f13761 into opensearch-project:main Apr 17, 2023
pjfitzgibbons pushed a commit that referenced this pull request Apr 17, 2023
Signed-off-by: Joshua Li <joshuali925@gmail.com>
pjfitzgibbons pushed a commit that referenced this pull request Apr 18, 2023
Signed-off-by: Joshua Li <joshuali925@gmail.com>

(cherry picked from commit 6f13761)
Signed-off-by: Peter Fitzgibbons <pjfitz@amazon.com>
joshuali925 added a commit to joshuali925/dashboards-observability that referenced this pull request Apr 18, 2023
Signed-off-by: Joshua Li <joshuali925@gmail.com>
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