BigW Consortium Gitlab

  1. 13 Oct, 2016 1 commit
  2. 11 Oct, 2016 3 commits
  3. 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.
  4. 07 Oct, 2016 1 commit
    • 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.
  5. 05 Oct, 2016 1 commit
  6. 04 Oct, 2016 1 commit
    • Exclude system notes from Project.trending · 706737a0
      Yorick Peterse authored
      Having many system notes isn't really an indication of a project being
      trending. Including these notes would lead to projects with lots of
      commit cross references (for example) showing up in the trending
      projects list.
  7. 28 Sep, 2016 1 commit
    • Allow Member.add_user to handle access requesters · ec0061a9
      Rémy Coutable authored
      Changes include:
      
      - Ensure Member.add_user is not called directly when not necessary
      - New GroupMember.add_users_to_group to have the same abstraction level as for Project
      - Refactor Member.add_user to take a source instead of an array of members
      - Fix Rubocop offenses
      - Always use Project#add_user instead of project.team.add_user
      - Factorize users addition as members in Member.add_users_to_source
      - Make access_level a keyword argument in GroupMember.add_users_to_group and ProjectMember.add_users_to_projects
      - Destroy any requester before adding them as a member
      - Improve the way we handle access requesters in Member.add_user
        Instead of removing the requester and creating a new member,
        we now simply accepts their access request. This way, they will
        receive a "access request granted" email.
      - Fix error that was previously silently ignored
      - Stop raising when access level is invalid in Member, let Rails validation do their work
      Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
  8. 22 Sep, 2016 3 commits
  9. 21 Sep, 2016 3 commits
  10. 15 Sep, 2016 2 commits
  11. 14 Sep, 2016 1 commit
  12. 13 Sep, 2016 2 commits
    • Move pushes_since_gc to Redis · 4e87c023
      Yorick Peterse authored
      This moves tracking of the pushes since the last Git GC from PostgreSQL
      to Redis. This reduces the number of writes on the "projects" table.
      This in turn reduces the vacuuming overhead.
      
      The lease used for incrementing the counter has been removed. This lease
      was mostly put in place to prevent high database load but this isn't
      needed anymore due to the counter now being stored in Redis.
      
      Fixes gitlab-org/gitlab-ce#22125
    • Use a permissions of user to access all dependent projects from CI jobs (this… · 505dc808
      Kamil Trzcinski authored
      Use a permissions of user to access all dependent projects from CI jobs (this also includes a container images, and in future LFS files)
  13. 06 Sep, 2016 1 commit
  14. 01 Sep, 2016 1 commit
  15. 31 Aug, 2016 2 commits
  16. 30 Aug, 2016 3 commits
  17. 26 Aug, 2016 1 commit
  18. 25 Aug, 2016 1 commit
  19. 24 Aug, 2016 1 commit
  20. 20 Aug, 2016 1 commit
  21. 19 Aug, 2016 1 commit
  22. 18 Aug, 2016 1 commit
  23. 17 Aug, 2016 2 commits
  24. 11 Aug, 2016 3 commits
  25. 10 Aug, 2016 2 commits