Closed julienlim closed 6 years ago
Hi @julienlim, can you please elaborate on what the issue is? I see from #866 that you entered a '1' and then a '4912'; where you expecting a single result?
Just FYI, the logic to apply the filter to the results set is done in the application code, not patternfly itself, to that end, could you please supply a link to the code which runs the filter shown in #866 -thanks!
@dtaylor113, we have implemented the filter component according to the example provided here[1]. The filter is accepting multiple values for 'text' filters, which is giving unexpected results. The code file for #866 is [2].
[1] https://www.patternfly.org/angular-patternfly/#/api/patternfly.filters.component:pfFilter [2] https://github.com/Tendrl/ui/blob/master/src/modules/hosts/host-list/host-list.js#L108
Hi @a2batic, multiple 'text' filter values are AND'ed together, so in the example below Name needs to contain 'F' AND 'Fred':
In your example you entered a '1' and `49152' for the Brick Path, I can't tell from the screenshots if there are Brick Paths which contain a '1' AND also '49152'.
Hi @dtaylor113, yeah, so in the Brick Paths '1' is there but '49152' isnt there, so the AND of the two value resulted in false. For ex:-
Hi @a2batic, ok, so is there an issue?
We do have the pfFilterPanel if you want to OR values together. aka. Checkbox Filter
Hi @julienlim, so is there an issue with angular-patternfly's filter component?
@dtaylor113 The problem seems not to be with the angular-patternfly filter component. Thank you for your help!
Thankyou @dtaylor113, we did not look into checkbox filter !
Noting here that there's a bug with the filtering component in that it does not work consistently and provides unexpected results -- see https://github.com/Tendrl/ui/issues/866#event-1515448349 for additional details.