[MGNLUI-4250] Task action should support multiple items that can reuse in bulk action Created: 12/Jul/17 Updated: 08/Mar/21 Resolved: 08/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | pulse |
| Affects Version/s: | 5.5.5 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Sang Ngo Huu | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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 |
|
There are duplicated functionality in 2 classes: and 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); } } |