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

Search extension: edit smart groups #18431

Merged
merged 4 commits into from
Sep 14, 2020
Merged

Conversation

colemanw
Copy link
Member

Overview

Allows the search extension to edit smart groups.
Tweaks the "Edit smart group criteria" links to point to either classic search forms or the new search extension, as appropriate.

Before

Could create smart groups from search extension but not easily edit them.

After

Edit button links from group to search extension, which displays the name of the group being edited and a button to update the criteria.

@civibot
Copy link

civibot bot commented Sep 11, 2020

(Standard links)

@civibot civibot bot added the master label Sep 11, 2020
@eileenmcnaughton
Copy link
Contributor

@colemanw - I tried this backported to 5.30 & also on master & I'm seeing this

Screen Shot 2020-09-12 at 6 58 52 AM

@eileenmcnaughton
Copy link
Contributor

Very UI - OK without test

@colemanw
Copy link
Member Author

@eileenmcnaughton was there a console error? Backport might be missing some other needed thing in master.

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Sep 11, 2020

@colemanw that screen shot was from master not my backport attempt - I have cividiscount installed on master & an extension with custom v4 apis on my wmf - not sure if that relates - it's after I add a field

Screen Shot 2020-09-12 at 8 24 16 AM

@eileenmcnaughton
Copy link
Contributor

I don't know if it relates but if I search on discounts I see fields that are not related to discounts

Screen Shot 2020-09-12 at 8 26 21 AM

@eileenmcnaughton
Copy link
Contributor

@colemanw I double checked by going to the test install - if I go to

http://core-18431-82ayt.test-1.civicrm.org:8001/civicrm/search#/create/Contact/

& switch to entity = Country & add a field it falls over

@colemanw
Copy link
Member Author

@eileenmcnaughton thanks for testing. It should be fixed now.

@eileenmcnaughton
Copy link
Contributor

I just tried to test on the demo site but it's not loading - I think the issue is unrelated

Screen Shot 2020-09-15 at 9 25 48 AM

@eileenmcnaughton
Copy link
Contributor

I gave this an r-run locally - the issues above seems to affect all demo sites from today but is not present locally.

I created a group
Screen Shot 2020-09-15 at 9 42 58 AM

I was then able to reload it through
Screen Shot 2020-09-15 at 9 43 37 AM

I think this is mergeable as it achieves what it is trying to achieve - but @colemanw I think there is an additional requirement in general to save searches & reload them when smartgroups cannot be created - should we open a GL to track that?

@seamuslee001 seamuslee001 merged commit 42f9567 into civicrm:master Sep 14, 2020
@seamuslee001 seamuslee001 deleted the searchUpdate branch September 14, 2020 22:49
@colemanw
Copy link
Member Author

@eileenmcnaughton yes I'd like to discuss other uses for SavedSearches with you.

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

Successfully merging this pull request may close these issues.

3 participants