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

Mutliple activity type filters on activity tab on contact records #13873

Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 21, 2019

Overview

Change include/exclude activity type filters to be multiple select 2 widgets rather than only permitting one select - old style.

Before

Screenshot 2019-03-21 14 29 52

After

Screenshot 2019-03-21 14 59 34

Technical Details

This has a pre-requisite of #13855 - if reviewed separately I will rebase this.

I removed one call to validate because it was taking an already validated function - the next layer of functions were already 'array-ready' I just had to make the array get through validation & be stored correctly for sites with sticky activity filters saved (setting is under display preferences -
Screenshot 2019-03-21 15 02 25 ) & from my testing we don't need any upgrade handling. They might lose saved date filters but I think that's unlikely to be a concern since it sticks as soon as users re-filter.

Comments

@civibot civibot bot added the master label Mar 21, 2019
@civibot
Copy link

civibot bot commented Mar 21, 2019

(Standard links)

@eileenmcnaughton eileenmcnaughton force-pushed the mutliple_activity_types branch from 83943de to 29f2d68 Compare March 21, 2019 01:55
@eileenmcnaughton eileenmcnaughton changed the title Mutliple activity types Mutliple activity type filters on activity tab on contact records Mar 21, 2019
@eileenmcnaughton
Copy link
Contributor Author

test this please

@prondubuisi
Copy link
Contributor

Seen @eileenmcnaughton I will check it out, thanks.

@MegaphoneJon
Copy link
Contributor

Tagging @bjendres and @eileenmcnaughton because it seems like there's some convergence between what's happening in core and the https://github.com/bjendres/de.systopia.fastactivity extension. Also @artfulrobot while I'm at it to draw attention to overlap between fastactivity's features and https://github.com/artfulrobot/activitytabs/.

@eileenmcnaughton
Copy link
Contributor Author

eileenmcnaughton commented Mar 21, 2019

@MegaphoneJon right - this builds off the fact we FINALLY replaced the slow code in core with code that uses the api (I had to do some work on the api first).

As an aside another alternative to core is 'extended reportlets' - ie. any report you configure can be it's own tab on a contact

It does seem like the fastactivity extension offers some features we make sense to be in an activity - I would expect afform to eventually give that level of flexibility without an extension

@eileenmcnaughton eileenmcnaughton force-pushed the mutliple_activity_types branch from 29f2d68 to 19cdeaf Compare March 21, 2019 23:30
@artfulrobot
Copy link
Contributor

Yeah, it would be interesting to do a comparison of extended reports / activitytabs / fastactivities. If I get some time (ha!) I might have a look at that.

@eileenmcnaughton eileenmcnaughton force-pushed the mutliple_activity_types branch 2 times, most recently from 559b0a8 to 81b53a8 Compare March 22, 2019 10:31
@colemanw
Copy link
Member

@civicrm-builder test this please

@colemanw
Copy link
Member

@eileenmcnaughton time for rebase

@eileenmcnaughton eileenmcnaughton force-pushed the mutliple_activity_types branch from 81b53a8 to c1d3e30 Compare March 28, 2019 19:06
@eileenmcnaughton
Copy link
Contributor Author

@colemanw done

@colemanw
Copy link
Member

Tested, works perfectly.

@eileenmcnaughton eileenmcnaughton merged commit b55599c into civicrm:master Mar 28, 2019
@eileenmcnaughton eileenmcnaughton deleted the mutliple_activity_types branch March 28, 2019 20:24
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.

5 participants