ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Purpose

Job made for cleaning personal data of persons from merge requests.

Job logic

  1. Job starts once in 24 hours by default (configured parameter MERGE_REQUEST_AUTOCLEANING_SCHEDULE).

  2. After starting it gets value from global parameter MERGE_REQUEST_DATA_CLEANING

  3. Select all entries from il.merge_requests with status=EXPIRED, REJECTED, SIGNED:

    1. If updated_at >= current_datetime() - MERGE_REQUEST_DATA_CLEANING. Then skip the record

    2. If updated_at < current_datetime() - MERGE_REQUEST_DATA_CLEANING. Then update entry:

      1. set fields data, authentication_method_current, printout_form to null.

      2. set updated_by to system user.

      3. set updated_at to current datetime.

Note

updated_at - date and time when status was set. Can be obtained from event data (Event manager DB).

  • No labels