Read about our upcoming Code of Conduct on this issue

  1. 10 Oct, 2016 1 commit
    • Yorick Peterse's avatar
      Precalculate trending projects · 8d729570767c
      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.
      8d729570767c
  2. 03 Oct, 2016 1 commit
  3. 07 Sep, 2016 2 commits
    • Olaf Tomalka's avatar
      Limited amount of pruned Event rows per run · a267dee7f44e
      Olaf Tomalka authored
      Old deployments of Gitlab might have a big number of old events to be
      deleted. Such numbers cause the worker to timeout.
      I've limited the amount of rows that should be destroyed at once to
      10000, and increased how often pruning shall take place to 4 times a
      day.
      a267dee7f44e
    • Olaf Tomalka's avatar
      Added cron to prune events older than 12 months. · 0ceb674afd60
      Olaf Tomalka authored
      Since contribution calendar shows only 12 months of activity,
      events older than that time are not visible anywhere and can be
      safely pruned saving big amount of database storage.
      
      Fixes #21164
      0ceb674afd60
  4. 25 Aug, 2016 1 commit
  5. 19 Aug, 2016 1 commit
  6. 18 Aug, 2016 1 commit
  7. 04 Aug, 2016 2 commits
  8. 26 Jul, 2016 1 commit
  9. 21 Jul, 2016 1 commit
  10. 18 Jul, 2016 1 commit
  11. 01 Jul, 2016 1 commit
  12. 30 Jun, 2016 1 commit
  13. 21 Jun, 2016 1 commit
  14. 16 Jun, 2016 2 commits
  15. 15 Jun, 2016 1 commit
  16. 14 Jun, 2016 1 commit
  17. 13 Jun, 2016 3 commits
  18. 03 Jun, 2016 2 commits
  19. 30 May, 2016 1 commit
  20. 17 May, 2016 1 commit
  21. 16 May, 2016 3 commits
  22. 14 May, 2016 1 commit
  23. 13 May, 2016 1 commit
  24. 12 May, 2016 1 commit
  25. 10 May, 2016 1 commit
    • Rémy Coutable's avatar
      Fix a few places where autoloading would fail · a833a61e03c8
      Rémy Coutable authored
      
      
      - Fix naming of API::CommitStatuses
      - Ensure we use require_dependency instead of require
      - Ensure the namespace is right in lib/api/api.rb, otherwise, we
        might require Grape::API::Helpers which defines the `#params` method.
        This is to avoid requiring a file multiple times and getting an "Already
        initialized constant" error.
      Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
      a833a61e03c8
  26. 09 May, 2016 2 commits
  27. 29 Apr, 2016 2 commits
  28. 27 Apr, 2016 2 commits
  29. 26 Apr, 2016 1 commit