Skip to content

dashboard: Add search pre-fill via url #4

@stevenhorsman

Description

@stevenhorsman
Member

It would be useful, particularly when sending evidence that a test is eligible to becoming required if we could provide an optional url query parameter that would pre-fill the search box. e.g. if I want to give evidence that the run-runk tests are stable/have problems, I could link something like https://kata-containers.github.io/?search=run-runk

and it would pre-fill in the search with that string, and maybe even auto expand the results view? e.g.

image

Activity

changed the title [-]Add search pre-fill via url[/-] [+]dashboard: Add search pre-fill via url[/+] on Oct 3, 2024
afinn12

afinn12 commented on Oct 9, 2024

@afinn12
Contributor

URL search working-- example shows URL searching for "qemu" and table search looking for "coco."
(PR #15 in our repo)

Image

stevenhorsman

stevenhorsman commented on Oct 9, 2024

@stevenhorsman
MemberAuthor

Thanks - the demo looks great, so I look forward to seeing this get merged :)

sprt

sprt commented on Oct 9, 2024

@sprt
Contributor

@afinn12 Can we make it so that typing in the search bar updates the URL directly? Or provide some button to click to go to that search page? I want to avoid users having to manipulate the URL directly.

afinn12

afinn12 commented on Oct 18, 2024

@afinn12
Contributor

When filters are applied using the menu, the URL is immediately updated and the page is reloaded.

If "Keep URL Search Terms" is selected, the search rules from the URL will be kept in future searches.

For instance, given this search:
Image

If we add another rule:
Image

It then loads:
Image

Note that the operator changed appropriately (matches any vs. all, denoted as "and"/"or") as well.
Populating the filter menu with the rules from the URL didn't appear possible.
PR #20 in our repo

afinn12

afinn12 commented on Nov 1, 2024

@afinn12
Contributor

PR #22

image

image

afinn12

afinn12 commented on Nov 6, 2024

@afinn12
Contributor

PR #22

sprt

sprt commented on Nov 6, 2024

@sprt
Contributor

Ready to review

added a commit that references this issue on Nov 7, 2024
8bea19a
added 3 commits that reference this issue on Nov 19, 2024
dd59d64
fe876d0
bcb9abc
added 3 commits that reference this issue on Dec 3, 2024
0d7a6c6
cee8258
8e9b709
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    P0

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sprt@stevenhorsman@afinn12

        Issue actions

          dashboard: Add search pre-fill via url · Issue #4 · kata-containers/kata-containers.github.io