Fabrik icon indicating copy to clipboard operation
Fabrik copied to clipboard

Fix #317: Added feature for multiple deletion of layers

Open Shivanshmundra opened this issue 6 years ago • 11 comments

Fix #317: Added feature for multiple deletion of layers I added two buttons to include this feature:

  • Select Multiple Layer for choosing layers to delete.
  • Delete Selected Layers for deleting the selected layers.

I am working on the issue of stopping navigation drawer while layers are selected.

Shivanshmundra avatar Mar 13 '18 18:03 Shivanshmundra

Coverage Status

Coverage remained the same at 95.442% when pulling adfd2ac13472d569e4e409667fbeaf7dcb6fc8aa on Shivanshmundra:delete_multiple_layer into 062db16e28f2e0711910f2cad2ba590a45f7d5cc on Cloud-CV:master.

coveralls avatar Mar 13 '18 18:03 coveralls

@Shivanshmundra can you share a screenshot?

Ram81 avatar Mar 14 '18 02:03 Ram81

Yeah Sure: multiple_layer_deletion

@Ram81 Is this what you wanted?

Shivanshmundra avatar Mar 14 '18 06:03 Shivanshmundra

@utsavgarg does this design for deleting multiple layers looks good to you? I have some alternatives in mind if needed

Ram81 avatar Mar 14 '18 16:03 Ram81

My two cents would be that, as mentioned in #317, I think a "delete mode" button in the actions tab would be a bit neater.

thatbrguy avatar Mar 14 '18 17:03 thatbrguy

@thatbrguy I didn't understand clearly what you said #317, like adding a delete mode and then selecting the layers to delete.I think above solution does that just in another way if I am getting you right. Can you please elaborate what you want?Also if @Ram81 have any good suggestions.

Shivanshmundra avatar Mar 14 '18 18:03 Shivanshmundra

@Shivanshmundra Delete multiple layers is not a functionality of layer, you can provide a delete multiple layer button in zoo tab under some tab say 'Action' which will allow user to choose multiple layers and then use a delete action to delete all of them at once. It is not a feature that should be available in the layer parameters pane as per my views. Try to think where is the most suitable place to put the 'Delete multiple layer' action.

Ram81 avatar Mar 15 '18 03:03 Ram81

@Shivanshmundra Thanks for the effort. The choice of placing the delete multiple layer button in each layer pane is a bit odd to me. Also, when deleting a layer, we need to take care of the parameter calculation, you could discuss this further with @Ram81. I tried to test it in its current state and it doesn't seem to function for a couple of models I imported from the model zoo.

utsavgarg avatar Mar 15 '18 15:03 utsavgarg

I thought of the same approach as @Shivanshmundra did. Isn't it easier to implement a multiple delete button rather than a delete mode button ? What changes are needed to this ? Also could you tell me about the exact layers it didn't work for

yashdusing avatar Mar 15 '18 20:03 yashdusing

@yashdusing the delete key approach is better from user perspective.

Ram81 avatar Mar 16 '18 04:03 Ram81

@Shivanshmundra @yashdusing If both of you want to pursue it, one of you can work on using the delete key for multiple layers, the other can move the delete button to the actions bar. Sorry for the confusion by calling it "delete mode". We just wanted it to be moved where it's common to all layers (Like the actions bar).

The code for parameter count update should be available for single layer deletion, be sure to call it wherever necessary.

thatbrguy avatar Mar 16 '18 05:03 thatbrguy