[MGNLPN-51] It's not possible to remove a trait from neither mgnl:constraintSet nor segment Created: 25/Mar/14  Updated: 02/Apr/14  Resolved: 28/Mar/14

Status: Closed
Project: Magnolia Personalization
Component/s: Integration, Segmentation App
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Neutral
Reporter: Philip Mundt Assignee: Jaroslav Simak
Resolution: Fixed 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
Date of First Response:
Epic Link: Personalisation
Sprint: 5.3 Sprint 4, 5.3 Sprint 5

 Description   

It's not possible to remove a trait from neither mgnl:constraintSet nor segment.

To reproduce:

  • Add country trait to page variant
  • Save variant
  • Try to remove trait by setting value to "empty"
  • Re-open variant: Trait is still available

Same behavior in Segmentation App.



 Comments   
Comment by Jaroslav Simak [ 28/Mar/14 ]

https://git.magnolia-cms.com/gitweb/?p=enterprise/p13n.git;a=commitdiff;h=77c2e4dfd6e0e81eaa67dd196f46f68ca0e81732;hp=24e2a68f696323ff09143edb9c2c5c3b9e1a65b3

Comment by Roman Kovařík [ 28/Mar/14 ]

We should merge constants:

  • info.magnolia.p13n.date.system.DateTraitField.EMPTY_OPTION_VALUE
  • info.magnolia.p13n.geoip.Country.EMPTY_VALUE
    and used them instead of plain "empty" String everywhere.
Generated at Mon Feb 12 06:33:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.