Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Pallet Module — cannot search on integer fields #137

Open
PieturP opened this issue Jan 28, 2025 · 1 comment
Open

Command Pallet Module — cannot search on integer fields #137

PieturP opened this issue Jan 28, 2025 · 1 comment

Comments

@PieturP
Copy link

PieturP commented Jan 28, 2025

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)

Copy link

linear bot commented Jan 28, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant