Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2735

Segment Updating when changing edit 100% flag must run asynchronous

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • None
    • None
    • Editor general
    • High
    • Improve the changement of the "edit 100% match" flag of a task, where a lot of segments are affected.
    • -

    Description

      problem

      The clients need sometimes the analysis with and without edit 100% match flag activated, to show their clients the difference. Therefore this flag is flipped very often. 

      In the affected tasks there were ~3000 segments, and 2500 of them had a 100% match. So in other words, changing the "edit 100% matches" flag is affecting this 2500 segments and needs therefore partly longer as 60 seconds, which then leads to an ajax timeout in the GUI.

      solution

      The code starting this bulk conversion is started with one function editor_Models_Segment_AutoStates_BulkUpdater::updateSegmentsEdit100PercentMatch in the TaskController :: PutAction.

      This must be changed, so that if isset($this->data->edit100PercentMatch) the code is not called directly, but therefore the task is locked and a new worker is started.

      The worker just calls the above bulk updater and unlocks the task. The unlocking should be communicated via messagebus, similar as the task is on import.

      Attachments

        Activity

          People

            aleksandar Aleksandar Mitrev
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: