[MGNLUI-6205] Configure Time property of Date field was ignored by system Created: 11/Sep/20  Updated: 21/Dec/21  Resolved: 16/Dec/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.1.6, 6.2.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Quach Hao Thien
Resolution: Won't Fix Votes: 0
Labels: VN-Testing, maintenance
Remaining Estimate: Not Specified
Time Spent: 1h
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2020-09-11 at 10.35.20 AM.png    
Issue Links:
causality
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:
Sprint: UI Maintenance 3
Story Points: 1

 Description   

Steps to reproduce

Configure a new content type and an app that having a Date property with a dateField, note that the issue is that "time=true" property of dateField was not taken into account by system as ticket description.

  • Sample content type config:
    datasource:
        workspace: test
        autoCreate: true
    
    model:
        properties:
        - name: title
          label: Title
          type: String
          required: true
          i18n: true
        - name: myDate
          label: Your date
          type: Date
    
  • Sample app config:
    !content-type:test-app
    name: test-app
    label: Test
    icon: icon-app
    
    # Optionally override any of the app configuration supplied by the content type.
    subApps:
      browser:
        workbench:
          contentViews:
              - name: tree
                dropConstraint:
                  $type: jcrDropConstraint
                  primaryNodeType: test
                $type: treeView
                columns: &columns
                  - name: jcrName
                    label: jcrName
                    $type: jcrTitleColumn
                    editable: true
                    nodeTypeToIcon:
                      mgnl:contact: icon-people
                      mgnl:content: icon-folder
                    editor:
                      availability:
                        nodes: true
                        properties: true
                  - name: title
                    label: Display name
                    filterComponent: &textFilter
                      $type: textField
                  - name: myDate
                    label: Your date
                    $type: dateField
                    type: java.util.Date
                    time: true
    

Expected results

Support customer to display "time" and save it properly.

Actual results

See illustration image below on 6.2.3, note that we don't have even "time" property to pickup

Workaround

No.

Development notes

Notes to/from developers



 Comments   
Comment by Roman Kovařík [ 26/Nov/21 ]

Estimated: just test

Comment by Quach Hao Thien [ 16/Dec/21 ]

Problem comes from wrong definition, enabling time picker should be configured in detail app instead of browser app

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