1. 02 7月, 2016 2 次提交
  2. 01 7月, 2016 2 次提交
    • J
      use has_many relationship with events · f29c3047
      James Lopez 提交于
      f29c3047
    • E
      Import from Github using Personal Access Tokens. · 12aa1f89
      Eric K Idema 提交于
      This stands as an alternative to using OAuth to access a user's Github
      repositories.  This is setup in such a way that it can be used without OAuth
      configuration.
      
      From a UI perspective, the how to import modal has been replaced by a full
      page, which includes a form for posting a personal access token back to the
      Import::GithubController.
      
      If the user has logged in via GitHub, skip the Personal Access Token and go
      directly to Github for an access token via OAuth.
      12aa1f89
  3. 30 6月, 2016 6 次提交
  4. 29 6月, 2016 4 次提交
  5. 28 6月, 2016 7 次提交
  6. 27 6月, 2016 2 次提交
  7. 24 6月, 2016 1 次提交
    • Y
      Support for rendering/redacting multiple documents · d470f3d1
      Yorick Peterse 提交于
      This commit changes the way certain documents are rendered (currently
      only Notes) and how documents are redacted. Previously both rendering
      and redacting would run on a per document basis. The result of this was
      that for every document we'd have to run countless queries just to
      figure out if we could display a set of links or not.
      
      This commit changes things around so that redacting Markdown documents
      is no longer tied into the html-pipeline Gem. This in turn allows it to
      redact multiple documents in a single pass, thus reducing the number of
      queries needed.
      
      In turn rendering issue/merge request notes has been adjusted to take
      advantage of this new setup. Instead of rendering Markdown somewhere
      deep down in a view the Markdown is rendered and redacted in the
      controller (taking the current user and all that into account). This has
      been done in such a way that the "markdown()" helper method can still be
      used on its own.
      
      This particular commit also paves the way for caching rendered HTML on
      object level. Right now there's an accessor method Note#note_html which
      is used for setting/getting the rendered HTML. Once we cache HTML on row
      level we can simply change this field to be a column and call a "save"
      whenever needed and we're pretty much done.
      d470f3d1
  8. 23 6月, 2016 3 次提交
  9. 22 6月, 2016 1 次提交
    • Y
      Handle external issues in IssueReferenceFilter · ceeba75c
      Yorick Peterse 提交于
      In the past this class would use Project#get_issue to retrieve an issue
      by its ID. This method would automatically determine whether to return
      an Issue or ExternalIssue.
      
      This commit changes IssueReferenceFilter to handle external issues again
      and in a somewhat more explicit manner than before.
      
      Fixes gitlab-org/gitlab-ce#18827
      ceeba75c
  10. 21 6月, 2016 3 次提交
    • A
      Optimize Banzai::Filter::RelativeLinkFilter · ca696175
      Alejandro Rodríguez 提交于
          A lot of git operations were being repeated, for example, to build a url
          you would ask if the path was a Tree, which would call a recursive routine
          in Gitlab::Git::Tree#where, then ask if the path was a Blob, which would
          call a recursive routine at Gitlab::Git::Blob#find, making reference to
          the same git objects several times. Now we call Rugged::Tree#path, which
          allows us to determine the type of the path in one pass.
      
          Some other minor improvement added, like saving commonly used references
          instead of calculating them each time.
      ca696175
    • K
      Add test coverage to LFS fetching · 6bc22d95
      Kamil Trzcinski 提交于
      6bc22d95
    • Z
      Refactor Gitlab::Gitignores · 27bf7ae5
      ZJ van de Weg 提交于
      27bf7ae5
  11. 19 6月, 2016 1 次提交
  12. 18 6月, 2016 3 次提交
    • T
      Fix bug in `WikiLinkFilter`. · 6d169d36
      Timothy Andrew 提交于
      1. An exception would be raised if the filter was called with an invalid
         URI. Mainly because we weren't catching the `Addressable` exception.
      
      2. This commit fixes it and adds a spec for the filter.
      6d169d36
    • Y
      Track method call times/counts as a single metric · be3b8784
      Yorick Peterse 提交于
      Previously we'd create a separate Metric instance for every method call
      that would exceed the method call threshold. This is problematic because
      it doesn't provide us with information to accurately get the _total_
      execution time of a particular method. For example, if the method
      "Foo#bar" was called 4 times with a runtime of ~10 milliseconds we'd end
      up with 4 different Metric instances. If we were to then get the
      average/95th percentile/etc of the timings this would be roughly 10
      milliseconds. However, the _actual_ total time spent in this method
      would be around 40 milliseconds.
      
      To solve this problem we now create a single Metric instance per method.
      This Metric instance contains the _total_ real/CPU time and the call
      count for every instrumented method.
      be3b8784
    • P
      Filter out sensitive parameters of metrics data · 2e552c6b
      Paco Guzman 提交于
      2e552c6b
  13. 17 6月, 2016 5 次提交