Skip to content

Improve _Project Roles_ user search #2053

Description

@alxndrsn

Rewrite of #723

On the Project Roles page (e.g. https://dev.getodk.cloud/projects/1/users), user search isn't very helpful:

Current searching for "a" gives one obscure hit:

Image

But checking https://dev.getodk.cloud/users, there are two users whose names and emails both start with a, which are not even matched.

It might be helpful to add ILIKE or fuzzy search to the search functionality at:

https://github.com/getodk/central-backend/blob/ba45b5ff99a076e0a02dc53c793e62d24fa3610a/lib/model/query/users.js#L69-L75

See tests at:

https://github.com/getodk/central-backend/blob/ba45b5ff99a076e0a02dc53c793e62d24fa3610a/test/integration/api/users.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    📥 inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions