1. 19 Jan, 2021 1 commit
    • Jérome Perrin's avatar
      accounting: Fix timezone issues when checking periods are consecutive · 307470e2
      Jérome Perrin authored
      Opening an accounting period is refused if the start date of the period
      is more than one day after the stop date of the previous period, but this
      check did not take into account that "next day" might be more than 24
      hours, like it's the case when daylight saving happen between these dates.
      Instead we check that the difference is less than 1.9 days.
      
      Reorganise tests to group accounting period related tests in a dedicated
      test class and add missing tests for period validation checks.
      
      Also fix a few race conditions with catalog indexing that are probably not
      a problem in real life but were revealed by the test.
      307470e2
  2. 18 Jan, 2021 2 commits
    • Vincent Pelletier's avatar
      CMFActivity: Optimise validation queries. · a016ed04
      Vincent Pelletier authored
      See SQLBase._getExecutableMessageSet for operation principle.
      Removes the notion of order_validation_text: activity validation is no
      longer evaluated per-activity , but per-dependency for multiple activities
      at a time. In this context, order_validation_text does not make sense as
      it flattens all dependency types for a given activity.
      Rework activity-dependency-to-SQL methods: use a dict rather
      dynamically-generated method names.
      Based on initial work by Julien Muchembled.
      a016ed04
    • Vincent Pelletier's avatar
      CMFActivity.Activity.SQLBase: Properly release reserved messages when load raises. · f09e1a36
      Vincent Pelletier authored
      Seen happen on SQLDict with 94 indexation activities being stuck assigned
      to a processing node on which load failed because of an SQL deadlock.
      f09e1a36
  3. 14 Jan, 2021 3 commits
  4. 13 Jan, 2021 7 commits
  5. 12 Jan, 2021 4 commits
  6. 11 Jan, 2021 2 commits
  7. 08 Jan, 2021 2 commits
  8. 06 Jan, 2021 4 commits
  9. 05 Jan, 2021 3 commits
  10. 04 Jan, 2021 1 commit
  11. 30 Dec, 2020 3 commits
  12. 29 Dec, 2020 2 commits
  13. 28 Dec, 2020 2 commits
  14. 25 Dec, 2020 4 commits