[MGNLPN-22] Create validator for the date trait field Created: 13/Mar/14  Updated: 14/Mar/14  Resolved: 13/Mar/14

Status: Closed
Project: Magnolia Personalization
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Task Priority: Neutral
Reporter: Jaroslav Simak Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLPN-20 Create date trait so authors can crea... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: Personalisation
Sprint: 5.3 Sprint 3, 5.3 Sprint 4

 Description   

Provide a validation mechanism for the date trait field that will operate as follows:

  • if none of the sub fields are filled, then the date trait field is valid
  • if all sub fields are filled and valid, then the date trait field is valid
  • if all sub fields are filled but any of the sub fields is not valid, then the date trait field is not valid


 Comments   
Comment by Philip Mundt [ 13/Mar/14 ]

Small issues:

  • Dependencies have to be updated:
    • info.magnolia.ui:magnolia-ui-form has to added to info.magnolia.p13n:magnolia-p13n-samples (and dependencyManagement section of info.magnolia.p13n:magnolia-p13n-parent)
  • Either
    • decrease coverage (81%)
    • or add tests for info.magnolia.p13n.date.system.DateTraitFieldFactory (extending info.magnolia.ui.form.field.factory.AbstractFieldFactoryTestCase)
Generated at Mon Feb 12 06:33:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.