Actions
Defect #3248
closedBusiness role composition cannot be removed if the super role is not assigned to anyone
Start date:
01/27/2023
Due date:
% Done:
100%
Estimated time:
Affected versions:
Owner:
Description
Tested on 12.2.3 and 13.0.0 RC
Steps to reproduce:
Steps to reproduce:
- Create "superrole" and "subrole" composition
- Try to remove the subrole from the superrole
- The subrole is not removed. The task Delete business role (RemoveRoleCompositionTaskExecutor) was started and no error.
- Assign the superrole to some user
- Try to remove the subrole from the superrole
- The removal is successful
Audit:
Files
Updated by Alena Peterová almost 2 years ago
Note: when deleting the whole "superrole" using force delete, the role composition is removed successfully together with the role, even though there is no role assignment.
Updated by Tomáš Doischer almost 2 years ago
- Status changed from New to In Progress
- Assignee set to Tomáš Doischer
Updated by Tomáš Doischer almost 2 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Tomáš Doischer to Peter Štrunc
- % Done changed from 0 to 80
Fixed. There was an issue with commiting the transaction. Not really sure why this happened when the role was not assigned.
Updated by Tomáš Doischer almost 2 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Peter Štrunc to Tomáš Doischer
- % Done changed from 80 to 60
One test failed, will take a look at it.
Updated by Tomáš Doischer almost 2 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Tomáš Doischer to Peter Štrunc
- Target version set to 13.1.0
- % Done changed from 60 to 80
The original solution led to some issues with transactions. I instead implemented BE delete bulk action for role composition. This is desirable anyway and works nice.
@sourek, can you please take a look at it?
Updated by Tomáš Doischer almost 2 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Peter Štrunc to Tomáš Doischer
- % Done changed from 80 to 100
Merged to develop.
Updated by Tomáš Doischer almost 2 years ago
- Status changed from Resolved to Closed
- Target version changed from 13.1.0 to 13.0.1
Actions