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

Task action should support multiple items that can reuse in bulk action

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: 5.5.5
    • Fix Version/s: None
    • Component/s: pulse
    • Labels:
      None

      Description

      There are duplicated functionality in 2 classes:
      info.magnolia.ui.admincentral.shellapp.pulse.task.action.ClaimTaskAction
      info.magnolia.ui.admincentral.shellapp.pulse.task.action.ClaimTasksAction

      and
      info.magnolia.ui.admincentral.shellapp.pulse.task.action.AbortTaskAction
      info.magnolia.ui.admincentral.shellapp.pulse.task.action.AbortTasksAction

      It should handle multiple items execution, like info.magnolia.ui.framework.action.DeleteAction

      Investigate point:

      info.magnolia.ui.admincentral.shellapp.pulse.item.list.AbstractPulseListPresenter:
      protected void executeAction(String actionName) {
              try {
                  AvailabilityDefinition availability = actionExecutor.getActionDefinition(actionName).getAvailability();
                  if (availabilityChecker.isAvailable(availability, getSelectedItemIds())) {
                      actionExecutor.execute(actionName, new Object[]{getSelectedItemIds()});
      =>* This should use item instead of item's id*
                  }
              } catch (ActionExecutionException e) {
                  log.error("An error occurred while executing action [{}]", actionName, e);
              }
          }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sang.ngo Sang Ngo Huu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: