Project

General

Profile

Actions

Task #2481

closed

Bulk action: Skip prevalidation for role delete bulk action

Added by Radek Tomiška over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondrej Husník
Category:
Bulk operations
Target version:
Start date:
09/11/2020
Due date:
% Done:

100%

Estimated time:
Owner:

Description

When a lot of roles are selected and deleted by bulk action, then bulk action prevalidation never ends (bulk action modal dialog is stuck in show loading state).
Improve RoleDeleteBulkAction prevalidation - when more than 10 roles are selected, then skip prevalidation (finding assigned roles, concepts ...) and add some basic message ("Operation will took while ...")


Files

Actions #1

Updated by Ondrej Husník over 3 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Ondrej Husník over 3 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondrej Husník to Radek Tomiška
  • % Done changed from 0 to 80

I replaced some unnecessary database operations with just getting count of elements which is sufficient here. However I was not able to reproduce this problem on my PC.
Radek, please, could you try it in your environment where this problem showed? If this is the solution, please provide me also a feedback. Thank you.

https://github.com/bcvsolutions/CzechIdMng/commit/9a90f363399e12a3b85afcc67aa494ac69ed842e

Actions #3

Updated by Radek Tomiška over 3 years ago

It works in my environment now, thx!


This prevalidation took 5s.

Actions #4

Updated by Radek Tomiška over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF