1. 04 Oct, 2016 1 commit
    • Yorick Peterse's avatar
      Exclude system notes from Project.trending · cdcc4493726c
      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.
      cdcc4493726c
  2. 28 Sep, 2016 1 commit
    • Rémy Coutable's avatar
      Allow Member.add_user to handle access requesters · 44fe4f60aea6
      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: default avatarRémy Coutable <remy@rymai.me>
      44fe4f60aea6
  3. 22 Sep, 2016 3 commits
  4. 21 Sep, 2016 2 commits
  5. 20 Sep, 2016 1 commit
  6. 15 Sep, 2016 1 commit
  7. 14 Sep, 2016 1 commit
    • ubudzisz's avatar
      add test about flash alert · 4e1cf9d2f6a0
      ubudzisz authored
      add tests with dependent destroy
      
      add tests with dependent destroy
      
      add tests
      
      add tests to projects spec
      
      update it title  and remove let
      
      update it title  and remove let
      
      remove changes after rebase
      
      remove changes after rebase
      
      update changelog
      4e1cf9d2f6a0
  8. 13 Sep, 2016 1 commit
    • Yorick Peterse's avatar
      Move pushes_since_gc to Redis · 27f7b8eda3a7
      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
      27f7b8eda3a7
  9. 01 Sep, 2016 1 commit
  10. 26 Aug, 2016 1 commit
  11. 25 Aug, 2016 1 commit
  12. 20 Aug, 2016 1 commit
  13. 17 Aug, 2016 1 commit
  14. 16 Aug, 2016 1 commit
    • Timothy Andrew's avatar
      Fix failing tests relating to backporting ee!581. · 5f2a1dd22382
      Timothy Andrew authored
      1. `GitPushService` was still using `{merge,push}_access_level_attributes` instead
         of `{merge,push}_access_levels_attributes`.
      
      2. The branches API creates access levels regardless of the state of the
         `developers_can_{push,merge}` parameters. This is in line with the UI,
         where Master access is the default for a new protected branch.
      
      3. Use `after(:build)` to create access levels in the
         `protected_branches` factory, so that `factories_spec` passes. It
         only builds records, so we need to create access levels on `build` as
         well.
      5f2a1dd22382
  15. 11 Aug, 2016 2 commits
  16. 09 Aug, 2016 2 commits
  17. 04 Aug, 2016 1 commit
  18. 02 Aug, 2016 1 commit
  19. 29 Jul, 2016 1 commit
    • Timothy Andrew's avatar
      Fix all specs related to changes in !5081. · d7366dd20b80
      Timothy Andrew authored
      1. Remove `Project#developers_can_push_to_protected_branch?` since it
         isn't used anymore.
      
      2. Remove `Project#developers_can_merge_to_protected_branch?` since it
         isn't used anymore.
      d7366dd20b80
  20. 27 Jul, 2016 1 commit
  21. 26 Jul, 2016 1 commit
  22. 21 Jul, 2016 1 commit
  23. 20 Jul, 2016 11 commits
  24. 19 Jul, 2016 2 commits