1. 10 Oct, 2016 4 commits
    • Yorick Peterse's avatar
      Precalculate trending projects · 237c8f66
      Yorick Peterse authored
      This commit introduces a Sidekiq worker that precalculates the list of
      trending projects on a daily basis. The resulting set is stored in a
      database table that is then queried by Project.trending.
      
      This setup means that Unicorn workers no longer _may_ have to calculate
      the list of trending projects. Furthermore it supports filtering without
      any complex caching mechanisms.
      
      The data in the "trending_projects" table is inserted in the same order
      as the project ranking. This means that getting the projects in the
      correct order is simply a matter of:
      
          SELECT projects.*
          FROM projects
          INNER JOIN trending_projects ON trending_projects.project_id = projects.id
          ORDER BY trending_projects.id ASC;
      
      Such a query will only take a few milliseconds at most (as measured on
      GitLab.com), opposed to a few seconds for the query used for calculating
      the project ranks.
      
      The migration in this commit does not require downtime and takes care of
      populating an initial list of trending projects.
      237c8f66
    • Robert Speicher's avatar
      Merge branch 'gjlaubenstein/gitlab-ce-21712-change-issue-show-html-title' · 434d98b2
      Robert Speicher authored
      reword title for issues_controller#show and issues_controller#edit
      
      Closes #21712
      
      See merge request !6503
      434d98b2
    • Rémy Coutable's avatar
      Merge branch 'brennanroberts/gitlab-ce-22872-prevent-default-search-autocomplete' · b6a83be6
      Rémy Coutable authored
      Prevent conflict b/w search field and its dropdown
      
      What does this MR do?
      
      Stops the global search form's default "action" from fighting with
      dropdown items when using the keyboard to navigate the dropdown.
      `e.preventDefault()` is now called on the enter key when a dropdown item
      is already selected.
      
      Closes #22872
      
      See merge request !6643
      b6a83be6
    • Brennan Roberts's avatar
      Prevent conflict b/w search field and its dropdown · f3c55164
      Brennan Roberts authored
      Stop the global search form's default "action" from fighting with
      dropdown items when using the keyboard to navigate the dropdown.
      `e.preventDefault()` is now called on the enter key when a dropdown item
      is already selected.
      Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
      f3c55164
  2. 09 Oct, 2016 1 commit
  3. 08 Oct, 2016 4 commits
  4. 07 Oct, 2016 31 commits