Project

General

Profile

Actions

Defect #3026

open

CzechIdMStatusNotificationTask contains duplicated values if user is created and enabled in same day

Added by Roman Kučera almost 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
01/04/2022
Due date:
% Done:

0%

Estimated time:
Affected versions:
Owner:

Description

If you have situation that between 2 runs of CzechIdMStatusNotificationTask user is created and enabled, then this user is 2 times in report once without state and once with state.
The issue is in method getContractsStatus https://github.com/bcvsolutions/czechidm-extras/blob/develop/Realization/backend/idm-extras/src/main/java/eu/bcvsolutions/idm/extras/scheduler/task/impl/CzechIdMStatusNotificationTask.java#L499-L518

As a fix there has to be implemented some type of aggregation by user and select only the most recent IdmAuditDto.

Also it would be nice to have alphabetical order by username and support more identity state, because this empty field is confusing.

Actions

Also available in: Atom PDF