-
-
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
dev/core#3514 Add interface to allow extensions that deal with imports to cope with 5.51 #23893
Conversation
(Standard links)
|
e387b0d
to
7a8a38c
Compare
I haven't tested the csvimporter, but I did include this patch while doing some r-run aimed at #23888 ("Import Contacts", "Import Activities", "Import Custom Data"). They all appeared to work as before. 👍 I suspect there is some test-coverage (eg the unit-tests for importer probably have an implicit reliance on this). If it's working for @eileenmcnaughton on |
@totten - I'm not expecting it to work with |
Ah. In that case, I've done trial run with a dummy extension: https://gist.github.com/totten/377b3d84a8f948c554dba18a4b2ad850 With the dummy extension, I was able to alternately inspect the UserJob list and toggle the
That seemed to work. (Which is expected -- given that there's test-coverage for scanning interfaces generally, and given that these specific interfaces are working in core.) |
OK cool - but we need to wait two hours for the other test to pass now I think & then rebase this ? |
7a8a38c
to
3764aea
Compare
OK - the other finished tests so I merged it and rebased it out of this - which I think was all this was waiting on to get MOP based on the above |
Overview
I have to update
csvImporter
for 5.51 & there is also AdvImport & they need to be able to use the userJob table - this allows them to define interfaces(Depends: #23888)
Before
Core UserJob table has a hard-coded list of job-types
After
Extensions can declare UserJob interfaces
Technical Details
The required functions are
public static function getUserJobInfo(): array;
public static function runJob(\CRM_Queue_TaskContext $taskContext, int $userJobID, int $limit, int $offset): bool;
Comments
https://lab.civicrm.org/dev/core/-/issues/3514