Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1572

Change semaphores to allow concurrent editing of different DB records

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B1
    • Component/s: Data Management
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      Saving changes to different DB records from same table wasn't possible due when semaphore protection.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. add "MainIDs" column (text, null) to "Semaphores" table - 0.2h
      2. when creating a semaphore ("kTempTablesHandler::SaveEdit" method) store main table IDs comma-separated form in the new "Semaphores.MainIDs" table - 0.3h
      3. when checking for existing semaphores exclude semaphore, when: - 1h
        • the copied IDs (will go into "MainIDs" column if semaphore is created) do not overlap with IDs in the semaphore
        • the "MainIDs" column of the semaphore has "0" value (in main temp table new created record always has 0 as its ID due missing auto-increment column)

      Quote: 1.5h*1.4=2h

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Time Spent - 1.8h Remaining Estimate - 0.2h
                  0.2h
                  Logged:
                  Time Spent - 1.8h Remaining Estimate - 0.2h
                  1.8h