Skip to content
Snippets Groups Projects
  1. Feb 13, 2018
  2. Jan 22, 2018
  3. Nov 23, 2017
  4. Oct 07, 2017
    • Jacopo's avatar
      Replaces `tag: true` into `:tag` in the specs · 0ce67858
      Jacopo authored
      Replaces all the explicit include metadata syntax in the specs (tag:
      true) into the implicit one (:tag).
      Added a cop to prevent future errors and handle autocorrection.
      0ce67858
  5. Sep 28, 2017
  6. Sep 22, 2017
  7. Sep 13, 2017
  8. Sep 07, 2017
    • Yorick Peterse's avatar
      Rework how recent push events are retrieved · 83355336
      Yorick Peterse authored
      Whenever you push to a branch GitLab will show a button to create a
      merge request (should one not exist already). The underlying code to
      display this data was quite inefficient. For example, it involved
      multiple slow queries just to figure out what the most recent push event
      was.
      
      This commit changes the way this data is retrieved so it's much faster.
      This is achieved by caching the ID of the last push event on every push,
      which is then retrieved when loading certain pages. Database queries are
      only executed if necessary and the cached data is removed automatically
      once a merge request has been created, or 2 hours after being stored.
      
      A trade-off of this approach is that we _only_ track the last event.
      Previously if you were to push to branch A and B then create a merge
      request for branch B we'd still show the widget for branch A. As of this
      commit this is no longer the case, instead we will only show the widget
      for the branch you pushed to most recently. Once a merge request exists
      the widget is no longer displayed. Alternative solutions are either too
      complex and/or too slow, hence the decision was made to settle for this
      trade-off.
      
      Performance Impact
      ------------------
      
      In the best case scenario (= a user didn't push anything for more than 2
      hours) we perform a single Redis GET per page. Should there be cached
      data we will run a single (and lightweight) SQL query to get the
      event data from the database. If a merge request already exists we will
      run an additional DEL to remove the cache key.
      
      The difference in response timings can vary a bit per project. On
      GitLab.com the 99th percentile of time spent in User#recent_push hovers
      between 100 milliseconds and 1 second, while the mean hovers around 50
      milliseconds. With the changes in this MR the expected time spent in
      User#recent_push is expected to be reduced down to just a few
      milliseconds.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/35990
      Unverified
      83355336
    • Maxim Rydkin's avatar
    • Maxim Rydkin's avatar
    • Maxim Rydkin's avatar
      fix CI · 0a08e073
      Maxim Rydkin authored
      Verified
      0a08e073
    • Maxim Rydkin's avatar
      fix helper and spec · 0963ac36
      Maxim Rydkin authored
      Verified
      0963ac36
    • Maxim Rydkin's avatar
      Verified
      db3bc897
  9. Aug 15, 2017
  10. Aug 07, 2017
    • Yorick Peterse's avatar
      Improve checking if projects would be returned · f77fda64
      Yorick Peterse authored
      In various places we check if the same relation would return projects.
      This is done using "any?" which will run a COUNT query with any
      LIMIT/OFFSET values still applied.
      
      To work around all this we introduce 2 helper methods that take care of
      doing the right thing. This leads to the produced queries being simpler
      and fewer queries being executed.
      Verified
      f77fda64
  11. Aug 02, 2017
  12. Aug 01, 2017
  13. Jul 13, 2017
    • Robin Bobbitt's avatar
      Fixes needed when GitLab sign-in is not enabled · 672a68d3
      Robin Bobbitt authored
      When sign-in is disabled:
       - skip password expiration checks
       - prevent password reset requests
       - don’t show Password tab in User Settings
       - don’t allow login with username/password for Git over HTTP requests
       - render 404 on requests to Profiles::PasswordsController
      672a68d3
  14. Jul 11, 2017
  15. Jun 26, 2017
  16. Jun 14, 2017
  17. Jun 13, 2017
  18. Jun 06, 2017
  19. May 12, 2017
  20. Apr 26, 2017
  21. Apr 21, 2017
  22. Apr 17, 2017
  23. Apr 07, 2017
  24. Apr 06, 2017
  25. Mar 16, 2017
  26. Feb 05, 2017
  27. Jan 25, 2017
  28. Oct 06, 2016
  29. Sep 27, 2016
    • Nick Thomas's avatar
      Enforce the fork_project permission in Projects::CreateService · 3ed80a01
      Nick Thomas authored
      Projects::ForkService delegates to this service almost entirely, but needed
      one small change so it would propagate create errors correctly.
      
      CreateService#execute needs significant refactoring; it is now right at the
      complexity limit set by Rubocop. I avoided doing so in this commit to keep the
      diff as small as possible.
      
      Several tests depend on the insecure behaviour of ForkService, so fi them up at
      the same time.
      3ed80a01
  30. Sep 06, 2016
  31. Aug 24, 2016
  32. Jun 30, 2016
Loading