[MGNLUI-6747] Show warning / error when a linkField nested in a multiValue field has a reference to a non existing item Created: 14/Jun/21  Updated: 14/Jun/21

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

Type: Improvement Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
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)

 Description   

Steps to reproduce

  1. Create a multiValue field which has a linkField with a reference to a non existing item
  2. label: ui-module-faq.category.sub
    wide: true
    form:
      properties:
        title:
          label: Title
          $type: textField
          required: true
        faqs:
          label: FAQ
          $type: jcrMultiValueField
          field:
            $type: linkField
            label: Select assets
            chooser:
              workbenchChooser:
                appName: assets
    actions:
      close:
        $type: closeAction
      commit:
        $type: commitAction
     
  1. Select a couple of assets and save the dialog
  2. Delete one of the assets which was selected on the previous step
  3. Open the dialog and check it shows the reference to the deleted item
  4. Dialog can't be closed till the reference is deleted, but no warning to the editor is shown

Expected results

Some type of warning is shown to editor to let him know that the reference to the deleted item must be removed

Actual results

No warning/error is shown. The editor must figure out why the dialog "doesn't work"

Workaround

N/A

Development notes

N/A


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