Task #2481
closedBulk action: Skip prevalidation for role delete bulk action
100%
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
Updated by Ondrej Husník over 4 years ago
- Status changed from New to In Progress
Updated by Ondrej Husník over 4 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
Updated by Radek Tomiška over 4 years ago
- File role-delete-bulk-action-prevalidation.png role-delete-bulk-action-prevalidation.png added
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Ondrej Husník
- Target version set to 10.6.0
- % Done changed from 80 to 100
It works in my environment now, thx!
This prevalidation took 5s.
Updated by Radek Tomiška about 4 years ago
- Status changed from Resolved to Closed