Skip to content
Snippets Groups Projects
  1. Oct 13, 2017
  2. Oct 07, 2017
  3. Sep 21, 2017
  4. Aug 24, 2017
    • Sean McGivern's avatar
      Show un-highlighted diffs when blobs are the same · e8525e10
      Sean McGivern authored
      For some old merge requests, we don't have enough information to figure out the
      old blob and the new blob for the file. This means that we can't highlight the
      diff correctly, but we can still display it without highlighting.
      e8525e10
  5. Aug 22, 2017
    • Sean McGivern's avatar
      Always return a simple diff viewer · b0f09406
      Sean McGivern authored
      We didn't have a fallback case before, because we believed the conditions were
      exhaustive. They weren't, so we can always fallback to not previewing.
      b0f09406
  6. Jul 31, 2017
  7. Jun 14, 2017
  8. Jun 08, 2017
  9. May 23, 2017
  10. Nov 28, 2016
  11. Nov 25, 2016
    • hhoopes's avatar
      Add keyword arguments to truncated_diff method · a761c59a
      hhoopes authored
      * Added keyword arguments to truncated_diff_lines method to allow for using highlighting or not (html templates vs. text)
      * Tweaked templates for consistency and format appropriateness
      a761c59a
    • hhoopes's avatar
      Change diff highlight/truncate for reusability · f928dba9
      hhoopes authored
      Previously the `truncated_diff_lines` method for outputting a discussion diff took in already highlighted lines, which meant it wasn't reuseable for truncating ANY lines. In the way it was used, it also meant that for any email truncation, the whole diff was being highlighted before being truncated, meaning wasted time highlighting lines that wouldn't even be used (granted, they were being memoized, so perhaps this wasn't that great of an issue). I refactored truncation away from highlighting, in order to truncate formatted diffs for text templates in email, using `>`s to designate each line, but otherwise retaining the parsing already done to create `diff_lines`.
      
      Additionally, while notes on merge requests or commits had already been tested, there was no existing test for notes on a diff on an MR or commit. Added mailer tests for such, and a unit test for truncating diff lines.
      f928dba9
  12. Nov 14, 2016
  13. Nov 10, 2016
  14. Oct 17, 2016
  15. Aug 03, 2016
  16. Jul 18, 2016
  17. Jul 08, 2016
  18. Jul 06, 2016
  19. Mar 18, 2016
  20. Mar 03, 2016
  21. Jan 20, 2016
  22. Jan 14, 2016
  23. Jan 08, 2016
  24. Dec 31, 2015
  25. Dec 30, 2015
  26. Dec 15, 2015
Loading