-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Convert CiviCampaign Dashboard to SearchKit #27271
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
c08af9b
to
590cfc1
Compare
05c031c
to
16b3e5b
Compare
4e29698
to
2011fc9
Compare
Great to see some legacy code being deleted! Overall, very nice but just a few minor bits:
The 'Hide Pager if One Page' option is enabled for all of these search tables but is not working - but that is also not working on master. |
Re the Hide pager thing, I think we decided we needed to show the Page Size option when the pager was hidden, but I think we should hide it. I think that's what you mean, @aydun. Can't see why someone would need to adjust the page size when everything is on one page already (I've many times made the page size larger, but never smaller). I wonder if we could lose the ID column for campaigns? I don't really see what purpose it serves to show that to the user (anyone technical enough to need the id for some reason can get it without it being shown explicitly). I think we should never show the ID as a general rule. |
Hide pager: I don't see any benefit to showing the page size option if results are on one page anyway. I thought that should already be hidden by the setting, but if not then let's change it. For these results, since the number of results is shown in the tab title we don't need it in the footer as well, but that's very minor. ID's: that's a broader question so let's discuss that it chat. |
2011fc9
to
bf18ebc
Compare
No longer needed as Campaign dashboard now uses SearchKit
bf18ebc
to
76acb9d
Compare
I've rebased this with the improvement from #27553 so that the tab titles would be translated.
|
Test this please |
Let's get this merged. It works as is and we can always tweak it later. |
Wohoo! |
This removes public Core code on BAO classes that has not even been deprecated … just saying 😞 |
@jensschuppe which BAO function were you using? Edit: oh I see. Following the link to systopia/de.systopia.campaign#114 the Campaign Manager extension was using the count methods. |
Those three:
|
Hmm... well I guess there are 2 ways to look at it:
@jensschuppe if you would like to do a PR against 5.67 that reverts the removal of the functions and adds noisy deprecation, I'd be happy to merge it. |
I think you are right, but that's just the ideal. Maybe let's continue this discussion over at https://chat.civicrm.org/civicrm/pl/31s333m6y7be8pakafb89aqary. Re: removed Campaign methods: I think we'll rather adjust the extension, as that's the same effort as reverting in this case. Thanks a lot for the offer to revert, though. |
Overview
Replaces the 3-tab CiviCampaign dashboard with an Afform containing 3 tabs of SearchKit displays.
Before
Smarty+datatable.js-based dashboard tabs have lots of fun technical debt we could work on...
After
Or we could just replace the whole thing with an Afform and shed 2000+ lines of ancient code.
Comments
This depends on making Afform a required extension.