Ability to set variant machine name in Panels UI for Cloning and Importing variants.

Created on 24 April 2015, over 9 years ago
Updated 1 February 2023, almost 2 years ago

Problem/Motivation

Follow-up to #813754: Ability to set variant machine name in Panels UI

Ability to set variant machine name in Panels UI for Cloning and Importing variants.

Proposed resolution

Explicitly set a machine-name when importing and cloning variants.

Behaviour Variant Clone

  • When using an existing machine_name, you get a validation error before saving. Message is something like "The machine-readable name is already in use. It must be unique."

Behaviour Variant Import

  • When using an existing machine_name + option 'Overwrite=FALSE', you get a validation error before saving. Message is something like "The machine-readable name is already in use. It must be unique."
  • When using an existing machine_name + option 'Overwrite=TRUE', the existing variant will be deleted before saving the new variant. No errors.
  • When using an non-existing machine_name + option 'Overwrite=FALSE', the new variant will be saved.
  • When using an non-existing machine_name + option 'Overwrite=TRUE', the new variant will be saved.

Additional behaviour Variant Import regarding UUID's

  • Re-generate UUIDs if machine-name is different than import-code.
  • Keep UUIDs of import-code if machine-name is equal than import-code.

Remaining tasks

User interface changes

  • Machine-name field and overwrite checkbox added to panel-variant import-form.
  • Machine-name field added to panel-variant clone-form.

API changes

  • none
Feature request
Status

Needs work

Version

1.0

Component

Page Manager

Created by

🇨🇦Canada joelpittet Vancouver

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