1. 05 6月, 2018 6 次提交
    • K
      Fix Fog mocking · 53d1c87c
      Kamil Trzciński 提交于
      53d1c87c
    • J
      Prevent Gitaly WriteConfig log noise · 3a4ecfd0
      Jacob Vosmaer (GitLab) 提交于
      3a4ecfd0
    • L
      Also verify if extending would override a class method · f71fc932
      Lin Jen-Shin 提交于
      Since extending a class means including on the singleton class of the
      class, this should now complain this:
      
      ``` ruby
      module M
        extend Gitlab::Utils::Override
      
        override :f
        def f
          super.succ
        end
      end
      
      class C
        extend M
      
        def self.f
          0
        end
      end
      ```
      
      It should complain because `C.f` wasn't calling `M#f`.
      This should pass verification:
      
      ``` ruby
      module M
        extend Gitlab::Utils::Override
      
        override :f
        def f
          super.succ
        end
      end
      
      class B
        def self.f
          0
        end
      end
      
      class C < B
        extend M
      end
      ```
      
      Because `C.f` would now call `M#f`, and `M#f` does override something.
      f71fc932
    • O
      Adjust insufficient diff hunks being persisted on NoteDiffFile · f4673919
      Oswaldo Ferreira 提交于
      This currently causes 500's errors when loading the MR page
      (Discussion) in a few scenarios.
      
      We were not considering detailed diff headers such as
      "--- a/doc/update/mysql_to_postgresql.md\n+++ b/doc/update/mysql_to_postgresql.md"
      to crop the diff. In order to address it, we're now using
      Gitlab::Diff::Parser, clean the diffs and builds Gitlab::Diff::Line objects
      we can iterate and filter on.
      f4673919
    • K
      Update validator · eea26a93
      Kamil Trzciński 提交于
      eea26a93
    • Y
      Perform pull request IO work outside a transaction · 71ed7987
      Yorick Peterse 提交于
      When importing a GitHub pull request we would perform all work in a
      single database transaction. This is less than ideal, because we perform
      various slow Git operations when creating a merge request. This in turn
      can lead to many DB connections being used, while just waiting for an IO
      operation to complete.
      
      To work around this, we now move most of the heavy lifting out of the
      database transaction. Some extra error handling is added to ensure we
      can resume importing a partially imported pull request, instead of just
      throwing an error.
      
      This commit also changes the specs for IssueImporter so they don't rely
      on deprecated RSpec methods.
      71ed7987
  2. 04 6月, 2018 7 次提交
  3. 03 6月, 2018 1 次提交
  4. 02 6月, 2018 1 次提交
  5. 01 6月, 2018 9 次提交
  6. 31 5月, 2018 2 次提交
  7. 30 5月, 2018 3 次提交
  8. 29 5月, 2018 2 次提交
  9. 28 5月, 2018 2 次提交
  10. 26 5月, 2018 1 次提交
    • S
      Fix fast admin counters not working when PostgreSQL has secondaries · b6125f70
      Stan Hu 提交于
      This commit does a number of things:
      
      1. Reduces the number of queries needed by perform a single query to get all
      the tuples for the relevant rows.
      
      2. Uses a transaction to query the tuple counts to ensure that the data
      is retrieved from the primary.
      
      Closes #46742
      b6125f70
  11. 25 5月, 2018 2 次提交
    • O
      Persist truncated note diffs on a new table · bb8f2520
      Oswaldo Ferreira 提交于
      We request Gitaly in a N+1 manner to build discussion diffs. Once the diffs are from different revisions, it's hard to make a single request to the service in order to build the whole response.
      With this change we solve this problem and simplify a lot fetching this piece of info.
      bb8f2520
    • B
      Add username to terms message in git and API calls · 7a139c16
      Bob Van Landuyt 提交于
      This will make it clearer to users which account is being used to make
      the API/git call. So they know which account needs to be used to
      accept the terms.
      
      Closes #46649
      7a139c16
  12. 24 5月, 2018 3 次提交
  13. 23 5月, 2018 1 次提交