-
Notifications
You must be signed in to change notification settings - Fork 26
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
Allow to search on _id in AdvancedFilter #951
Conversation
filterToAdd = { | ||
range: { | ||
[filter.attribute]: { | ||
gte: filter.value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the type of the field is not numeric?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't change the logic in that part, I just refactored it using a switch case
you can see here that the 3 else if
of equal
not_equal
and range
where using a ES range
filter so I let that filter.
If we need to change that, I would prefer doing it in another PR
# [4.3.0](https://github.com/kuzzleio/kuzzle-admin-console/releases/tag/4.3.0) (2021-11-02) #### Bug fixes - [ [#959](#959) ] Add dropdown-view to realtime document view ([berthieresteban](https://github.com/berthieresteban)) - [ [#968](#968) ] Redirect to Login page if token expired ([alexandrebouthinon](https://github.com/alexandrebouthinon)) - [ [#935](#935) ] Add loader to documnent list while fetching ([berthieresteban](https://github.com/berthieresteban)) - [ [#934](#934) ] Add loader and disable modal buttons ([berthieresteban](https://github.com/berthieresteban)) #### New features - [ [#951](#951) ] Allow to search on _id in AdvancedFilter ([berthieresteban](https://github.com/berthieresteban)) - [ [#949](#949) ] Display geo shapes on map view ([berthieresteban](https://github.com/berthieresteban)) - [ [#953](#953) ] Add feedback dropdown ([berthieresteban](https://github.com/berthieresteban)) #### Enhancements - [ [#970](#970) ] Store Current environment in session storage instead of local storage ([alexandrebouthinon](https://github.com/alexandrebouthinon)) - [ [#950](#950) ] Delete index dropdown ([berthieresteban](https://github.com/berthieresteban)) - [ [#960](#960) ] Enhance advanced filter ([berthieresteban](https://github.com/berthieresteban)) - [ [#952](#952) ] Allow to hide the No Admin Banner ([berthieresteban](https://github.com/berthieresteban)) - [ [#936](#936) ] Prefill raw filter with query and sort ([berthieresteban](https://github.com/berthieresteban)) - [ [#953](#953) ] Add feedback dropdown ([berthieresteban](https://github.com/berthieresteban)) - [ [#948](#948) ] Persist left Sidebar size in the local storage ([jsatge](https://github.com/jsatge)) #### Others - [ [#976](#976) ] Bump Kuzzle SDK version ([xbill82](https://github.com/xbill82)) - [ [#922](#922) ] Fix initial filter displayed value issue ([berthieresteban](https://github.com/berthieresteban)) ---
Fix #947
Allow to search on _id in AdvancedFilter
⚠️ doesn't work for a partial match since _id field can only be search following
term
,terms
,match
andquery_string