1. Oct 07, 2023
  2. Oct 06, 2023
  3. Oct 04, 2023
  4. Oct 03, 2023
  5. 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
  6. Sep 29, 2023
  7. Sep 28, 2023
  8. Sep 15, 2023
  9. Sep 14, 2023
  10. Sep 13, 2023
  11. Sep 12, 2023
  12. Sep 10, 2023
  13. Sep 08, 2023
  14. Sep 07, 2023
  15. Sep 06, 2023
  16. Sep 04, 2023
  17. Sep 02, 2023
    • Eloy Lafuente (stronk7)'s avatar
      MDL-76459 xmldb: Add environmental check to verify $CFG->prefix · c0388ff3
      Eloy Lafuente (stronk7) authored
      While, right now, sites using long (> 10 chars) $CFG->prefix
      can continue working (because we still don't have any table
      > 28 chars), as soon as some new table with long name is added,
      it won't work with PostgreSQL anymore (if the 63 limit is raised).
      
      Hence, this environmental check will verify on both install and
      upgrade that the $CFG->prefix is always <= 10 chars.
      
      Sites with longer prefixes will need to rename all their tables
      (and maybe other objects, depending on the dbtype) to use a shorter
      prefix.
      c0388ff3
    • Andrew Nicols's avatar
      weekly release 3.9.23+ · 433bf40d
      Andrew Nicols authored
      433bf40d
  18. Sep 01, 2023
  19. Aug 31, 2023