Skip to content

Allow passing dashboard filters as query parameters #1263

@Tarow

Description

@Tarow

Describe the feature request

The state of the input fields on the dashboard (search, refresh interval, sort, filter, ...) is currently stored in the browsers local storage. This ensures that changed filter settings will persist on page reload.

It should be possible to (also) pass the filter values through query parameters. That could either replace the current local-storage mechanism completely, or the values stored in the local storage could serve as default fallback values if no query parameter is supplied.

Why do you personally want this feature to be implemented?

Passing the filter values as query parameters allows for better link sharing and bookmarking of specific settings.
Say i have a lot of endpoints and i want a bookmark to the dashboard that shows all failed backups, i can imagine a URL like this:

https://gatus.example.com?q=backup&filter=failing

Or i want someone to check out the unstable services, sorted by group, i'd quickly share this link:

https://gatus.example.com?filter=unstable&sort=group

How long have you been using this project?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions