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

Log Context: Add button to open the context query in a split view #66777

Merged
merged 15 commits into from
Apr 20, 2023

Conversation

svennergr
Copy link
Contributor

What is this feature?

Adds a feature to open Log Context queries in a split view.

@github-actions
Copy link
Contributor

Backend code coverage report for PR #66777
No changes

@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2023

Frontend code coverage report for PR #66777

Plugin Main PR Difference
explore 86.26% 86.2% -.06%
loki 84.66% 84.64% -.02%

@svennergr svennergr marked this pull request as ready for review April 19, 2023 09:52
@svennergr svennergr requested a review from a team as a code owner April 19, 2023 09:52
Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

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

Left 1 feedback. Let me know what do you think and otherwise LGTM! 🚀

public/app/features/explore/LogsContainer.tsx Outdated Show resolved Hide resolved
Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

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

Nice LGTM! yay for this feature!

@svennergr svennergr merged commit 1e53a87 into main Apr 20, 2023
16 checks passed
@svennergr svennergr deleted the svennergr/add-open-context-in-split-view branch April 20, 2023 12:21
mdvictor pushed a commit that referenced this pull request Apr 21, 2023
…6777)

* add show context button

* improve type definition

* change to default `maxLines`

* remove context query

* add provider to tests

* add test for split view button

* improve documentation

* add tests for `getLogRowContextQuery`

* refactor LogsContainer functions

* fix spelling

* add `contextQuery` as state

* fix tests

* fix lint

* do not use callIfDefined

* make button secondary
@zerok zerok modified the milestones: 10.0.0, 10.0.0-preview May 31, 2023
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.

None yet

4 participants