1. 01 8月, 2016 1 次提交
  2. 30 7月, 2016 2 次提交
    • S
      Improve diff performance by eliminating redundant checks for text blobs · 48ff40a0
      Stan Hu 提交于
      On a merge request with over 1000 changed files, there were redundant
      calls to blob_text_viewable?, which incurred about 7% of the time.
      
      Improves #14775
      48ff40a0
    • S
      Properly abort a merge when merge conflicts occur · 60529e02
      Stan Hu 提交于
      If somehow a user attempted to accept a merge request that had
      conflicts (e.g. the "Accept Merge Request" button or the MR itself was
      not updated), `MergeService` did not properly detect that a conflict
      occurred. It would assume that the MR went through without any issues
      and close the MR as though everything was fine. This could cause
      data loss if the source branch were removed.
      
      Closes #20425
      60529e02
  3. 29 7月, 2016 7 次提交
    • P
      Check for Ci::Build artifacts at database level · d05af7b7
      Paco Guzman 提交于
      d05af7b7
    • P
      Bump gitlab_git to speedup DiffCollection iterations · 6595d6aa
      Paco Guzman 提交于
      6595d6aa
    • Y
      Method for returning issues readable by a user · 002ad215
      Yorick Peterse 提交于
      The method Ability.issues_readable_by_user takes a list of users and an
      optional user and returns an Array of issues readable by said user. This
      method in turn is used by
      Banzai::ReferenceParser::IssueParser#nodes_visible_to_user so this
      method no longer needs to get all the available abilities just to check
      if a user has the "read_issue" ability.
      
      To test this I benchmarked an issue with 222 comments on my development
      environment. Using these changes the time spent in nodes_visible_to_user
      was reduced from around 120 ms to around 40 ms.
      002ad215
    • T
      Implement final review comments from @rymai. · cebcc417
      Timothy Andrew 提交于
      1. Instantiate `ProtectedBranchesAccessSelect` from `dispatcher`
      
      2. Use `can?(user, ...)` instead of `user.can?(...)`
      
      3. Add `DOWNTIME` notes to all migrations added in !5081.
      
      4. Add an explicit `down` method for migrations removing the
         `developers_can_push` and `developers_can_merge` columns, ensuring that
         the columns created (on rollback) have the appropriate defaults.
      
      5. Remove duplicate CHANGELOG entries.
      
      6. Blank lines after guard clauses.
      cebcc417
    • T
      Implement review comments from @dbalexandre. · 7b2ad2d5
      Timothy Andrew 提交于
      1. Remove `master_or_greater?` and `developer_or_greater?` in favor of
         `max_member_access`, which is a lot nicer.
      
      2. Remove a number of instances of `include Gitlab::Database::MigrationHelpers`
         in migrations that don't need this module. Also remove comments where
         not necessary.
      
      3. Remove duplicate entry in CHANGELOG.
      
      4. Move `ProtectedBranchAccessSelect` from Coffeescript to ES6.
      
      5. Split the `set_access_levels!` method in two - one each for `merge` and
         `push` access levels.
      7b2ad2d5
    • T
      Add changelog entry. · 8e25ddc5
      Timothy Andrew 提交于
      8e25ddc5
    • A
  4. 28 7月, 2016 8 次提交
    • J
      fix repo hooks missing on import · 32d8aa6d
      James Lopez 提交于
       fix spec and added changelog
      32d8aa6d
    • H
      Fix the title of the toggle dropdown button · 94e6d51e
      Herminio Torres 提交于
      Before when you choose the way of `sort` instead it display the title correctly it was just apply the humanize helper in sort value.
      
      E.g.
      
      When you choose `Last updated` it should display the title `Last updated` instead of `Recently updated`. This fix makes this correctly displays the title.
      
      Change the implementation of the `link_to` `filter_branches_path`
      
      - Change the value of the `params[:sort]` in `link_to`. E.g. instead of using `'recently_updated'` is now using `sort_value_recently_updated`.
      
      - Change the values of the case in the `branches_sorted_by` method for the values it receives in the `params[:sort]` that are: `nil`, `'name'`, `'updated_desc'`, `'updated_asc'`.
      94e6d51e
    • Y
      Reduce instrumentation overhead · 905f8d76
      Yorick Peterse 提交于
      This reduces the overhead of the method instrumentation code primarily
      by reducing the number of method calls. There are also some other small
      optimisations such as not casting timing values to Floats (there's no
      particular need for this), using Symbols for method call metric names,
      and reducing the number of Hash lookups for instrumented methods.
      
      The exact impact depends on the code being executed. For example, for a
      method that's only called once the difference won't be very noticeable.
      However, for methods that are called many times the difference can be
      more significant.
      
      For example, the loading time of a large commit
      (nrclark/dummy_project@81ebdea5df2fb42e59257cb3eaad671a5c53ca36)
      was reduced from around 19 seconds to around 15 seconds using these
      changes.
      905f8d76
    • A
      e4027e40
    • D
      Add commit stats to commit api response · a4bb9993
      dixpac 提交于
      a4bb9993
    • L
      Remove extra entries from auto-merge accident · bac99f90
      Lin Jen-Shin 提交于
      bac99f90
    • S
      Cache the commit author in RequestStore to avoid extra lookups in PostReceive · 8a9fc2b6
      Stan Hu 提交于
      In a PostReceive task with 697 commits (8.9 RC1 -> RC8), looking up
      the commit author takes about 10% of the time. Caching this information
      in RequestStore saves a few seconds from the overall processing time.
      
      Improves #18663
      8a9fc2b6
    • D
      Update CHANGELOG · 6dfaf4fe
      Douglas Barbosa Alexandre 提交于
      6dfaf4fe
  5. 27 7月, 2016 14 次提交
  6. 26 7月, 2016 8 次提交