Task #3090
closedWhen repeatedly removing a business role, prevent repeated creating of removal tasks
100%
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.
Updated by Tomáš Doischer over 2 years ago
- Assignee changed from Roman Kučera to Tomáš Doischer
- Target version set to 12.2.0
Updated by Tomáš Doischer over 2 years ago
- 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?
Updated by Roman Kučera over 2 years ago
- 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.