Skip to content
Snippets Groups Projects
  1. Sep 23, 2019
  2. Sep 20, 2019
  3. Sep 19, 2019
  4. Sep 18, 2019
  5. Sep 17, 2019
  6. Sep 16, 2019
    • Jorrit Schaap's avatar
      SW-816: bonus feature: refactored RADBCommonTest into a RADBCommonTestMixin... · ae39ede4
      Jorrit Schaap authored
      SW-816: bonus feature: refactored RADBCommonTest into a RADBCommonTestMixin which takes care of setting up a testing postgres radb instance, and which can be used in conjunction with a unittest.TestCase to do unittests on a fresh RADB instance. By using a mixin instead of chained inheritance we have better seperation of responsibility, and tools like pycharm can handle these tests better as well.
      ae39ede4
    • Jorrit Schaap's avatar
      SW-816: modified radb insertSpecificationAndTask into... · 424204a3
      Jorrit Schaap authored
      SW-816: modified radb insertSpecificationAndTask into insertOrUpdateSpecificationAndTask. This has the advantage that we do not have to reconnect predecessor relations, and in the webscheduler a re-insert of a task will now be visible as an update on an existing task, instead of a delete (disappear) followed by an insert (reappear). Catch task_predecessor_unique PostgresDBQueryExecutionError in the Specification class of the resourceassigner, so scheduling can continue even on tasks which were already known and already had links to predecessors.
      424204a3
    • Jorrit Schaap's avatar
      SW-816: added test test_do_assignment_does_not_raise_on_inserting_predecessors... · 66bdc3f3
      Jorrit Schaap authored
      SW-816: added test test_do_assignment_does_not_raise_on_inserting_predecessors which reproduces the bug of SW-816. It fails with a 'duplicate key value violates unique constraint task_predecessor_unique' error from the RABD when scheduling a successor task for the second time.
      66bdc3f3
  7. Sep 13, 2019
Loading