Task #633
closed
Automatic role - skip contracts valid in the past
Added by Radek Tomiška over 7 years ago.
Updated over 7 years ago.
Description
Automatic role is assigned to all contracts on given work position - contract validity is ignored now. When contract is valid in the future, then assigned roles are prepared correctly. When contract validity is in the past, preparing assigned roles is not needed, they will be removed right after IdentityRoleExpirationTaskExecutor is run => creating automatic roles for valid contracts in the past should be removed.
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 0 to 90
I suggest we refactor EntityUtils#isValidInFuture and #isValidNowOrInFuture to ValidableEntity or vice-versa. No need to do it now, though.
I know, you added default ValidableEntity#isValid method implementation - i've removed second implemetation and reused EntityUtils#isValid method in it. Maybe we can add another methods to ValidableEntity too, if methods will be used frequently.
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 90 to 100
I did review. Automatic roles can not be assigned to past contracts - OK, thanks for this feature. It is possible to merge this branch to develop.
- Status changed from Resolved to Closed
Also available in: Atom
PDF