Task #3090
closed
When repeatedly removing a business role, prevent repeated creating of removal tasks
Added by Tomáš Doischer over 2 years ago.
Updated over 2 years ago.
Description
When a business role is deleted, this happens asynchronously and it takes time. The user can then try to remove the business role again. This again leads to the creation of a business role removal task. This task does nothing, it doesn't lead to exceptions but it fills up the task overview.
- Assignee changed from Roman Kučera to Tomáš Doischer
- Target version set to 12.2.0
- Status changed from New to Needs feedback
- Assignee changed from Tomáš Doischer to Roman Kučera
Simple implementation. I just check if any role composition removal task is running with the same role composition and if so, I don't start the LRT.
I don't throw any exceptions, I just let the user click as much as they want. This removal should preferably be presented in a better way to the user but an exception is not right the solution.
PR: https://github.com/bcvsolutions/CzechIdMng/pull/197
@kucerar, can you please give me feedback?
- % Done changed from 0 to 100
- Status changed from Needs feedback to Resolved
- Assignee changed from Roman Kučera to Tomáš Doischer
LGTM, thx for fix.
I added one suggestion to PR about stream noneMatch(), but you don't have to change the code.
- Status changed from Resolved to Closed
Also available in: Atom
PDF