1. 01 7月, 2016 2 次提交
  2. 30 6月, 2016 8 次提交
  3. 29 6月, 2016 3 次提交
  4. 28 6月, 2016 12 次提交
  5. 27 6月, 2016 2 次提交
  6. 24 6月, 2016 3 次提交
    • 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
    • J
      Fix tmp file being deleted after the request plus some cleanup and improved... · 46b89a27
      James Lopez 提交于
      Fix tmp file being deleted after the request plus some cleanup and improved erroring for this situation
      46b89a27
    • M
      gitlab-org/gitlab-ce#17818 - add api call for issues by group · 6587feba
      Marc Siegfriedt 提交于
      rely only on IssuesFinder
      docs and changelog
      6587feba
  7. 23 6月, 2016 2 次提交
  8. 22 6月, 2016 3 次提交
  9. 21 6月, 2016 5 次提交
    • Y
      Move pre_process into render_result · d9a4ca59
      Yorick Peterse 提交于
      The method Banzai::Renderer.pre_process would always be called,
      regardless of whether the Markdown to render was already cached or not.
      In cache the document _was_ cached the output of the pre-processing
      pipeline was ignored resulting in it doing nothing but wasting CPU
      cycles.
      
      This commit moves Banzai::Renderer.pre_process into
      Banzai::Renderer.render_result so that it's _only_ used when needed.
      d9a4ca59
    • 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
    • G
      Fix builds API response not including commit data · dd08202a
      Grzegorz Bizon 提交于
      dd08202a
    • K
      Show proper image ID on registry page · 70606bf0
      Kamil Trzcinski 提交于
      70606bf0
    • K
      Add test coverage to LFS fetching · 6bc22d95
      Kamil Trzcinski 提交于
      6bc22d95