Skip to content
Snippets Groups Projects
  1. Feb 28, 2020
  2. Jul 25, 2019
  3. Jul 18, 2019
  4. Apr 01, 2019
  5. Mar 25, 2019
    • Sean McGivern's avatar
      Remove N+1 queries from users autocomplete · c5f9b2be
      Sean McGivern authored
      Both of these were related to groups:
      
      1. We need to preload routes (using the `with_route` scope) if we're
         going to get the group's path.
      2. We were counting each group's members separately.
      
      They're in the same commit because the spec for N+1 detection wouldn't
      pass with only one of these fixes.
      c5f9b2be
  6. Dec 06, 2018
  7. Jul 11, 2018
  8. Apr 26, 2018
  9. Jul 27, 2017
  10. Jun 21, 2017
  11. Apr 21, 2017
  12. Apr 06, 2017
  13. Feb 23, 2017
  14. Sep 28, 2016
    • Rémy Coutable's avatar
      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: default avatarRémy Coutable <remy@rymai.me>
      ec0061a9
  15. Sep 16, 2016
  16. Aug 09, 2016
  17. Jun 18, 2016
  18. Jun 16, 2016
  19. Jun 14, 2016
  20. Dec 09, 2015
  21. Jun 22, 2015
  22. May 03, 2015
  23. Mar 15, 2015
  24. Feb 12, 2015
  25. Jan 30, 2015
  26. Oct 09, 2014
  27. Sep 15, 2014
  28. Sep 14, 2014
  29. Jun 26, 2014
  30. Jun 17, 2014
  31. Apr 09, 2014
  32. Aug 21, 2013
  33. Jun 19, 2013
  34. Jun 18, 2013
Loading