1. Oct 16, 2023
  2. Oct 13, 2023
  3. Oct 12, 2023
  4. Oct 10, 2023
  5. Oct 07, 2023
  6. Oct 06, 2023
  7. Oct 04, 2023
  8. Oct 03, 2023
  9. Oct 01, 2023
    • Eloy Lafuente (stronk7)'s avatar
      MDL-79247 forum: Workaround same-time discussion modified dates bug · c9d73621
      Eloy Lafuente (stronk7) authored
      Within the forum_get_discussion_neighbours() function of forum
      when the discussions timemodified (last post) is the same, there
      is a bug that does strange things when calculating the prev and
      next discussions.
      
      Note that, in real life, this is really hard to achieve, but in tests,
      when multiple discussions and post can be created by generators in the
      same second (specially when the test machine is quick), chances of
      facing that problem are higher.
      
      By adding 1 second wait, we ensure that the discussions won't have
      the same timemodified (last post) and workaround the problem.
      
      No mater of that, the problem deserves an issue to be created
      so we guarantee from code that it also works ok when the same
      timemodified (last post) situation happens.
      c9d73621
    • Eloy Lafuente (stronk7)'s avatar
      MDL-79247 forum: Make discussion list ordering deterministic · 3f47f814
      Eloy Lafuente (stronk7) authored
      Note that normally this doesn't matter much, but there are situations
      when we want the discussion list ordering fully consistent /
      deterministic.
      
      Specifically, when discussions (or forum posts )are created in the
      same second, or when the discussion titles are repeated, or 2
      discussions have the same number of votes... (any criteria in general),
      in the context of testing, we don't want the order
      to be non-consistent, so we need to provide an extra sorting
      criterion to make it fully deterministic.
      
      So, in this case, we are adding a sort by discussion.id <<DIRECTION>>
      that is an unique value, primary key... so cheap to calculate and,
      that way, when the 1st sorting column has repeated values, the id
      will decide.
      3f47f814
  10. Sep 29, 2023
  11. Sep 28, 2023
  12. Sep 15, 2023
  13. Sep 14, 2023
  14. Sep 13, 2023
  15. Sep 12, 2023
  16. Sep 10, 2023