1. 10 Mar, 2016 4 commits
    • Yorick Peterse's avatar
      Optimize Project#ci_service(s) · f2992cf3
      Yorick Peterse authored
      The method Project#ci_services would load all services into memory
      (including _all_ their columns) and then use Enumerable#select to reduce
      the list. Project#ci_service in turn would further reduce this list down
      to just 1 Service instance.
      
      Instead of doing all this in Ruby we can just offload the work to the
      database, reducing the amount of time spent in these methods. These
      changes reduce the time of the first call to Project#ci_services from
      around 240 ms to around 10 ms, though the final timings will vary based
      on database load. Because Project#ci_service is memoized there's no
      further overhead introduced by using a database query.
      
      Fixes gitlab-org/gitlab-ce#14186
      f2992cf3
    • Robert Speicher's avatar
      Merge branch 'issue-referenced-merge-requests-specs' into 'master' · 491ac7ce
      Robert Speicher authored
      Added specs for Issue#referenced_merge_requests
      
      Added these while looking into https://gitlab.com/gitlab-org/gitlab-ce/issues/13651.
      
      See merge request !3125
      491ac7ce
    • Yorick Peterse's avatar
      e32726c6
    • Jacob Schatz's avatar
      Merge branch 'markdown_preview_shortcut' into 'master' · 60d0a20b
      Jacob Schatz authored
      Add shortcut to toggle markdown preview
      
      Allow to toggle markdown preview with shortcut `ctrl+shift+p` (`cmd+shift+p` on OSX).
      
      - If the user is focused on a md textarea, `ctrl-shift-p` will show the preview, otherwise native browser event is fired
      - The textarea is re-focused after disabling the preview tab
      - Results of markdown render is cached for fast toggles
      
      I'm on linux, so if someone can test it on OS X, it would be great!
      
      Closes #14038
      
      See merge request !3111
      60d0a20b
  2. 09 Mar, 2016 35 commits
  3. 08 Mar, 2016 1 commit