[MGNLUI-6041] Column Editor's availability: Non available node-type node should not react on editing. Created: 13/Jul/20  Updated: 13/Jul/20

Status: Open
Project: Magnolia UI
Component/s: app framework, tree/list, workbench
Affects Version/s: 6.2.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christian Ringele Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Events_Editingt-EventNode.png     PNG File Events_Editingt-FolderNode.png    
Issue Links:
relation
is related to MGNLUI-6035 Column Editor's fields: One can not c... Open
is related to MGNLUI-6042 Column Editor's behavior: Inconsisten... 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

 Description   

Tested:

On current 6.2.2-SNAPSHOT

Situation:

  • Content app using contentType (here events app using event contentType)
  • two types existing: 'event' node and 'mgnl:folder' node (as all apps usually have, folders additional to an custom type)
  • 'event' node should be editable (orange)
  • 'mgnl:folder' should not be editable (yellow)

 

Code in the events app:
Realise that it is defined that the editor's availability should react only on the nodeType 'event'.

subApps:
  browser:
    workbench:
      contentViews:
        tree:
          columns:
      
            location:
              expandRatio: 1.0
              filterComponent:
                 $type: textField
              editable: true
              editor:
                availability:
                  nodeTypes: 
                    - event
                field:
                  $type: textField
                  rows: 3

Problem:

When going into edit mode on an 'event' node (orange), it works fine as expected:

When going onto an 'mgnl:folder' node the edit reacts in a wrong way:

  • Nothing is editable, which is correct
  • Somehow it reacts on a strange way: all is empty (see folder name), as it were editable.
  • The tab jumps from event to event node and then also to the folder node which is shouldn't.

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