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

Make bulk actions configurable in the Pulse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.5
    • 5.3.10, 5.4.2
    • pulse
    • Yes
    • Yes
    • Saigon 43
    • 8

      Tasks which are resolved can only be achieved by users with superuser role.
      But this does not fit reality in projects...
      The customer needs to be able to decide, who can archive successful pulse tasks.
      It is a 'no go' to give somebody complete superuser rights just to be able to archive pulse tasks.

      A valid situation would be:

      • Let also publishers archive their tasks.
      • Or, let an explicit role archive tasks.

      In 5.4.x its line 143 in info.magnolia.ui.admincentral.shellapp.pulse.item.list.PulseListFooter:

      User user = MgnlContext.getUser();
              // TODO ideally context menu action availability should use the same mechanism and rules defined in the messageView config
              // but as this is not straightforward, for the time being we hack it like this
              if (user.getAllRoles().contains("superuser")) {
                  addRemoveMenuItem(i18n, itemsTable, contextMenu, "pages.publish.actions.archive");
              }
      

      In 5.3.x its line 153 in info.magnolia.ui.admincentral.shellapp.pulse.item.list.PulseListFooter:

      User user = MgnlContext.getUser();
              // TODO ideally context menu action availability should use the same mechanism and rules defined in the messageView config
              // but as this is not straightforward, for the time being we hack it like this
              if (user.getAllRoles().contains("superuser")) {
                  addRemoveMenuItem(i18n, itemsTable, contextMenu, "pages.publish.actions.archive");
              }
      

      In my opinion, an implementation like this is exactly what the comment says: "we hack it like this"...

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - 3d Original Estimate - 3d
                    3d
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 6.5d
                    6.5d