- Issue created by @achap
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
about 1 year ago Waiting for branch to pass - Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
about 1 year ago Waiting for branch to pass - 🇪🇸Spain marcoscano Barcelona, Spain
Can't you use
hook_entity_usage_block_tracking()
for this? - achap 🇦🇺
Based on my understanding that hook is called after all the batches have been queued for processing, so it's too late for my use case. I want to prevent them from being included in the queue in the first place as in my case removing them gets rid of about 20,000 nodes that need to be processed.
Although dispatching the event in
EntityUpdateManager
is probably not necessary as in that case the event would already have been fired if we are coming from a batch process, or we are just saving an individual node. So in the latter case I could just use the hook. - Status changed to Needs review
about 1 year ago 1:47am 14 December 2023 - achap 🇦🇺
Also, I'm not entirely sure if the test fails are due to my new code because the tests were already failing on the upstream branch