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

Logs: Issue queries in forward or backward direction depending on the selected sorting option #970

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

matyax
Copy link
Contributor

@matyax matyax commented Dec 19, 2024

Sibling of grafana/grafana#98203
Related with grafana/grafana#91904

This adds direction to our logs queries, so they are issued in the backward direction when the sorting is "newest first", or forward direction when looking for "oldest first".

Demo.mov

@matyax matyax requested a review from a team as a code owner December 19, 2024 17:04
@matyax matyax changed the title feat(LogsPanelScene): issue queries in forward or backward direction … LogsPanelScene: Issue queries in forward or backward direction depending on the selected sorting option Dec 19, 2024
@matyax matyax changed the title LogsPanelScene: Issue queries in forward or backward direction depending on the selected sorting option Logs: Issue queries in forward or backward direction depending on the selected sorting option Dec 19, 2024
@matyax matyax requested a review from gtk-grafana January 6, 2025 09:40
@matyax matyax force-pushed the matyax/logs-sort-order branch from d7e3cb0 to fcfc371 Compare January 6, 2025 11:16
@matyax
Copy link
Contributor Author

matyax commented Jan 6, 2025

It'd be cool to have this before the new release.

@gtk-grafana
Copy link
Contributor

@matyax looks like there's a bug with infinite scroll and oldest first:

query-direction-bug-720.mov

Copy link
Contributor

@gtk-grafana gtk-grafana left a comment

Choose a reason for hiding this comment

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

Code looks good, just the infinite scroll bug and this should be good to go!

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.

2 participants