BigW Consortium Gitlab

  1. 12 Nov, 2015 1 commit
    • Avoid render edit_form in each notes. · 19740871
      Jason Lee authored
      Use RJS to render edit note feature.
      
      Before:
      
      ```
      Rendered projects/notes/_note.html.haml (27.9ms)
      Rendered projects/_zen.html.haml (0.3ms)
      Rendered projects/notes/_hints.html.haml (0.7ms)
      Rendered projects/_md_preview.html.haml (3.9ms)
      Rendered projects/notes/_edit_form.html.haml (6.9ms)
      Rendered projects/notes/_note.html.haml (17.7ms)
      Rendered projects/_zen.html.haml (0.3ms)
      Rendered projects/notes/_hints.html.haml (0.6ms)
      Rendered projects/_md_preview.html.haml (3.4ms)
      Rendered projects/notes/_edit_form.html.haml (7.0ms)
      ```
      
      After:
      
      ```
      Rendered projects/notes/_note.html.haml (13.8ms)
      Rendered projects/notes/_note.html.haml (7.1ms)
      Rendered projects/notes/_note.html.haml (9.5ms)
      Rendered projects/notes/_note.html.haml (8.5ms)
      ```
      
      This change reduce at least 6ms * N ('N' - number of notes).
  2. 10 Nov, 2015 2 commits
  3. 09 Nov, 2015 1 commit
    • Added Sherlock, a custom profiling tool for GitLab · dec3e4ce
      Yorick Peterse authored
      Sherlock will be a new GitLab specific tool for measuring the
      performance of Rails requests (and SideKiq jobs at some point). Some of
      the things that are currently tracked:
      
      * SQL queries along with their timings, backtraces and query plans
        (using "EXPLAIN ANALYZE" for PostgreSQL and regular "EXPLAIN" for
        MySQL)
      * Timings of application files (including views) on a per line basis
      * Some meta data such as the request method, path, total duration, etc
      
      More tracking (e.g. Rugged or gitlab-shell timings) might be added in
      the future.
      
      Sherlock will replace any existing tools we have used so far (e.g.
      active_record_query_trace and rack-mini-profiler), hence the
      corresponding Gems have been removed from the Gemfile.
      
      Sherlock can be enabled by starting Rails as following:
      
          ENABLE_SHERLOCK=1 bundle exec rails s
      
      Recorded transactions can be found at `/sherlock/transactions`.
  4. 07 Nov, 2015 1 commit
  5. 06 Nov, 2015 3 commits
  6. 05 Nov, 2015 5 commits
  7. 04 Nov, 2015 5 commits
  8. 03 Nov, 2015 5 commits
  9. 02 Nov, 2015 1 commit
  10. 31 Oct, 2015 1 commit
    • Persist blob editor's value on submit, not on click · 3b0039f6
      Robert Speicher authored
      Prior, the value of the Ace editor was only being persisted if the user
      physically clicked the submit button, which the "quick submit" behavior
      doesn't do.
      
      Now the value will be properly transferred before any form is submitted.
  11. 30 Oct, 2015 1 commit
  12. 29 Oct, 2015 2 commits
    • Add ability to create directories in the editor · 3be9d2c4
      Ben Ford authored
      Simply type a name with a `/` directory separator and new directories
      will be created. This does not do the fancy UI work that github.com
      does, but it will get the job done.
      
      I could not find tests for file creation, so I didn't add a test for
      this slight behaviour modification. I did test directory traversals
      though, using both absolute paths like `/tmp/foo.txt` and relative paths
      like `../../foo.txt`. Neither case escaped the repository, though
      attempting to traverse with a relative path resulted in a 500 error that
      did not affect application stability upon reload.
    • refactor login as to be impersonation with better login/logout · 3bb626f9
      James Newton authored
      Modifies the existing "login as" feature to be called impersonation, as
      well as keeping track of who is impersonating to revert back to that
      user without having to log out.
  13. 23 Oct, 2015 4 commits
  14. 22 Oct, 2015 7 commits
  15. 21 Oct, 2015 1 commit