Project

General

Profile

Actions

Task #2992

closed

Add support for skipping automatic role recalculation in SaveAllNodesForSubtreeExecutor

Added by Peter Štrunc over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Peter Štrunc
Target version:
Start date:
11/04/2021
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Calculating automatic roles on each contract save becomes very slow when there is a lot of automatic role rules. It is more beneficial to skip calculating these roles and schedule automatic role recalculation separately after tree node sync is finished.

Also, it would be better to implement this lrt as a stateful task so that we can see which contracts are being processed.

Actions #1

Updated by Peter Štrunc over 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 70
Actions #2

Updated by Peter Štrunc over 2 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Peter Štrunc to Tomáš Doischer
  • % Done changed from 70 to 80
Actions #3

Updated by Tomáš Doischer over 2 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Tomáš Doischer to Peter Štrunc

Thanks for this. I only did code review (no testing) but the test looks good. I found only minor issues:

  • supportQueue needs to be overriden to false
  • documentation does not really say what the whole feature is for
  • localization is missing for LRTs (and result code - but it is probably not needed) - I know that this will likely not be ran manually but it will be shown among other tasks

The code looks good otherwise.

Actions #4

Updated by Peter Štrunc over 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

Thanks @doischert, I added localization and disabled queue for these tasks.

Actions

Also available in: Atom PDF