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

dev/core#4112 Privatise prevNextCache functions #25392

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

eileenmcnaughton
Copy link
Contributor

The buildPrevNextCache function had handling for the extensionised legacy searches mixed in with the core searches - this gives each it's own function, with the custom logic in the one on the Custom Selectore & removed from the core one. In addition I determined that these functions were only called from within their own classes & made them private

Overview

Before

buildPrevNextCache called from 2 places in core & no others in universe - another similarly named function only called from within it's own class on Campaign
fillupPrevNextCache only called from within it's own class

image

After

buildPrevNextCache & fillupPrevNextCache copied to the extension, with fillupPrevNextCache renamed to just fill and fixed up so the core copy does the core stuff & the extension version does the extension stuff

  • all the functions made private

Technical Details

This gets us close the extension being fully out of core & to being able to stop enabling it - the main gaps now are export - which I already did some work on & was gonna revive that PR & smart groups

Comments

@civibot
Copy link

civibot bot commented Jan 19, 2023

(Standard links)

The buildPrevNextCache function had handling for the extensionised legacy
searches mixed in with the core searches - this gives each
it's own function, with the custom logic in the one on the Custom Selectore
& removed from the core one. In addition I determined that these functions
were only called from within their own classes & made them private
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Feb 6, 2023
I was working on fixing the ongoing log noise in the tested scenario - but
the first PR civicrm#25392 is still
pending so I decided just to put up the test with the sign posts
so at least that part is done for the next time someone tries
(I know that people have tried in the past)
@eileenmcnaughton eileenmcnaughton changed the title Privatise prevNextCache functions dev/core#4112 Privatise prevNextCache functions Feb 6, 2023
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Feb 6, 2023
I was working on fixing the ongoing log noise in the tested scenario - but
the first PR civicrm#25392 is still
pending so I decided just to put up the test with the sign posts
so at least that part is done for the next time someone tries
(I know that people have tried in the past)
@totten
Copy link
Member

totten commented Feb 21, 2023

Did some r-run to confirm that custom-searches still work (ie they still put data in the prev-next cache). Looked good.

@totten totten merged commit 20c3cc4 into civicrm:master Feb 21, 2023
@totten totten deleted the prev_next_divide branch February 21, 2023 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants