Skip to content

Command Pallet Module — cannot search on integer fields #137

Open
@PieturP

Description

Extension

Something else

Describe the Bug

When configuring the module to search on integer type fields, the generated URL's contain invalid queries:
Invalid query. "integer" field type does not contain the "_icontains" filter operator.

In case the string comparison is out of reach for integer fields (because of the DB adapter), I'd say it should use the _eq filter, but I'm not a knex expert.

To Reproduce

See screenshot below for an example setup. This setup works as expected but toggling 'ID' as a field to enable search on results in the above message. Both when searching using the cmd+K command pallet, as well as when using the search icon.

Image

Directus Version

v11.4.0

Hosting Strategy

Self-Hosted (Docker Image)

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions