[MGNLUI-6193] Can't configure editable chooser Created: 07/Sep/20  Updated: 24/Mar/23

Status: Accepted
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: ready
Remaining Estimate: Not Specified
Time Spent: 1h 32m
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLUI-6448 New security app - UI glitches Open
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
Epic Link: Security maintenance

 Description   

Steps to reproduce

  1. Register an editable chooser:
    !inherit:ui-framework-jcr:chooser
    workbenchChooser:
      workbench:
        contentViews:
          - name: tree
            readOnly: false
            columns:
              jcrName:
                editable: true
                editor:
                  $type: textField
    
  2. Use it for a link field:
          $type: linkField
          chooserId: security-app:chooser
          datasource:
            $type: jcrDatasource
            workspace: users
    

    Open the chooser of this link field.

Expected results

The column is not editable.

Actual results

  1. Workbench is not editable.

Workaround

-

Development notes

We still use AppAwareWorkbenchChooserDefinition for compatibility reasons. This definition mutates even explicitly defined workbench.
It should mutate only choosers created from an app reference.
When fixed, make sure the existing chooser definitions have configured readOnly:false.


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