-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Afform - Allow selecting search operator for filter fields #26066
Conversation
(Standard links)
|
919034f
to
8b5164c
Compare
Cool it seems to be working but the visual cues to the user aren't quite like I'd expect. I have one on the test site here you can see that I adjusted from one on a real site where this would be neat to have.
|
8b5164c
to
7b78580
Compare
@demeritcowboy TLDR; I've pushed up a fix to item
|
Ok, I don't want to hold it up over the words. Partly I'm thinking the next obvious step is to have the equivalent of drupal views exposed filters, where the end-users would see/select them. The wording would matter more there. |
@demeritcowboy this should be merged, right? |
Thanks @colemanw nice! I'll test it. |
thanks! |
@UshaMakoa are you ready for this to be merged or do you need to do more testing? |
@colemanw I've tested with the new options and I agree with @demeritcowboy that we should be able to edit the operator on the front because sometimes I need to filter the contacts having the 'volunteer' tag and sometimes I will need to filter those not having the 'volunteer' tag. It doesn't really help me to set it 'hard coded' on the backend of the form. |
Ok guys I think I need to clarify the process of PR review... The only way for CiviCRM to move forward is for PRs to get merged. When a PR is submitted it needs to be reviewed to answer the basic questions of:
Generally speaking, if the answers are "yes" and "no" respectively then it should be merged. If there's a desire for additional improvements (and honestly, when is that ever not the case?), then future PRs can be written, but desires for more features (which do not yet exist) shouldn't derail the current PR (which does exist). Or, as someone wiser than me once said "Don't let perfect be the enemy of good." So the question before us right now is "Should this PR be merged?" Additionally, I'll note that funding was provided specifically for this feature of back-end configurable filters. So far, no one has yet provided funding for front-end filters. |
Coleman, thanks again for your work and for explaining the merging process and the necessary method behind it. |
Now it has been merged, the next question is how many € to then make operators on the frontend real? I don't feel like standing now in the middle of river. |
Thanks all. |
that seems doable. I've pinged @UshaMakoa to check if he'll be interested in supporting your job with us. Tell you soon. |
ok for 50% for me |
@colemanw so it's GO to have operators on the frontend of filters in Formbuilder so the end user can easily filter within the results :-) |
Ok thanks @allinappliadmin and @UshaMakoa I'll let you know when I have that PR ready. |
@allinappliadmin @UshaMakoa here is the new PR for exposed operators! #26496 |
Overview
This permits filter operators to be set by the form admin.
Before
No control over filter operators (the implied operator was always inferred from the input type and data type, usually
CONTAINS
).After
Operators can be set on the backend of the form: