An error occurred fetching the project authors.
  1. 13 Sep, 2018 1 commit
    • Brett Walker's avatar
      Remove images in 'first_line_in_markdown' · 635d9012
      Brett Walker authored
      By default, we now strip images in the 'first_line_in_markdown'
      method.  This keeps images from being displayed in the
      one-liner of both todo and project activity panels.
      
      Although not currently used, we allow images to be preserved
      with the allow_images: true options.
      635d9012
  2. 07 Sep, 2018 1 commit
  3. 05 Sep, 2018 4 commits
  4. 06 Jul, 2018 1 commit
  5. 11 Apr, 2018 1 commit
    • Yorick Peterse's avatar
      Support Markdown rendering using multiple projects · daad7144
      Yorick Peterse authored
      This refactors the Markdown pipeline so it supports the rendering of
      multiple documents that may belong to different projects. An example of
      where this happens is when displaying the event feed of a group. In this
      case we retrieve events for all projects in the group. Previously we
      would group events per project and render these chunks separately, but
      this would result in many SQL queries being executed. By extending the
      Markdown pipeline to support this out of the box we can drastically
      reduce the number of SQL queries.
      
      To achieve this we introduce a new object to the pipeline:
      Banzai::RenderContext. This object simply wraps two other objects: an
      optional Project instance, and an optional User instance. On its own
      this wouldn't be very helpful, but a RenderContext can also be used to
      associate HTML documents with specific Project instances. This work is
      done in Banzai::ObjectRenderer and allows us to reuse as many queries
      (and results) as possible.
      daad7144
  6. 11 Jan, 2018 1 commit
  7. 06 Dec, 2017 1 commit
  8. 04 Dec, 2017 1 commit
  9. 19 Nov, 2017 1 commit
  10. 16 Nov, 2017 1 commit
  11. 06 Nov, 2017 2 commits
  12. 06 Sep, 2017 1 commit
  13. 18 May, 2017 1 commit
    • Toon Claes's avatar
      Fix ProjectCacheWorker for plain READMEs · abc82a25
      Toon Claes authored
      The ProjectCacheWorker refreshes cache periodically, but it runs outside Rails
      context. So include the ActionView helpers so the `content_tag` method is
      available.
      abc82a25
  14. 10 May, 2017 2 commits
  15. 28 Apr, 2017 1 commit
  16. 27 Apr, 2017 9 commits
  17. 26 Apr, 2017 1 commit
  18. 14 Mar, 2017 2 commits
  19. 03 Jan, 2017 1 commit
  20. 02 Dec, 2016 1 commit
  21. 07 Oct, 2016 2 commits
    • Nick Thomas's avatar
      Enable CacheMarkdownField for the remaining models · 99205515
      Nick Thomas authored
      This commit alters views for the following models to use the markdown cache if
      present:
      
      * AbuseReport
      * Appearance
      * ApplicationSetting
      * BroadcastMessage
      * Group
      * Issue
      * Label
      * MergeRequest
      * Milestone
      * Project
      
      At the same time, calls to `escape_once` have been moved into the `single_line`
      Banzai pipeline, so they can't be missed out by accident and the work is done
      at save, rather than render, time.
      99205515
    • Nick Thomas's avatar
      Add markdown cache columns to the database, but don't use them yet · e94cd6fd
      Nick Thomas authored
      This commit adds a number of _html columns and, with the exception of Note,
      starts updating them whenever the content of their partner fields changes.
      
      Note has a collision with the note_html attr_accessor; that will be fixed later
      
      A background worker for clearing these cache columns is also introduced - use
      `rake cache:clear` to set it off. You can clear the database or Redis caches
      separately by running `rake cache:clear:db` or `rake cache:clear:redis`,
      respectively.
      e94cd6fd
  22. 21 Jun, 2016 1 commit
    • Yorick Peterse's avatar
      Move pre_process into render_result · d9a4ca59
      Yorick Peterse authored
      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
  23. 17 Jun, 2016 1 commit
  24. 09 Jun, 2016 1 commit
    • Timothy Andrew's avatar
      Hook up the updated `WikiLinkFilter` to the wiki controllers. · e6b1d166
      Timothy Andrew authored
      - Need to pass in a `page_slug` to the filter, so it can rewrite based
        on the current page (all links are rewritten to the level of the app root).
      - The earlier `markdown_preview` endpoint was at the level of the wiki.
        We need to know the current page (for rewriting, as above), so this
        commit moves the endpoint to the level of a wiki page.
      - Fix all tests
      e6b1d166
  25. 03 Jun, 2016 1 commit