[MGNLUI-6108] DuplicateNodeActionDefinition creates inconsistent node names Created: 03/Aug/20  Updated: 10/Mar/21  Resolved: 10/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: framework
Affects Version/s: 6.2.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: compatibility-module
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLUI-6109 DuplicateNodeAction creates confusing... Closed
supersession
is superseded by MGNLUI-6109 DuplicateNodeAction creates confusing... Closed
is superseded by MGNLDAM-817 Asset names created from duplication ... Closed
is superseded by MGNLUI-6163 CLONE - Custom name property sync in ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: UI framework: migration and backwards compatibility
Story Points: 2

 Description   

When duplicating nodes using the old action it creates an inconsistent state with the name of the node and the property "name".

class: info.magnolia.ui.framework.action.DuplicateNodeActionDefinition

Recreate

  1. Open the Tours app
  2. Duplicate a tour, observe the name.
  3. Edit the tour, change nothing, save.
  4. Observe the node changed names.

This will keep happening if you click "Edit tour" and "Save changes" over and over. The node will switch names back-and-forth.

Expected
The name of the node should stay consistent after the duplication. The user should be able to edit the tour's details without having to adjust the name.

Workaround
Edit the name of the tour in the detail subapp. This will persist the new name to the property which stores name. The node name will then be consistent with the property.


Generated at Mon Feb 12 09:33:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.