Store node reference via UUID rather than ID to aid multi-environment deployments

Created on 12 January 2024, 10 months ago

Problem/Motivation

I want to script the installation of this module, and automatically deploy it to multiple environments (local, uat, production). We synchronise site configuration via a config sync directory. I have a post update hook that creates the node to host the cookie declaration. It's difficult to reference the node from cookiebot's cookiebot_show_declaration_node config because it is assigned a different Node ID on different environments.

Proposed resolution

Instead of storing a Node ID, store the UUID of the node. That way, I can script the creation of the node, giving a fixed, known ID, and synchronise cookiebot,settings around all environments.

Linking #3285787 since that was the change that introduced the Node IDs.

Patch to follow.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom jamsilver West Midlands, UK

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024