BigW Consortium Gitlab

  1. 09 Dec, 2016 1 commit
  2. 06 Dec, 2016 1 commit
  3. 05 Dec, 2016 1 commit
    • Fix Archived project merge requests add to group's Merge Requests · 4d26ab28
      Jacopo authored
      counter
      
      This is done by:
       - Extending the IssuableFinder adding the non_archived option to the params
       - Overriding the #filter_params in the MergeRequestsAction
       - Passing the non_archived param in the nav/_group.html.haml navbar
         partial from the groups/merge_requests.html.haml
  4. 01 Dec, 2016 1 commit
    • Count all issuable states at once · 8ee07280
      Sean McGivern authored
      Instead of doing n queries for n states, do one query to get all the
      counts grouped by state, and figure out what the count is for each state
      is from that. We can still cache the individual counts (it can't hurt),
      but this will help with initial load.
      
      Note that the `opened` scope on `Issuable` includes the `opened` and
      `reopened` states, which is why there's a special case.
  5. 29 Nov, 2016 2 commits
  6. 26 Nov, 2016 1 commit
  7. 16 Nov, 2016 1 commit
    • Limit labels returned for a specific project as an administrator · c4447415
      Robert Speicher authored
      Prior, an administrator viewing a project's Labels page would see _all_
      labels from every project they had access to, rather than only the
      labels of that specific project (if any).
      
      This was not an information disclosure, as admins have access to
      everything, but it was a performance issue.
  8. 09 Nov, 2016 1 commit
  9. 01 Nov, 2016 2 commits
  10. 28 Oct, 2016 1 commit
  11. 25 Oct, 2016 5 commits
  12. 19 Oct, 2016 12 commits
  13. 10 Oct, 2016 1 commit
    • 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.
  14. 05 Oct, 2016 1 commit
    • Refactor TrendingProjectsFinder to support caching · 154253ca
      Yorick Peterse authored
      == Public Projects
      
      This finder class now _only_ returns public projects. Previously this
      finder would also return private and internal projects. Including these
      projects makes caching data much harder and less efficient. Meanwhile
      including this data isn't very useful as very few users would be
      interested in seeing projects they have access to as trending. That is,
      the feature is more useful when you want to see what _other_ popular
      projects there are.
      
      == Caching
      
      The data returned by TrendingProjectsFinder is now cached for a day
      based on the number of months the data should be restricted to. The
      cache is not flushed explicitly, instead it's rebuilt whenever it
      expires.
      
      == Timings
      
      To measure the impact I changed the finder code to use the last 24
      months instead of the last month. I then executed and measured 10
      requests to the explore page. On the current "master" branch (commit
      88fa5916) this would take an average of
      2.43 seconds. Using the changes of this commit this was reduced to
      around 1.7 seconds.
      
      Fixes gitlab-org/gitlab-ce#22164
  15. 30 Sep, 2016 1 commit
  16. 28 Sep, 2016 3 commits
  17. 20 Sep, 2016 1 commit
  18. 07 Sep, 2016 1 commit
  19. 31 Aug, 2016 1 commit
  20. 30 Aug, 2016 1 commit
  21. 19 Aug, 2016 1 commit