1. 11 Jan, 2012 1 commit
    • Richard Mansfield's avatar
      Cache user records in calls to display_default_name · bb91e704
      Richard Mansfield authored
      Commit 0cdaaa1d
      
       introduced a lot of calls to display_default_name.
      Unfortunately this bypasses the user record caching that happens
      inside display_name, so it produced a lot of new queries, most notably
      on profile pages, where a single user's name gets displayed several
      times.
      
      This change moves the caching of user records into another function,
      so it can be shared by display_name, display_default_name, and
      profile_icon_url.
      
      The search_user function is also modified to fetch the admin status
      and profileicon id, to stop profile_icon_url producing more queries.
      
      Change-Id: Id1993decf164e7d0563a7d277444402fc6350b3a
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      bb91e704
  2. 02 Dec, 2011 1 commit
  3. 12 Sep, 2011 3 commits
  4. 06 Sep, 2011 2 commits
  5. 01 Sep, 2011 1 commit
    • Richard Mansfield's avatar
      Add more flexible group jointypes (bug #610690) · 027ffc0d
      Richard Mansfield authored
      
      
      The four existing jointypes, 'open', 'controlled', 'request' and
      'invite' are mutually exclusive, but they don't need to be so strict.
      This patch introduces more flexibility in the way groups allow new
      members to join.
      
      * Group admins can always send membership invitations to a group, even
        if it's open or controlled
      * Membership requests can be enabled for any group unless it has open
        membership.
      * The grouptype now determines the set of roles available to a group,
        but no longer restricts the available join types.
      
      The db upgrade will preserve existing behaviour apart from enabling
      invitations on open, request, and controlled groups.
      
      Change-Id: I8bb0940a37f3c0c36366c1d5b8d27e8b9914a7e3
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      027ffc0d
  6. 03 Aug, 2011 1 commit
  7. 19 Jul, 2011 1 commit
  8. 28 Jun, 2011 2 commits
  9. 27 Jun, 2011 1 commit
  10. 26 Jun, 2011 1 commit
    • Hugh Davenport's avatar
      Update institution search to search user tags · 0df6205e
      Hugh Davenport authored
      
      
      The search query is tested against user tags as well now
      
      This search query only works for the following pages:
      - Institutions -> Members
      
      For example, one can search for
      lastinstitution:Foo Bar Institution
      and the results would be all the users that were in the
      Foo Bar Institution for their last insitution
      
      Change-Id: I2af823911346af5b9fdc8ae64b92d329f03dff5c
      Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
      0df6205e
  11. 21 Jun, 2011 3 commits
  12. 26 May, 2011 4 commits
  13. 13 May, 2011 1 commit
  14. 12 May, 2011 2 commits
  15. 01 Sep, 2010 1 commit
  16. 13 Jul, 2010 1 commit
  17. 08 Jul, 2010 1 commit
  18. 07 Jul, 2010 3 commits
  19. 04 Jul, 2010 1 commit
  20. 23 Jun, 2010 1 commit
  21. 18 Jun, 2010 1 commit
  22. 10 Jun, 2010 1 commit
  23. 26 May, 2010 2 commits
  24. 13 May, 2010 1 commit
  25. 11 May, 2010 2 commits
  26. 10 May, 2010 1 commit