[MGNLPN-160] Deletion of last variant Created: 11/Jun/14  Updated: 11/Mar/21  Resolved: 11/Mar/21

Status: Closed
Project: Magnolia Personalization
Component/s: Integration
Affects Version/s: 1.0
Fix Version/s: 1.1.x

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   
  1. Deletion of last variant doesn't update activation status of 'variants' node.
  2. We should check number of undeleted variants instead of all of them to check if the variants node should be also deleted:
  • info.magnolia.personalization.variant.DeleteVariantCommand.preDeleteNode(Node, Context)
  • info.magnolia.personalization.variant.BaseVariantManager.deleteVariant(Node)


 Comments   
Comment by Roman Kovařík [ 11/Mar/21 ]

Variants node is deleted with the last variant.

Generated at Mon Feb 12 06:34:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.