Offer a way to opt out of full dependency calculation during CDF serialization

Created on 30 March 2021, almost 4 years ago
Updated 26 February 2023, almost 2 years ago

Problem/Motivation

The Acquia Lift module renders content and sends it over to the Content Hub via the acquia_contenthub_publisher module, however the Personalization service does not make any use of the entity dependencies: only the main entity CDF and its rendered CDF entities are used. Some user may want Personalization without syndicating all their content for ease and performance reasons.

Even when the "Push personalizing content only" is enabled, the export still happens via the native CH Drupal queue, we just don't wait for the queue to be run by cron/drush later, we run it right away. Because the entity being exported is placed into the queue in the form of (entity_type, UUID), by the time we kick off the queue processing in the subsequent request, we're losing the context of our acquia_lift_publisher scenario, and the processing is handled by the CH module with full dependency calculation, which is unnecessary for some users who have complex data structures.

Proposed resolution

To solve this problem I'd like to include some context in the queue item with a new optional parameter called "calculate_dependencies", and the dependency calculation is made conditional on that parameter defaulting to TRUE the way it works today OOTB.

Remaining tasks

Review patch.

User interface changes

none

API changes

New optional parameter called "calculate_dependencies" in queue data items.

Data model changes

New optional parameter called "calculate_dependencies" in queue data items.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇦Canada scor Toronto

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