1. 16 Aug, 2015 1 commit
    • Robert Lyon's avatar
      Bug 1483963 - Better reporting on login activity · 19af23b2
      Robert Lyon authored
      
      
      Added a tab 'Logins' to site statistics page that contains
      how many total logins for an institution and also how many unique
      users have logged in during a certain time period - defaults to
      previous calendar month
      
      One can get different results by adjusting the url like so
      admin/statistics.php?type=logins&start=2014-01-01&end=2015-01-01
      if needing to get a different time period
      
      On upgrade it populates the usr_login_data table with the current
      lastlogin time for non-deleted users
      
      Currently usr_login_data only records user id and ctime (for login
      time) but one could also add more columns tothe table if needing to
      record something that happens once per successful login.
      
      Change-Id: If59b207356894eaced7b9977b80d539a28cb7e56
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      19af23b2
  2. 17 Jul, 2015 1 commit
    • Aaron Wells's avatar
      Increase the size of the Leap2a entrycontent column (Bug 1474659) · 2b5b8da7
      Aaron Wells authored
      In MySQL, the default "text" column size is 65kB. Because this column
      can hold the serialized text from several other columns, it needs to
      be larger than that. Setting it to "big" generates a "longtext", which
      is 4GB.
      
      This change has no effect in Postgres. Postgres has only one text
      size (unlimited). The XMLDB generator is smart enough that it
      recognizes this and doesn't run any SQL in this case.
      
      Change-Id: Ic26f0eb3d3c3181fdcaf8729373ca87b6ecc9c8d
      2b5b8da7
  3. 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
  4. 16 Sep, 2014 1 commit
    • Nigel Cunningham's avatar
      (Bug548021) Add support for anonymising pages. · 9624d430
      Nigel Cunningham authored
      
      
      This patch adds support for anonymising pages.
      
      It creates a site option in the General Settings section named 'Allow
      anonymous pages' that must be checked for any page to be anonymised.
      
      If the site option is enabled, a new 'Anonymise' setting in the
      'Edit title and description' tab of pages is enabled, allowing the owner
      to request that this page be anonymised.
      
      When both settings are enabled and a user views a page, two things may
      happen to the author's information.
      
      First, if the user is not logged in or does not have admin, staff or
      owner privileges for the page, the author's name is replaced by the
      anonymous text (defaulting to "(Author's name hidden)") in both the
      body of the page and the metadata author field.
      
      If the user does have admin, staff or owner privileges for the page,
      the author's name is anonymised as above except that the text displayed
      is made into a link. When this link is clicked, the anonymous author
      text is replaced by the normal author information for the page.
      
      Anonymous pages displayed in the 'Latest pages' block and shared with
      a group are also anonymised by this patch.
      
      Change-Id: I2e2c92f641329a1a305cf58a5c5d47bf95436a8b
      Signed-off-by: default avatarNigel Cunningham <nigelc@catalyst-au.net>
      9624d430
  5. 01 Jul, 2014 1 commit
    • Robert Lyon's avatar
      Allowing feedback notifications on group pages (Bug #1307247) · 3b0382ef
      Robert Lyon authored
      
      
      In this patch:
      - Changed the Group Edit 'General' section and added the 'Feedback
      notifications' options.
      - Changed the Group Edit 'General' section and altered the 'Shared
      page' option from tickbox to select options.
      - Changed the CommentFeedback to be able to notify multiple users in a
      group
      - Changed the CommentFeedback to be able to send message in the
      institution lang if needed.
      - Adjusted group_get_editroles_options() to allow it to return a non
      associative array
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      
      Change-Id: Ia2e995c51aa08610945788e55c809b3c650dcd17
      3b0382ef
  6. 24 Jun, 2014 1 commit
  7. 08 Jun, 2014 1 commit
  8. 05 Jun, 2014 3 commits
  9. 09 May, 2014 1 commit
    • Yuliya Bozhko's avatar
      Some artefact refactoring (Bug #1298646) · 3ba72d71
      Yuliya Bozhko authored and Robert Lyon's avatar Robert Lyon committed
      
      
      Fixes in this patch:
      
      - Moved artefact.php to artefacts directory to separate it from pages.
      - Fixed reference to a wrong 'artefactonlyviewableinview' string.
      - Removed add_to_render_path() and its calls which have no purpose at all.
      - Removed 'artefact_parent_cache' table.
      - Removed cron jobs related to 'artefact_parent_cache' from DB.
      - Added 'path' column in 'artefact' table to easier calculate hierarchy.
      - Added ArtefactTest.php for artefacts unit tests
      
      Change-Id: Ia14cd85b94c32a950354446ee3565bd2964c625c
      Signed-off-by: default avatarYuliya Bozhko <yuliya.bozhko@totaralms.com>
      3ba72d71
  10. 16 Apr, 2014 1 commit
    • Nathan Lewis's avatar
      Improvements to notification system (Bug #1299993) · 63e0484d
      Nathan Lewis authored
      
      
      - Each activity type can specify a default notification method. They default
        to 'email' to remain backwards compatible.
      - Each activity type can specify if it is allowed to be set to 'none'. Defaults
        to 'allowed' for backwards compatibility.
      - Removed 'required' from notification settings - it didn't make sense, and the
        change above deals with this in a better way.
      - The site wide defaults for each activity type can be edited in
        Site options -> Notification settings. These are applied to new users or
        whenever a user does not have the appropriate usr_activity_preference records.
      - Removed 'Default notification method' as it's functionality is now covered by
        the change above.
      - There is a separate help next to each activity type to explain what messages
        will be affected by the setting.
      
      Change-Id: I131cdeefbeaa8e43688aefd9d770fc8cb9bceea8
      Signed-off-by: default avatarNathan Lewis <nathan.lewis@totaralms.com>
      63e0484d
  11. 14 Apr, 2014 1 commit
  12. 07 Apr, 2014 1 commit
  13. 26 Mar, 2014 1 commit
    • Tobias Zeuch's avatar
      New watchlistnotification Plugin (Bug 1041228) · 6fe99d5f
      Tobias Zeuch authored and Robert Lyon's avatar Robert Lyon committed
      
      
      Introducing a new plugin watchlistnotification that responds to the
      events saveartefact, blockinstancecommit and deleteblockinstance. It
      stores the changed view and the blockinstance in a table watchlist_queue
      and checks via cron if there were any changes on a view and if for that
      view the last change has happened some time ago (the minutes are stored
      in config under watchlistnotification_delay, the default is 20min).
      
      If so, a message is generated that informs the watchlist recipient about
      which view and which block-instances on this view have been touched
      (added or changed).
      
      As there is no way to disable the built-in/old watchlist-notification-
      system, this is disabled in the mahara-core code, that is,
      artefact/lib.php and lib/view.php
      
      Change-Id: I039c5285cdd1b09ed9eb38a647e0c1510c3cabb9
      Signed-off-by: default avatarTobias Zeuch <tobias.zeuch@kit.edu>
      6fe99d5f
  14. 25 Mar, 2014 1 commit
    • Aaron Wells's avatar
      Prevent new users from taking spammy actions · 7b08f438
      Aaron Wells authored
      Bug 1252101
      
      1. New users get 2 "new user points" on their user record
      
      2. While they have these, they're on probation and can't post
      links in public places, or make public pages.
      
      3. "new user points" are decreased each time a non-probationary
      user responds to a forum post by the user
      
      4. Admins & Staff are automatically non-probationary
      
      Change-Id: Ibccd2e330945f66b07aac062c4f51b67a0c0dba2
      7b08f438
  15. 24 Mar, 2014 1 commit
  16. 25 Feb, 2014 1 commit
  17. 24 Jan, 2014 1 commit
    • Robert Lyon's avatar
      Allow site_content to be institution specific (bug #1254299) · d268d11b
      Robert Lyon authored
      
      
      Changes include:
      - added an institution column to the site_content table
      - added an 'Edit site pages' page under Admin -> Institutions
      that is accessibe by institution admins
      - added an 'institution' option to the edit site pages form - this is
      a hidden field if user can edit only one institution.
      
      On upgrade it updates the site_content table to give current data the
      institution on 'mahara' (incl. local site pages) and for each
      institution it replicates the data already in the db for the default site (excl.
      local site pages) so that every site has their own versions, which can
      be adjusted as one sees fit.
      
      On creation of new institution it creates the rows in site_content
      table but with the default strings (like what you see when you first
      install a mahara) but sets the sitepages column in institution table
      to default (mahara). On deletion of institution it removes the rows in
      site_content.
      
      A user on login sees the institution site page based on what
      institution theme they see.
      
      On logout the 'lastinstitution' cookie is set allowing for them to see
      institution specific site pages.
      
      The 'No institution' (mahara) site pages can only be edited through
      Configure site -> Edit site pages.
      
      Also allow for an institution site page to be viewed if 'institution'
      variable is passed to it eg terms.php?institution=testing allowing for
      another way to access info when logged out.
      
      Change-Id: I2ed30b63c15bf676d83eb2231f48c4ca23ce8b53
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      d268d11b
  18. 08 Jan, 2014 1 commit
    • Aaron Wells's avatar
      Introducing the institution_config table · 5be3b920
      Aaron Wells authored
      Bug 1264429: This patch creates the table, refactors the get_institution_config() method,
      the Institution class, and the institution editing page, to use the new table.
      
      Henceforth columns should only be added to the main "institution" table if they represent
      a required setting (like name and displayname), or they need to be accessed frequently by
      direct SQL queries.
      
      Change-Id: I4564240d2c55ec2b6ec90868290a61cf4321460a
      5be3b920
  19. 07 Jan, 2014 1 commit
  20. 06 Jan, 2014 1 commit
    • Mike Kelly's avatar
      Restructure usr_custom_layout table to take groups into account · 2214b02a
      Mike Kelly authored and Robert Lyon's avatar Robert Lyon committed
      
      
      Bug #1266317
      
      Group pages, site and institution pages were set as having usr = 0 in
      usr_custom_layout because the view owner is null.
      
      Fix by adding group column to table, foreign keyed to group table.
      
      usr column and group column have to be changed to allow null values, and
      to have null as default values.
      
      When saving a custom layout, check context, then set usr and group
      values accordingly. 
      e.g. 
      usr = 5, group = null 
      usr = null, group = 321
      In the case of site and institution pages:
      usr = null, group = null
      
      Change-Id: Id42ebcc543d29ee2455aef73227b57c569171385
      Signed-off-by: default avatarMike Kelly <m.f.kelly@arts.ac.uk>
      2214b02a
  21. 26 Nov, 2013 1 commit
  22. 30 Sep, 2013 1 commit
  23. 25 Sep, 2013 2 commits
  24. 19 Sep, 2013 2 commits
  25. 21 Aug, 2013 1 commit
  26. 12 Jul, 2013 1 commit
    • Robert Lyon's avatar
      Drop-down navigation overridden at institutional level (Bug #1194672) · cd08104c
      Robert Lyon authored
      
      
      Create the ability for Institutions to override the site default for
      displaying drop-down navigation instead of tabs for main menu.
      
      Can now: Set drop-down navigation option on Administer institutions
      screen /admin/users/institutions.php
      
      Users who are in more than one institution will have drop-down setting
      of the institution whose theme they are using as their theme.
      
      If $cfg->sitethemeprefs = true, where a user can pick any theme then
      for those themes associated with an institution they will use the
      institution's setting otherwise they will use the site's setting for
      drop-down navigation.
      
      Can not do: Have user make their own choice for whether they see drop
      down or not for any particular theme
      
      Change-Id: I580953c62b35cbc8169d47781c8bf88cc94d9fe8
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      cd08104c
  27. 27 Jun, 2013 1 commit
  28. 05 Feb, 2013 1 commit
    • Jiri Baum's avatar
      License metadata - schema change. (Bug #1095499) · a827e1c9
      Jiri Baum authored
      
      
      This feature adds standard license metadata fields on every artefact and every
      artefact edit page. This allows users to specify the license for the content
      they create or upload. For content originating elsewhere, the users can also
      enter the name of the licensor and original URL.
      
      Previously, adding license metadata to an artefact or page was achievable in an
      ad hoc fashion using a block on a page, but had many limitations.
      
      See also bug #1095499.
      
      This commit changes the database schema and the artefact abstract data type.
      
      Change-Id: Icf9143864a252b43fa91294825b24e5a65c0b4d5
      Signed-off-by: default avatarJiri Baum <jiri@catalyst-au.net>
      a827e1c9
  29. 21 Jan, 2013 1 commit
    • Jiri Baum's avatar
      Masquerading auditability - log events. (Bug #1027574) · 7a6d1f34
      Jiri Baum authored
      
      
      Log events, including both user IDs when masquerading is in progress. The log
      can be configured to log all events or only those while masquerading is in
      progress or none. The log is expired after a configurable delay.
      
      Note that this logs all events (or all masquerading events) even though this
      feature only includes one report of one type of event.
      
      Change-Id: I7a59d98b84b0527a55363b4d01448b9b1809aa9e
      Signed-off-by: default avatarJiri Baum <jiri@catalyst-au.net>
      7a6d1f34
  30. 06 Aug, 2012 1 commit
  31. 04 Jul, 2012 1 commit
  32. 02 Jul, 2012 1 commit
  33. 29 Jun, 2012 3 commits
  34. 20 Jun, 2012 1 commit