Project

General

Profile

Actions

Bug #21535

open

Multiselect does not offer option to delete multiple workflows

Added by Peter Amstutz 3 months ago. Updated about 12 hours ago.

Status:
In Progress
Priority:
Normal
Assigned To:
Category:
Workbench2
Story points:
-

Description

You can't delete multiple workflows with multiselect:



Files

wf-singleselect.png (6.61 KB) wf-singleselect.png Peter Amstutz, 02/20/2024 03:11 PM
wf-multiselect.png (5.52 KB) wf-multiselect.png Peter Amstutz, 02/20/2024 03:11 PM

Subtasks 1 (1 open0 closed)

Task #21649: Review 21535-multi-wf-deleteIn ProgressLisa Knox05/09/2024Actions
Actions #1

Updated by Peter Amstutz 3 months ago

Actions #2

Updated by Peter Amstutz 2 months ago

  • Target version changed from Development 2024-03-27 sprint to Development 2024-04-10 sprint
Actions #3

Updated by Peter Amstutz about 1 month ago

  • Target version changed from Development 2024-04-10 sprint to Development 2024-04-24 sprint
Actions #4

Updated by Lisa Knox about 1 month ago

  • Assigned To set to Lisa Knox
  • Status changed from New to In Progress
Actions #5

Updated by Lisa Knox about 1 month ago

  • Target version changed from Development 2024-04-24 sprint to Development 2024-04-10 sprint

developer-run-tests-services-workbench2: #679

21535-multi-wf-delete @ 425e812aeb6e5f63d4f574d4dd0ef94a6d8f06c8

  • ✅ All agreed upon points are implemented / addressed.
  • ✅ Anything not implemented (discovered or discussed during work) has a follow-up story.
  • ✅ Code is tested and passing, both automated and manual, what manual testing was done is described
  • ✅ Documentation has been updated.
  • ✅ Behaves appropriately at the intended scale (describe intended scale).
  • ✅ Considered backwards and forwards compatibility issues between client and server.
  • ✅ Follows our coding standards and GUI style guidelines.
Notes:
  • There was a menu filter missing for multiple workflows, fixed now
Actions #6

Updated by Peter Amstutz 29 days ago

  • Target version changed from Development 2024-04-10 sprint to Development 2024-04-24 sprint
Actions #7

Updated by Peter Amstutz 16 days ago

  • Target version changed from Development 2024-04-24 sprint to Development 2024-05-08 sprint
Actions #8

Updated by Peter Amstutz 14 days ago

I tested this, and while the "delete wokflow" icon now shows up in the toolbar when multiple workflows are selected, when you click on the delete icon it only deletes the first workflow. So it appears that the actual delete callback also needs to handle multi-select.

Actions #9

Updated by Lisa Knox 3 days ago

developer-run-tests-services-workbench2: #792

Changed delete method to handle multiple resources.

Actions #10

Updated by Brett Smith 3 days ago

I am seeing a related issue on 2.7.2 where if I multiselect heterogeneous resources including workflow definitions, then trash them, it trashes the non-workflow resources but not the workflows. Does this branch resolve that issue too? If not I can file a separate ticket.

Actions #11

Updated by Peter Amstutz 1 day ago

  • Target version changed from Development 2024-05-08 sprint to Development 2024-05-22 sprint
Actions #12

Updated by Lucas Di Pentima about 14 hours ago

Reviewing fd7d23d

  • Just curious: why is it necessary to deconstruct the array and reconstruct it on line 29?: for (const resource of [...resources]) { ... }
  • Also, I was curious as to why we need to pass the owner UUID to the workflow delete call, and digging a bit, I'm seeing that for some reason, navigateTo(ownerUuid) is called before deleting the object. I know this is unrelated to this branch, but do you happen to know why this is necessary?
  • Brett's comment above was one of the topics we talked about yesterday. Do you think it would be a good opportunity to change the delete icon to something different (maybe a big X icon?) so that it's less confusing for the user?
  • Related to the above, I realize that there's a third case of "trash icon is not exactly the same action": for processes, the tooltip says "Remove", and if I select a workflow definition and a process, I don't get the trash icon, so I'm guessing the code is treating them as different actions.
    • Upon further investigation, it seems that for some reason when we delete processes, we show a confirmation dialog first, but we don't do the same for workflow definitions, they get deleted immediately. I think we need to have consistency on this, if this happens to be an overlooked issue. We either ask for confirmation on destructive operations or we don't, and doing so would allow us to treat "delete workflow" and "remove process" actions as the same thing, enabling the Delete icon on multi-selections. WDYT?
  • If the above comment doesn't make sense, I think we'll need a different icon for "Remove process" too.
Actions #13

Updated by Lucas Di Pentima about 14 hours ago

Forgot to comment it would be nice to have this fix tested. Haven't checked if we already have tests for the multi-select feature, if not I think it's really important to have them as the feature is likely to be used a lot by heavy users.

Actions

Also available in: Atom PDF