Project

General

Profile

Actions

Defect #3009

closed

Contract slice synchronization doesn't fill validTill inside slice

Added by Ondřej Kopr about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Roman Kučera
Category:
Synchronization
Target version:
Start date:
11/30/2021
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Contract slice synchronization and inner slice behavior must process new slices and old one with process that fill valid till for contract slice:

One of our project has contract slice synchronization that execute all crud operation (important is delete).

When inside one sznchronization is processed create and delete for one exactly same contract slice tha valid till isn't filled and SelectCurrentContractSliceTaskExecutor every day process same two slices for one user.

Result of these operation is that one day is user valid and second one will be blocked including role remove.

This behavior was explored by transaction log and audit analyzing. We have more cases and more data for debug the process.

Simulation on clear product version is also very easy.
  1. create user contract-slice-test without contract,
  2. create contract slice synchronization from CSV is enough,
  3. set up reconciliation including HR process and all another,
  4. set up source data:
    id;identity;contract;valid-from-slice;valid-from;valid-till
    100;contract-slice-test;contract-one;2018-09-01;2018-09-01;2019-03-31
    200;contract-slice-test;contract-one;2019-04-01;2019-04-01;9999-12-31
    
  5. run synchronzation, after this run is everything OK,
  6. update source data
    id;identity;contract;valid-from-slice;valid-from;valid-till
    100;contract-slice-test;contract-one;2018-09-01;2018-09-01;2019-03-31
    300;contract-slice-test;contract-one;2019-04-01;2019-04-01;2022-01-31
    
  7. run synchronization.

After this run missing valid till appears :( like upper image.


Files

valid_till.png (8.28 KB) valid_till.png Ondřej Kopr, 11/30/2021 07:09 PM
missing_date.png (37.8 KB) missing_date.png Ondřej Kopr, 11/30/2021 07:09 PM
Actions

Also available in: Atom PDF