1. 01 12月, 2016 4 次提交
  2. 29 11月, 2016 4 次提交
  3. 28 11月, 2016 2 次提交
  4. 25 11月, 2016 4 次提交
    • H
      Add keyword arguments to truncated_diff method · a761c59a
      hhoopes 提交于
      * 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
    • H
      Change diff highlight/truncate for reusability · f928dba9
      hhoopes 提交于
      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
    • Y
      Removed data-user-is view code · 0ba03d7e
      Yorick Peterse 提交于
      With events no longer being cached this is no longer needed.
      0ba03d7e
    • Y
      Refresh project authorizations using a Redis lease · 92b2c74c
      Yorick Peterse 提交于
      When I proposed using serializable transactions I was hoping we would be
      able to refresh data of individual users concurrently. Unfortunately
      upon closer inspection it was revealed this was not the case. This could
      result in a lot of queries failing due to serialization errors,
      overloading the database in the process (given enough workers trying to
      update the target table).
      
      To work around this we're now using a Redis lease that is cancelled upon
      completion. This ensures we can update the data of different users
      concurrently without overloading the database.
      
      The code will try to obtain the lease until it succeeds, waiting at
      least 1 second between retries. This is necessary as we may otherwise
      end up _not_ updating the data which is not an option.
      92b2c74c
  5. 24 11月, 2016 1 次提交
  6. 23 11月, 2016 7 次提交
  7. 22 11月, 2016 5 次提交
  8. 21 11月, 2016 10 次提交
  9. 19 11月, 2016 3 次提交