BigW Consortium Gitlab

  1. 10 Oct, 2016 2 commits
  2. 07 Oct, 2016 8 commits
    • Optimize the `award_user_list` helper spec · 328ca8c4
      Robert Speicher authored
      According to
      https://gitlab.com/gitlab-org/gitlab-ce/issues/23034#note_16586657, each
      test for this helper generated 1,833 queries.
      
      Now we only generate stubbed records, and only as many as we need for
      each test.
      
      This also corrects a slight logic bug in the helper itself. When the
      number of awards was greater than the limit (9 by default), _and_ the
      current user was one of them, we actually included 10 names, including
      "You", plus the remaining count. Now we return the correct number
      regardless.
    • ExpireBuildArtifactsWorker query builds table without ordering enqueuing one job… · 9afb2dac
      Paco Guzman authored
      ExpireBuildArtifactsWorker query builds table without ordering enqueuing one job per build to cleanup
      
      We use Sidekiq::Client.push_bulk to avoid Redis round trips
    • Fix Event#reset_project_activity updates · 16626409
      Stan Hu authored
      !6678 removed the lease from Event#reset_project_activity, but it wasn't
      actually updating the project's last_activity_at timestamp properly.
      The WHERE clause would always return no matching projects. The spec
      passed occasionally because the created_at timestamp was automatically
      set to last_activity_at.
    • Update user whitelist reject message · 57e72cba
      dev-chris authored
        + Don't expose all whitelisted domains
    • Enable CacheMarkdownField for the remaining models · 99205515
      Nick Thomas authored
      This commit alters views for the following models to use the markdown cache if
      present:
      
      * AbuseReport
      * Appearance
      * ApplicationSetting
      * BroadcastMessage
      * Group
      * Issue
      * Label
      * MergeRequest
      * Milestone
      * Project
      
      At the same time, calls to `escape_once` have been moved into the `single_line`
      Banzai pipeline, so they can't be missed out by accident and the work is done
      at save, rather than render, time.
    • Make search results use the markdown cache columns, treating them consistently · dd159a75
      Nick Thomas authored
      Truncato is introduced as a dependency to intelligently shorten the rendered
      HTML to 200 characters; the previous approach could have resulted in invalid
      HTML being rendered.
    • Use CacheMarkdownField for notes · 109816c4
      Nick Thomas authored
    • Add markdown cache columns to the database, but don't use them yet · e94cd6fd
      Nick Thomas authored
      This commit adds a number of _html columns and, with the exception of Note,
      starts updating them whenever the content of their partner fields changes.
      
      Note has a collision with the note_html attr_accessor; that will be fixed later
      
      A background worker for clearing these cache columns is also introduced - use
      `rake cache:clear` to set it off. You can clear the database or Redis caches
      separately by running `rake cache:clear:db` or `rake cache:clear:redis`,
      respectively.
  3. 06 Oct, 2016 30 commits