Skip to content
Snippets Groups Projects
  1. Apr 17, 2018
  2. Apr 12, 2018
    • Jan Provaznik's avatar
      Fix reference filters in group context · 3e831453
      Jan Provaznik authored
      Since !18150 abstract reference filter supports also `group`
      as a resource parent (not only `project`). Some reference filters,
      which inherit from abstract filter, depend on parent being `project`
      when checking a reference.
      
      This patch adds explicit check of parent class to the given filters.
      3e831453
  3. Apr 11, 2018
    • 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.
      Unverified
      daad7144
  4. Apr 06, 2018
  5. Apr 05, 2018
  6. Apr 04, 2018
  7. Apr 02, 2018
  8. Mar 28, 2018
    • Sean McGivern's avatar
      Fix auto-linking with escaped HTML entities · 3a43cf42
      Sean McGivern authored
      We displayed the correct text as the link text (without double-encoding), but
      didn't do the same for the actual link target, so any link containing an
      ampersand would break when auto-linked.
      3a43cf42
  9. Mar 23, 2018
  10. Mar 20, 2018
  11. Mar 11, 2018
  12. Mar 07, 2018
  13. Mar 05, 2018
  14. Mar 02, 2018
    • Sean McGivern's avatar
      Match Rinku's behaviour for closing punctuation in links · cb55bc3c
      Sean McGivern authored
      Rinku 2.0.0 (the version we use) will remove the last character of a link if
      it's a closing part of a punctuation pair (different types of parentheses and
      quotes), unless both of the below are true:
      
      1. The matching pair has different start and end characters.
      2. There are equal numbers of both in the matched string (they don't have to be
         balanced).
      cb55bc3c
  15. Feb 27, 2018
  16. Feb 22, 2018
  17. Feb 21, 2018
  18. Feb 15, 2018
  19. Feb 09, 2018
  20. Feb 02, 2018
  21. Feb 01, 2018
  22. Jan 31, 2018
  23. Jan 29, 2018
  24. Jan 18, 2018
  25. Jan 16, 2018
  26. Jan 11, 2018
  27. Jan 05, 2018
  28. Dec 23, 2017
    • Stan Hu's avatar
      Gracefully handle garbled URIs in Markdown · 0faf772b
      Stan Hu authored
      There are certain inputs that look like valid URIs that are accepted by URI
      but not Addressable::URI. Handle the case where the latter fails.
      
      Closes #41442
      0faf772b
  29. Dec 22, 2017
  30. Dec 08, 2017
    • Jan Provaznik's avatar
      Use prefix for TableOfContents filter hrefs · 3e83d9f7
      Jan Provaznik authored
      TableOfContents filter generates hrefs for each header in markdown,
      if the header text consists from digits and redacted symbols only,
      e.g. "123" or "1.0 then the auto-generated href has the same format
      as issue references.
      
      If the generated id contains only digits, then 'anchor-' prefix is
      prepended to the id.
      
      Closes #38473
      3e83d9f7
  31. Dec 07, 2017
  32. Dec 06, 2017
Loading