Provide option to not remove all usage records when recreating entity usage statistics

Created on 8 December 2022, about 2 years ago
Updated 15 March 2023, almost 2 years ago

Problem/Motivation

When changing certain entity usage configuration (such as tracking plugins and target/source entity types) you need to re-create all the entity usage statistics (through the Drush command or /admin/config/entity-usage/batch-update).

I'm working on a project that has a lot of content, with a lot of references. This results in a ton of entity usage records, which takes several hours at best to recreate. The recreation process removes all entity usage records and because of this, there's a time-frame where entity usage info displayed to our editors (or even used by some of our custom subsystems) is empty or incomplete.

Proposed resolution

When you, for example, enable an extra tracker plugin, there's no reason for deleting everything. Therefor I was wondering if the Drush command could provide an option to skip deleting all the entity usage records.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium rp7

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024