Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5307

New Notifications app is not taking messageViews definition into account

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Neutral Neutral
    • 6.1.2, 6.2
    • 6.1.1
    • None
    • None

      Previously, you were able to configure the information that was displayed in Pulse's messages and include some relevant information just by configuring Messageviews. Now, in Magnolia 6, with the Notifications app it is not possible anymore.

      Steps to reproduce:

      1. Update the messageView defined, in this test a new field myfield was added to ui-admincentral:default
      2. Create a new message adding the new propertie, for example, you can create it with Groovy and execute this code in the Groovy app:
        mm = info.magnolia.objectfactory.Components.getComponent(info.magnolia.ui.framework.message.MessagesManager.class)
        message = new info.magnolia.ui.api.message.Message(Calendar.getInstance().getTimeInMillis())
        message.setMessage("Hola Message Text");
        message.setType(info.magnolia.ui.api.message.MessageType.INFO); 
        message.setSubject("subject");
        message.addProperty("myfield", "This is my extra text!");
        message.setView("ui-admincentral:default");
        mm.sendLocalMessage(message);
        

      In Magnolia 5, the new property is displayed:

      But not in Magnolia 6:

        Acceptance criteria

              mdivilek Milan Divilek
              miruela Mercedes Iruela
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1.15h
                    1.15h