-
-
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
Attempt (& fail) to use Subscriber interface instead of hook_config #31959
Attempt (& fail) to use Subscriber interface instead of hook_config #31959
Conversation
===== Overview ==== This adds a new extension for existing dedupe finder behaviour, allowing us to support the hook that is jammed in the middle of the dedupe finder code going forwards without being blocked by it (I have an existing PR that cuts many hours off the dedupe query but it is bending over backwards to work alongside the legacy attempts to allow integration). The new extension is enabled on install and on upgrade and there is no behaviour change unless a site admin disables it. If they choose to do so then 1) the legacy hook & legacy reserved query wrangling will no longer be called 2) dedupe queries will speed up once the blocked code is also merged civicrm#30591
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
@eileenmcnaughton tests are passing... what's the failure? |
8a3358d
to
c6d3b95
Compare
@colemanw this is not firing c6d3b95#diff-bd1e75c64b0c3378649766479b064916b8326055ccae2ba05043d4ff3056a1f0R8 & hence the event is not (it falls back to the non-deprecated core function so appears to work but careful use of a debugger...) |
IMO this is not a blocker to the other PR, but FYI other core extensions use AutoService. E.g.
|
Those developer docs on registering event subscribers are really out of date. I think:
|
@eileenmcnaughton that's good! All you need to do is add |
OK - Autosubscriber worked - although not sure what changed as it seems the |
Overview
see #31689
ref https://docs.civicrm.org/dev/en/latest/hooks/usage/symfony/
Before
What is the old user-interface or technical-contract (as appropriate)?
For optimal clarity, include a concrete example such as a screenshot, GIF (LICEcap, SilentCast), or code-snippet.
After
What changed? What is new old user-interface or technical-contract?
For optimal clarity, include a concrete example such as a screenshot, GIF (LICEcap, SilentCast), or code-snippet.
Technical Details
If the PR involves technical details/changes/considerations which would not be manifest to a casual developer skimming the above sections, please describe the details here.
Comments
Anything else you would like the reviewer to note