1. 30 11月, 2016 1 次提交
    • L
      Remove JSX/React eslint plugins. · c145413d
      Luke "Jared" Bennett 提交于
      Change airbnb eslint config package to `eslint-config-airbnb-base` and update plugins.
      
      Change `airbnb` to `airbnb-base` for .eslintrc `extends` value.
      
      Added changelog entry
      
      Made sure all plugins and envs are set
      
      Corrected new failing specs
      c145413d
  2. 29 11月, 2016 19 次提交
  3. 28 11月, 2016 5 次提交
  4. 26 11月, 2016 6 次提交
  5. 25 11月, 2016 8 次提交
    • 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
    • H
      Add new template to handle both commit & mr notes · 24070bac
      hhoopes 提交于
      Currently comments on commits and merge requests do not require merge request- or commit-specific information, but can use the same template. Rather than change the method which calls the template, I opted to keep the templates separate and create a new template to highlight their identicality, while preserving the option to distinguish them from each other in the future.
      
      Also removed some of the inconsistencies between text and html email versions.
      
      Still needed is a text-only version of git diffs and testing.
      24070bac
    • H
      Add diff hunks to notification emails on MR · 38ed96e9
      hhoopes 提交于
      Added diff hunks to notification emails of messages on merge requests. This
      provides code context to the note. Uses existing template for formatting
      a diff for email (from repository push notifications).
      38ed96e9
    • 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
    • L
      60cd47bc
    • P
      Fixed issue boards scrolling with a lot of lists & issues · 141b4d28
      Phil Hughes 提交于
      When a board has a lot of lists & issues scrolling stops the user from moving the issue to the lsat list (or any list not on screen). This changes that by making the scrollable element the board-list element. This will need re-thinking when sorting in lists is possible.
      141b4d28
  6. 24 11月, 2016 1 次提交