Skip to content

Conversation

@Loori-R
Copy link
Contributor

@Loori-R Loori-R commented Nov 21, 2025

Describe Your Changes

Sync vmui time picker with _time filters in LogsQL queries using backend-inferred time range.

Changes

  1. Added hasTimeFilter to /select/logsql/query_time_range to indicate presence of _time filter in query.

  2. vmui calls /select/logsql/query_time_range before /select/logsql/hits and /select/logsql/query; if hasTimeFilter=true, vmui sets time picker to returned start/end and runs hits/query with the updated range.

  3. vmui shows a warning when the time picker was auto-updated by the query.

    image image
  4. Added a setting to disable this behavior; when disabled, /query_time_range is not called and the time picker isn’t modified by _time filters.

    image

Related issue: #558

Checklist

The following checks are mandatory:

@Loori-R Loori-R added the web-ui Issues related to the user interface: layout, styling, usability, or UI-specific bugs. label Nov 21, 2025
@Loori-R Loori-R linked an issue Nov 21, 2025 that may be closed by this pull request
Copy link
Contributor

@arturminchukov arturminchukov left a comment

Choose a reason for hiding this comment

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

Overall looks good! Just one comment

@Loori-R Loori-R force-pushed the vmui/issue-558/sync-time-filter branch 2 times, most recently from c72cddf to 69e3ae8 Compare November 24, 2025 10:58
@Loori-R Loori-R force-pushed the vmui/issue-558/sync-time-filter branch from 69e3ae8 to 8634a28 Compare November 24, 2025 11:41
@valyala valyala merged commit 433c0c8 into master Nov 26, 2025
8 checks passed
@valyala valyala deleted the vmui/issue-558/sync-time-filter branch November 26, 2025 14:46
@valyala
Copy link
Contributor

valyala commented Nov 26, 2025

@Loori-R , thank you for the pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web-ui Issues related to the user interface: layout, styling, usability, or UI-specific bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vmui: _time should override the default time range in vmui

3 participants