- 🇨🇭Switzerland berdir Switzerland
A second thing that would be very useful is being able to limit for which entity types you want to rebuild. Sometimes you enable a new source type on a site that has tends or hundreds of thousands of entities, but you're not interested in rebuilding that.
I found a workaround for that by manually calling \Drupal\entity_usage\EntityUsageQueueBatchManager::queueSourcesBatchWorker(), since the new entity types in my case just had very few entries I didn't even need to bother with batch, but you might need to do that. An option could just be passed in and if present, override the setting.
-
marcoscano →
committed cf6e9f56 on 8.x-2.x authored by
rp7 →
Issue #3325964 by rp7, Berdir, marcoscano: Provide option to not remove...
-
marcoscano →
committed cf6e9f56 on 8.x-2.x authored by
rp7 →
- Status changed to Fixed
almost 2 years ago 1:50pm 15 March 2023 - 🇪🇸Spain marcoscano Barcelona, Spain
Thanks all. Let's get this in for now, and work on allowing to skip certain entity types in a follow-up. Opened ✨ Allow to skip certain entity types when regenerating all statistics Active for that.
Automatically closed - issue fixed for 2 weeks with no activity.