1. 18 2月, 2016 1 次提交
    • Y
      Only set autocrlf when creating/updating files · c475b171
      Yorick Peterse 提交于
      Setting the "autocrlf" Git option is an overkill since it's rarely
      actually needed. More importantly, it has quite the impact on
      performance (see gitlab-org/gitlab-ce#13457 for more information).
      
      By setting "autocrlf" when creating or updating files we guarantee the
      option is always set properly when we actually need it _without_
      introducing overhead for requests that have nothing to do with this
      option.
      
      Fixes gitlab-org/gitlab-ce#13457
      c475b171
  2. 17 2月, 2016 1 次提交
  3. 12 2月, 2016 1 次提交
    • K
      Add new data to project in push, issue, merge-request and note webhooks data · b123171d
      Kirill Zaitsev 提交于
      - Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`,
        `path_with_namespace` and `default_branch` in `project` in push, issue,
        merge-request and note webhooks data
      - Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in
        favor of `git_http_url` in `project` for push, issue, merge-request and
        note webhooks data
      - Deprecate the `repository` key in push, issue, merge-request and
        note webhooks data, use `project` instead
      b123171d
  4. 10 2月, 2016 3 次提交
    • B
      Add assignee data to Issuables' hook_data · d146d9fd
      Bram Daams 提交于
      d146d9fd
    • R
      Validate email addresses using Devise.email_regexp · b34963bc
      Rémy Coutable 提交于
      Also:
      - Get rid of legacy :strict_mode
      - Get rid of custom :email validator
      - Add some shared examples to spec emails validation
      b34963bc
    • Y
      Smarter flushing of branch statistics caches · 2ce0d063
      Yorick Peterse 提交于
      Instead of flushing the behind/ahead counts for all branches upon every
      push we now only flush the cache of branches that actually need to have
      these statistics recalculated. There are now basically 2 scenarios and
      their effects:
      
      1. A user pushes a commit to the default branch, this results in the
         cache being flushed for all branches.
      2. A user pushes to a non default branch, this results in _only_ the
         cache for that branch being flushed.
      
      The existing code (Repository#expire_cache) remains backwards compatible
      with the previous behaviour, the new behaviour is only applied when a
      branch name is passed as an argument. This ensures that when for example
      a project is deleted the cache for all branches is flushed.
      2ce0d063
  5. 09 2月, 2016 1 次提交
  6. 08 2月, 2016 3 次提交
  7. 04 2月, 2016 1 次提交
  8. 02 2月, 2016 3 次提交
  9. 01 2月, 2016 1 次提交
    • Y
      Optimize fetching issues closed by a merge request · 99492d6b
      Yorick Peterse 提交于
      Instead of running ClosingIssueExtractor for every commit in a merge
      request we can gather all the commit messages (and the merge request
      description), concatenate all this together and then run
      ClosingIssueExtractor only once.
      
      The result of this is that MergeRequest#closes_issues is now between
      3.5x and 4x faster than the old setup. Using a merge request with 10
      commits (each referencing a number of issues to close) this reduced the
      call duration from around 200 milliseconds to around 50 milliseconds.
      
      As a result of these changes the Jira related tests for
      MergeRequest#closes_issues have been removed. These tests stubbed
      Commit#closes_issues meaning that the only code that was really tested
      was the call to Array#uniq to filter out duplicate issues. As this code
      is no longer used (nor present) the corresponding tests were removed.
      
      Related: gitlab-org/gitlab-ce#12419
      99492d6b
  10. 30 1月, 2016 1 次提交
  11. 29 1月, 2016 1 次提交
  12. 28 1月, 2016 2 次提交
  13. 27 1月, 2016 2 次提交
    • Y
      Use Atom update times of the first event · de7c9c7a
      Yorick Peterse 提交于
      By simply loading the first event from the already sorted set we save
      ourselves extra (slow) queries just to get the latest update timestamp.
      This removes the need for Event.latest_update_time and significantly
      reduces the time needed to build an Atom feed.
      
      Fixes gitlab-org/gitlab-ce#12415
      de7c9c7a
    • B
      Update ExternalIssue regex for JIRA integration · 4be65c32
      Blake Hitchcock 提交于
      The pattern in the `::reference_pattern` class method in the
      ExternalIssue model does not match all valid forms of JIRA project
      names. I have updated the regex to match JIRA project names with numbers
      and underscores. More information on valid JIRA project names can be
      found here:
      https://confluence.atlassian.com/jira/changing-the-project-key-format-192534.html
      
      * The first character must be a letter,
      * All letters used in the project key must be from the Modern Roman Alphabet and upper case, and
      * Only letters, numbers or the underscore character can be used.
      4be65c32
  14. 25 1月, 2016 2 次提交
  15. 22 1月, 2016 1 次提交
  16. 21 1月, 2016 1 次提交
  17. 19 1月, 2016 1 次提交
  18. 17 1月, 2016 1 次提交
  19. 15 1月, 2016 1 次提交
  20. 14 1月, 2016 11 次提交
  21. 13 1月, 2016 1 次提交