[MGNLDEMO-391] Show version feature not working in tours app Created: 18/Nov/21  Updated: 18/May/22

Status: Open
Project: Magnolia Demo Projects
Component/s: tours-app
Affects Version/s: 1.6.4
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Luke Trueman Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1h
Original Estimate: Not Specified

Attachments: PNG File image-2021-11-18-15-00-24-885.png     File tours.yaml     File versions.yaml    
Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Team: Foundation

 Description   

Go to the tours app, publish one of the tours a couple of times, and then try to "show version", you select a version, click show and nothing happens (dialog closes and no preview shown). Either the action should work, or it shouldn't be shown.



 Comments   
Comment by Oanh Thai Hoang [ 10/May/22 ]

This is a bug of tours app because of missing app name configuration in show version action. Here is workaround solution

Adding new versions.yaml dialog below /tours/dialogs to override missing appName and subAppName. See

/!inherit:ui-framework-jcr:versions
actions:
  commit:
    appName: tours
    subAppName: detail

Override showVersions action with new dialogId in Resource app as below. Path example: https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:resources:edit;/tours/apps/tours.yaml:edit

!content-type:tour
label: tours.app.label
icon: icon-language-app
permissions:
  roles:
    - travel-demo-editor
    - travel-demo-publisher
subApps:
  browser:
    actions:
     addItem:
       appName: tours
     editItem:
       appName: tours
     showVersions:
       dialogId: tours:versions
  detail:
    form:
      properties:
        name:
          i18n: true

Sample yaml pls reference to tours.yaml versions.yaml

Generated at Mon Feb 12 05:19:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.