1. 02 Jul, 2021 3 commits
    • Eulyeon Ko's avatar
      Add a custom ordering option for milestones · 976dacef
      Eulyeon Ko authored
      A new method is added to the milestone model
      to support fetching milestones in this particular order:
      1. Current milestones (due date > current date)
      2. Milestones without due dates
      3. Milestones that are expired (due date <= current_date)
      
      The milestones are then sorted by due date (asc or desc)
      and ties are broken by id in descending order.
      
      The milestone finder is also updated to accept
      a new Boolean parameter 'expired_last' to utilize the
      newly added custom ordering to fetch milestones.
      
      When 'expired_last' is specified, order param must be
      one of 'due_date_asc' or 'due_date_desc'. For non-supported
      order param values (including when it's not provided),
      the default is 'due_date_asc'.
      976dacef
    • Eulyeon Ko's avatar
      Refactor milestone related specs for performance · cd2e298b
      Eulyeon Ko authored
      Refactor to use let_it_be and build wherever suitable
      to improve test performance.
      cd2e298b
    • Evan Read's avatar
      Merge branch 'doc_project_move_states' into 'master' · 5695800c
      Evan Read authored
      Give definitions to each of the repository storage move states
      
      See merge request gitlab-org/gitlab!65288
      5695800c
  2. 01 Jul, 2021 37 commits