Skip to content
Snippets Groups Projects
  1. Sep 13, 2019
  2. Aug 28, 2019
  3. Aug 22, 2019
  4. Aug 21, 2019
    • George Koltsov's avatar
      Add SortingPreference concern · 8bcc47ac
      George Koltsov authored
      Sorting preference functionality has been extracted
      from `IssuableCollections` to a new `SortingPreference`
      concern in order to reuse this functionality in projects
      (and groups in the future).
      8bcc47ac
  5. Aug 12, 2019
  6. Jul 05, 2019
  7. Jul 04, 2019
    • Nick Thomas's avatar
      Allow asynchronous rebase operations to be monitored · 381468d0
      Nick Thomas authored
      This MR introduces tracking of the `rebase_jid` for merge requests. As
      with `merge_ongoing?`, `rebase_in_progress?` will now return true if a
      rebase is proceeding in sidekiq.
      
      After one release, we should remove the Gitaly-based lookup of rebases.
      It is much better to track this kind of thing via the database.
      Verified
      381468d0
  8. Jun 28, 2019
  9. Jun 22, 2019
    • Stan Hu's avatar
      Enable Gitaly ref name caching for discussions.json · 30167193
      Stan Hu authored
      This eliminates many potential duplicate FindCommit RPCs for the same
      ref, which often occurs in the RelativeLinkFilter#current_commit call.
      On the GitLab 12.0 release post, for example, this would save close to
      400 RPC calls.
      30167193
  10. Jun 20, 2019
    • Oswaldo Ferreir's avatar
      Automatically update MR merge-ref along merge status · 3af348b6
      Oswaldo Ferreir authored
      This couples the code that transitions the `MergeRequest#merge_status`
      and refs/merge-requests/:iid/merge ref update.
      
      In general, instead of directly telling `MergeToRefService` to update
      the merge ref, we should rely on `MergeabilityCheckService` to keep
      both the merge status and merge ref synced. Now, if the merge_status is
      `can_be_merged` it means the merge-ref is also updated to the latest.
      
      We've also updated the logic to be more systematic and less user-based.
      3af348b6
  11. Jun 12, 2019
  12. Jun 11, 2019
  13. Jun 03, 2019
    • Shinya Maeda's avatar
      Abstract auto merge processes · d4b46936
      Shinya Maeda authored
      We have one auto merge strategy today - Merge When Pipeline
      Succeeds.
      
      In order to add more strategies for Merge Train feature,
      we abstract the architecture to be more extensible.
      
      Removed arguments
      
      Fix spec
      d4b46936
  14. May 31, 2019
    • Oswaldo Ferreir's avatar
      Automatically update MR merge-ref along merge status · b965009d
      Oswaldo Ferreir authored
      This couples the code that transitions the `MergeRequest#merge_status`
      and refs/merge-requests/:iid/merge ref update.
      
      In general, instead of directly telling `MergeToRefService` to update
      the merge ref, we should rely on `MergeabilityCheckService` to keep
      both the merge status and merge ref synced. Now, if the merge_status is
      `can_be_merged` it means the merge-ref is also updated to the latest.
      
      We've also updated the logic to be more systematic and less user-based.
      b965009d
  15. Apr 16, 2019
  16. Apr 04, 2019
    • Stan Hu's avatar
      Fix and expand Gitaly FindCommit caching · f2fa7c32
      Stan Hu authored
      https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26248 added
      support for deduplicating FindCommit requests using Gitaly ref name
      caching. However, not all endpoints were covered, and in one case the
      Gitaly wrapper wasn't actually surrounding the serialization step. We
      can safely cache ref names between FindCommit calls for #index and #show
      endpoints for merge requests and pipelines. This can significantly
      reduce the number of FindCommit requests.
      f2fa7c32
  17. Mar 27, 2019
    • Stan Hu's avatar
      Allow ref name caching CommitService#find_commit · db759c5d
      Stan Hu authored
      For a given merge request, it's quite common to see duplicate FindCommit
      Gitaly requests because the Gitaly CommitService caches the request by
      the commit SHA, not by the ref name. However, most of the duplicate
      requests use the ref name, so the cache is never actually used in
      practice. This leads to unnecessary requests that slow performance.
      
      This commit allows certain callers to bypass the ref name to
      OID conversion in the cache. We don't do this by default because it's
      possible the tip of the branch changes during the commit, which
      would cause the caller to get stale data.
      
      This commit also forces the Ci::Pipeline to use the full ref name
      so that caching can work for merge requests.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57083
      db759c5d
  18. Mar 26, 2019
  19. Mar 18, 2019
  20. Mar 06, 2019
  21. Feb 08, 2019
  22. Feb 06, 2019
  23. Feb 05, 2019
  24. Jan 28, 2019
  25. Jan 24, 2019
  26. Dec 21, 2018
    • Oswaldo Ferreir's avatar
      Cache diff highlight in discussions · 7cf49477
      Oswaldo Ferreir authored
      This commit handles note diffs caching, which considerably improves
      the performance on merge requests with lots of comments.
      Important to note that the caching approach taken here is different
      from `Gitlab::Diff::HighlightCache`. We do not reset the whole cache
      when a new push is sent or anything else. That's because discussions
      diffs are persisted and do not change.
      7cf49477
  27. Dec 19, 2018
  28. Dec 07, 2018
  29. Dec 06, 2018
  30. Nov 23, 2018
  31. Nov 12, 2018
  32. Oct 31, 2018
  33. Oct 29, 2018
  34. Oct 26, 2018
  35. Oct 22, 2018
  36. Oct 18, 2018
    • Alessio Caiazza's avatar
      Move ci_environments_status to a model · 4a9efc60
      Alessio Caiazza authored
      GET :namespace/merge_requests/:id/ci_environments_status complexity
      already reached a limit for a direct serialization from an hash
      computed at within the controller function.
      
      Here we introduce a virtual model EnvironmentStatus and its serializer.
      4a9efc60
  37. Oct 05, 2018
  38. Oct 04, 2018
  39. Sep 26, 2018
    • gfyoung's avatar
      Enable even more frozen string in app/controllers · 12ee2753
      gfyoung authored
      Enables frozen string for some vestigial files as
      well as the following:
      
      * app/controllers/projects/**/*.rb
      * app/controllers/sherlock/**/*.rb
      * app/controllers/snippets/**/*.rb
      * app/controllers/users/**/*.rb
      
      Partially addresses #47424.
      12ee2753
Loading