1. 22 Mar, 2019 3 commits
  2. 21 Mar, 2019 3 commits
  3. 20 Mar, 2019 9 commits
  4. 19 Mar, 2019 4 commits
  5. 18 Mar, 2019 3 commits
  6. 17 Mar, 2019 1 commit
  7. 14 Mar, 2019 2 commits
  8. 13 Mar, 2019 4 commits
    • Nick Thomas's avatar
      Run rubocop -a · 9f05e97a
      Nick Thomas authored
      9f05e97a
    • Heinrich Lee Yu's avatar
      Remove NUMBER_OF_PERMITTED_BOARDS from Project · 6e3bb1e3
      Heinrich Lee Yu authored
      We already check max boards in the create service. This is not used.
      6e3bb1e3
    • Shinya Maeda's avatar
      Make all_pipelines method compatible with pipelines for merge requests · b913169d
      Shinya Maeda authored
      Make it sane
      
      Include merge ref head
      
      Fix union
      
      Improve a bit
      
      Add spec
      
      remove
      
      add spec
      
      Add changelog
      
      fix coding offence
      
      Apply suggestion to spec/models/merge_request_spec.rb
      
      ok
      
      ok
      
      Fix
      
      Fix spec
      
      Fix spec
      
      fix
      
      Simplify the things
      
      Memoize
      
      OK
      
      a
      b913169d
    • Sean McGivern's avatar
      Allow filtering labels by a single character · eba56720
      Sean McGivern authored
      When we use Gitlab::SQL::Pattern, this typically relates to a trigram
      index. As the 'tri' indicates, we need at least three characters to be
      able to use that index.
      
      Labels don't have a trigram index, because we never allow you to search
      for them globally: it's always in the context of a project or a
      group. In that context, it's just as fast to search for a single
      character (in general) because there is already a pretty specific index
      being used.
      eba56720
  9. 12 Mar, 2019 2 commits
  10. 09 Mar, 2019 1 commit
  11. 08 Mar, 2019 1 commit
  12. 07 Mar, 2019 2 commits
  13. 06 Mar, 2019 5 commits
    • Andrew Newdigate's avatar
      Adds the Rubocop ReturnNil cop · 3288e1a8
      Andrew Newdigate authored
      This style change enforces `return if ...` instead of
      `return nil if ...` to save maintainers a few minor review points
      3288e1a8
    • Stan Hu's avatar
      Significantly reduce N+1 queries in /api/v4/todos endpoint · 062efe4f
      Stan Hu authored
      By preloading associations and batching issuable metadata lookups,
      we can significantly cut the number of SQL queries needed to load
      the Todos API endpoint.
      
      On GitLab.com, my own tests showed my user's SQL queries went
      from 365 to under 60 SQL queries.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40378
      062efe4f
    • Sean McGivern's avatar
      Fix upcoming milestone for far-future due dates · 8b9b37f6
      Sean McGivern authored
      `NOW()` is a timestamp, with a maximum year (in Postgres) 294276 AD.
      
      `milestones.due_date` is a date with a maximum year (again, in Postgres)
      of 5874897 AD.
      
      If there is a due date past the limit for the timestamp, comparing the
      two will fail with:
          ERROR:  date out of range for timestamp
      
      We also need to add validations to keep the due dates sensible, but for
      now we can simply use `CURRENT_DATE` instead of `NOW()`, so the types
      match with no coercion needed.
      8b9b37f6
    • Patrick Bajao's avatar
      Allow protected branch creation via web and API · e371520f
      Patrick Bajao authored
      This commit includes changes to add `UserAccess#can_create_branch?`
      which will check whether the user is allowed to create a branch even
      if it matches a protected branch.
      
      This is used in `Gitlab::Checks::BranchCheck` when the branch name
      matches a protected branch.
      
      A `push_to_create_protected_branch` ability in `ProjectPolicy` has been
      added to allow Developers and above to create protected branches.
      e371520f
    • Kamil Trzciński's avatar
      Use encrypted runner tokens · c5f1f7f3
      Kamil Trzciński authored
      This makes code to support encrypted runner tokens.
      This code also finished previously started encryption
      process.
      c5f1f7f3