Skip to content

feat: add configurable filter operator for autocomplete search#21770

Open
IrakliJani wants to merge 1 commit into04-06-feat_add_cross-filtering_support_for_explore_autocomplete_filtersfrom
04-06-feat_add_configurable_filter_operator_for_autocomplete_search
Open

feat: add configurable filter operator for autocomplete search#21770
IrakliJani wants to merge 1 commit into04-06-feat_add_cross-filtering_support_for_explore_autocomplete_filtersfrom
04-06-feat_add_configurable_filter_operator_for_autocomplete_search

Conversation

@IrakliJani
Copy link
Copy Markdown
Contributor

Description:

This PR adds support for configurable filter operators in autocomplete search functionality. Previously, autocomplete searches always used the INCLUDE operator, but now users can specify STARTS_WITH or ENDS_WITH operators for more precise filtering.

Key changes:

  • Added filterOperator parameter to the FilterStringAutoComplete component and related hooks
  • Implemented getAutocompleteSearchOperator method in ProjectService to handle operator selection logic
  • Updated the field values API endpoint to accept and process the filterOperator parameter
  • Modified the useFieldValues and useFieldValuesSafely hooks to support the new operator parameter
  • Updated all test cases to include the required filterOperator prop

The autocomplete search now respects the filter operator selected by the user, providing more accurate and relevant suggestions based on whether they want to match values that include, start with, or end with their search term.

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

🧪 Test Selection

✅ Tests that will run

Test Description
Preview Environment Deploys a preview environment for testing
Frontend E2E Tests Runs Cypress app tests
Backend API Tests Runs Vitest API tests

⏭️ Tests skipped (no relevant file changes detected)

Test How to trigger manually
Timezone Tests Add test-timezone to PR description
CLI Tests Add test-cli to PR description

Tip: Add test-all to your PR description to run all tests.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

Your preview environment pr-21770 has been deployed.

Preview environment endpoints are available at:

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

Preview Environment

🌐 URL: https://lightdash-preview-pr-21770.lightdash.okteto.dev

📋 Logs: View in GCP Console

🔧 SSH: ./scripts/okteto-ssh.sh 21770

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

Successfully merging this pull request may close these issues.

2 participants