Skip to content
Snippets Groups Projects
  1. Sep 04, 2019
  2. Aug 15, 2019
    • Nick Thomas's avatar
      Only read rebase status from the model · d31b733f
      Nick Thomas authored and Mayra Cabrera's avatar Mayra Cabrera committed
      Prior to 12.1, rebase status was looked up directly from Gitaly. In
      https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14417 , a DB
      column was added to track the status instead. However, we couldn't stop
      looking at the gitaly status immediately, since some rebases may been
      running across the upgrade.
      
      Now that we're in 12.3, it is safe to remove the direct-to-gitaly
      lookup. This also happens to fix a 500 error that is seen when viewing
      an MR for a fork where the source project has been removed.
      
      We still look at the Gitaly status in the service, just in case Gitaly
      and Sidekiq get out of sync - I assume this is possible, and it's a
      relatively cheap check.
      
      Since we atomically check and set `merge_requests.rebase_jid`, we
      should never enqueue two `RebaseWorker` jobs in parallel.
      d31b733f
  3. 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
  4. May 02, 2019
    • Luke Duncalfe's avatar
      Add support for two-step Gitaly Rebase RPC · 49cb4b3d
      Luke Duncalfe authored and Douwe Maan's avatar Douwe Maan committed
      The new two-step Gitaly `Rebase` RPC yields the rebase commit SHA to the
      client before proceeding with the rebase.
      
      This avoids an issue where the rebase commit SHA was returned when the
      RPC had fully completed, and in some cases this would be after the Rails
      `post_receive` worker services had already run. In these situations,
      the merge request did not yet have its rebase_commit_sha attribute set
      introducing the possibility for bugs (such as previous approvals being
      reset).
      
      https://gitlab.com/gitlab-org/gitlab-ee/issues/5966
      49cb4b3d
  5. Jul 17, 2018
  6. Jul 09, 2018
  7. Jun 28, 2018
  8. Jan 09, 2018
    • Jan Provaznik's avatar
      Store only generic message if rebase fails · a560f785
      Jan Provaznik authored
      Instead of storing detailed rebase error, only a generic message is
      stored with MR. The reason is that this message is exposed and displayed
      to end user and there is no reason to expose detailed backend
      information. Error message is still logged so detailed information
      can be found in logfile by admin if needed.
      
      Related #41820
      a560f785
  9. Jan 05, 2018
    • Jan Provaznik's avatar
      Backport 'Rebase' feature from EE to CE · 27a75ea1
      Jan Provaznik authored
      When a project uses fast-forward merging strategy user has
      to rebase MRs to target branch before it can be merged.
      Now user can do rebase in UI by clicking 'Rebase' button
      instead of doing rebase locally.
      
      This feature was already present in EE, this is only backport
      of the feature to CE. Couple of changes:
      * removed rebase license check
      * renamed migration (changed timestamp)
      
      Closes #40301
      27a75ea1
Loading