1. 26 Mar, 2015 1 commit
  2. 03 Mar, 2015 1 commit
    • Nigel Cunningham's avatar
      (Bug1352028) Add a JSON progress bar for bulk operations. · 55a8deb8
      Nigel Cunningham authored
      
      
      This patch adds a JSON progress meter (I'll call it that to avoid confusion
      with progress bars) to the bulk uploading of users, groups and group
      memberships and the bulk export and import of users (LEAP), so the user can see
      the progress of the operation and not just the submit button changed to
      'Processing..' and whatever indication their browser gives while waiting for
      content.
      
      The bulk export and import are minor rewrites, replacing the old iframe based
      progress bar and the associated multiple pages and additional template file in
      the case of the bulk export, and the recursive redirect-to-self of the bulk
      import.
      
      To accomplish the display of the progress bar during the operation, we make the
      PHP session be closed (read only) except when changes need to be made. This is
      for the most part a straightforward change in session.php as it's the only
      direct accessor. In other places, we replace direct accessing of the session
      variable ($_SESSION) with use of the session class ($SESSION) so that it can
      reopen the session, make the change and close the session again.
      
      There is one more aspect to all of this: with previous behaviour, multiple
      requests for the same session would queue, taking the session lock in turn.
      After this patch is applied, they can proceed in parallel, allowing greater
      throughput. There is no additional locking requirement because the issues are
      the same as those already dealt with in allowing multiple PHP threads to
      process requests from different sessions at the same time.
      
      I have sought to make the progress meter nice and generic, so it can be used in
      the other bulk imports and exports too.
      
      Paradoxically, these changes don't just make the import seem to be faster, it
      actually is.. at least in the case of users and groups.
      
      Times for importing 1000 users, groups and memberships, averaged over 3 runs
      each (Wall time, not CPU time - but the relationship is the same).
      
                      Without Progress     With Progress
      Users                166s               155s
      Groups                85s                78s
      Memberships           20s                19s
      
      Change-Id: Iec15c57db32c77994edb80c71d65591de51a95e4
      Signed-off-by: default avatarNigel Cunningham <nigelc@catalyst-au.net>
      55a8deb8
  3. 05 Feb, 2015 1 commit
  4. 18 Sep, 2014 1 commit
    • Robert Lyon's avatar
      The archiving of submitted pages/collections from groups (Bug #1335670) · 5c57b565
      Robert Lyon authored
      
      
      This patch contains:
      - The export queue system where pages/collections on release from
      submission are added to the export queue table ready to be archived.
      - The export queue admin page showing what is in the queue to be
      exported. The cron runs every 6 minutes. Queue items failed to export
      are also shown here.
      - The archive list admin page, where one can download the generated
      leap2a files for the archived submissions.
      
      In this patch you should be able to add things to the export queue by
      either releasing a sumbission on a group that has 'archive
      submissions' option ticked. This will add the archive to that archived
      submission page, or you can also run a leap2a export from portfolio
      export which will add the export queue and send you an email once the
      export is done.
      
      Things to note:
      - The is a server busy function that stops the export queue from
      running but I'm not too sure if the threshold is too low/high
      - The export queue tries to export the first 100 items each run but if
      resources are fine in handling that easily then the number could be
      higher but I'm not sure of what will be a good number.
      - Currently there is alsoe infrastructure like table columns for dealing
      with releasing submissions from external systems (eg moodle) but that
      functuionality is yet to be built.
      - The checking of server busy in MS windows untested - may need to
      just let MS ignore server busy check as there doesn't seem to be
      standard way to check this.
      
      Change-Id: If4c1d272e9c5d46fbf16b2ff73ceb2687c06ffd4
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      5c57b565
  5. 09 Mar, 2014 1 commit
    • Robert Lyon's avatar
      Altering userlist to be more accessible (Bug #1265088) · 7b37adf8
      Robert Lyon authored
      
      
      Have made the headings for the select boxes be labels that actually
      sit with the fields. This allows them to stay with their field for
      responsive theme and small screen.
      
      Have updated text to indicate exactly which box is being talked about
      rather than using 'left' or 'right' in the text.
      
      Change-Id: I8098568d6519514de50eb76a9a5ce86b1448d35e
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      7b37adf8
  6. 18 Feb, 2014 1 commit
  7. 02 Feb, 2014 1 commit
  8. 19 Jul, 2013 1 commit
  9. 28 Apr, 2013 1 commit
  10. 01 Aug, 2012 1 commit
  11. 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
  12. 04 Jul, 2011 1 commit
  13. 01 Jul, 2011 1 commit
    • Hugh Davenport's avatar
      Add page for Group CSV Uploads · d022f93a
      Hugh Davenport authored
      
      
      You can now use the web API service for groups to upload
      a CSV file to create and update groups
      
      The new page is below, and gives all the details about the format
      /admin/groups/uploadcsv.php
      
      Bug #547688
      
      Change-Id: Ic116c836e607ae3d1f6c0f67bbbf1f9c119828a8
      Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
      d022f93a
  14. 01 Jun, 2011 1 commit
  15. 11 Apr, 2011 1 commit
  16. 16 Jan, 2011 1 commit
  17. 22 Dec, 2010 2 commits
  18. 01 Nov, 2010 1 commit
  19. 01 Sep, 2010 1 commit
  20. 24 Aug, 2010 1 commit
  21. 23 Aug, 2010 1 commit
  22. 17 Aug, 2010 1 commit
  23. 09 Aug, 2010 1 commit
  24. 08 Jul, 2010 1 commit
  25. 07 Jul, 2010 2 commits