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

[BUG]Re direction fix for associated logs from traces #2219

Merged
merged 6 commits into from
Oct 19, 2024

Conversation

sumukhswamy
Copy link
Collaborator

@sumukhswamy sumukhswamy commented Oct 19, 2024

Description

Remote cluster title and time bug for redirection to Discover

Bug from PR #2201

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.

@sumukhswamy sumukhswamy added bug Something isn't working backport 2.x labels Oct 19, 2024
Copy link
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.

thanks

props.dataSourceMDSId[0].id ?? ''
}::ss4o_logs-*',timeFieldName:'time',title:'ss4o_logs-*',type:INDEXES),language:PPL,query:'source%20%3D%20ss4o_logs-%2A%20%7C%20where%20serviceName%20%3D%20%22${
props.serviceName
}%22'))`,
Copy link
Member

Choose a reason for hiding this comment

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

todo for the future, it would be better to use rison encode and url encode, instead of hard coding string concatenation

@@ -307,9 +308,9 @@ export function SpanDetailFlyout(props: {
props.startTime
},to:${props.endTime}))&_q=(filters:!(),query:(dataset:(dataSource:(id:'${
Copy link
Member

Choose a reason for hiding this comment

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

TODO the timestamps are currently undefined, need to pass them into props from parent

Signed-off-by: sumukhswamy <[email protected]>
Signed-off-by: sumukhswamy <[email protected]>
@sumukhswamy sumukhswamy merged commit 46ec7f2 into opensearch-project:main Oct 19, 2024
11 of 18 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 19, 2024
* updated paths for re-direction

Signed-off-by: sumukhswamy <[email protected]>

* updated paths for re-direction

Signed-off-by: sumukhswamy <[email protected]>

* updated the title without quotes

Signed-off-by: sumukhswamy <[email protected]>

* updated linter

Signed-off-by: sumukhswamy <[email protected]>

* updated snapshots

Signed-off-by: sumukhswamy <[email protected]>

---------

Signed-off-by: sumukhswamy <[email protected]>
(cherry picked from commit 46ec7f2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sumukhswamy pushed a commit that referenced this pull request Oct 19, 2024
* updated paths for re-direction



* updated paths for re-direction



* updated the title without quotes



* updated linter



* updated snapshots



---------


(cherry picked from commit 46ec7f2)

Signed-off-by: sumukhswamy <[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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants