1. 07 May, 2018 1 commit
  2. 19 Mar, 2018 1 commit
    • Robert Lyon's avatar
      Bug 1755919: Adding related tags page and adjusting tag filter · 0ad5b688
      Robert Lyon authored
      This patch contains the following:
      - created a relatedtags.php page + json file + template to handle the
      viewing of related tags for a user, the differences for this to
      tags.php page are:
      -- it can be viewed publically
      -- it requires a tag and viewid
      - Adjusted the filters for blog/blogpost, plan/task so they appear
      under their own filters as well as 'text' filter
      - adjusted the dwoo function list_tags so that we can pass an array of
      viewids/tags and/or just a view id
      -adjusted the portfolio_search_* functions so they would work for both
      my tags and related tags pages
      - fixed a filter js problem for tags.php where choosing the filter was
      not updating the displayed filter string
      Change-Id: Ie3a2c3cb56e94ced0e021265bce88e35a9cfba5d
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
  3. 09 Feb, 2018 1 commit
  4. 09 Sep, 2017 1 commit
    • Robert Lyon's avatar
      Bug 1692385: Adjusting the event_log table · ebd928b1
      Robert Lyon authored
      Add 5 new new columns to event_log table make searching over the
      data easier and also record the id of any parent/related info as well
      Eg, if one deletes an image block from a page we now record:
      id - the event id
      resourceid - the block id
      resourcetype - the blocktype, eg image
      parentresourceid - the id of the parent, eg view id
      parentresourcetype - the type of parent, eg 'view'
      Because we would not be able to find related view info from just the
      block id anymore.
      Also added the ability to index and search over event information in
      elasticsearch search type event_log
      Change-Id: I280c1c75c35a6c58f42d8acb36cf5c24c70b902d
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
  5. 19 Dec, 2016 1 commit
  6. 18 Jul, 2016 1 commit
  7. 26 May, 2016 1 commit
  8. 01 May, 2016 1 commit
  9. 27 Apr, 2016 1 commit
  10. 22 Oct, 2015 1 commit
    • Son Nguyen's avatar
      Handle embedded image deletion better. Bug 1489284 · 740c0fa7
      Son Nguyen authored and Robert Lyon's avatar Robert Lyon committed
      Refactor updating embedded images
      Deals with the deleting of embedded images in a:
      - blog
      - forum post
      - forum topic
      - group description
      - note
      - page description
      Also sorts out the problem where a note embedded item can be saved
      with both 'editnote' and 'textbox' resourcetype. We only need one.
      Also add 'static' to EmbeddedImage::methods()
      Change-Id: Ife1f9dee5ffe9eae4468eadb8f46a16a0a2a9044
  11. 13 Oct, 2015 1 commit
  12. 03 Sep, 2015 1 commit
  13. 20 Jul, 2015 1 commit
  14. 07 May, 2015 1 commit
  15. 23 Apr, 2015 1 commit
  16. 17 Mar, 2015 1 commit
  17. 26 Feb, 2015 1 commit
  18. 25 Feb, 2015 1 commit
  19. 12 Feb, 2015 1 commit
    • Nigel Cunningham's avatar
      (Bug1364691) Add artefact_instances_from_ids function. · ccd5e53d
      Nigel Cunningham authored
      Add support for getting multiple artefacts from an array
      of IDs, all at once. The main saving is that we then do
      one SQL query for the whole array instead of one for each
      element in the array.
      In testing admin/users/bulkexport.php, this reduced
      execution time for an export of 1000 users by 12 seconds
      (approx 10 percent).
      Change-Id: I51867cd4693a7572dd609b98b6503251e473078a
      Signed-off-by: default avatarNigel Cunningham <nigelc@catalyst-au.net>
  20. 09 Feb, 2015 1 commit
  21. 28 Jan, 2015 1 commit
    • Aaron Wells's avatar
      Adding ArtefactType::postcommit_hook function · efb321c3
      Aaron Wells authored
      Bug 1401210. In order for watchlists to properly handle blog
      blocks, we need to give the Blog artefact a chance to update
      the view_artefacts table before the "saveartefact" event gets
      fired at the bottom of ArtefactType::commit().
      So I'm adding a postcommit_hook() method which gets called in
      the middle of commit(), and shifting ArtefactType's commit()
      method into there.
      Change-Id: I23986597fd411fa8f93da7cdbfa8d0b577de66fc
  22. 16 Dec, 2014 1 commit
  23. 11 Dec, 2014 1 commit
    • Aaron Wells's avatar
      Even quicker way to fill in artefact paths · 31a19314
      Aaron Wells authored
      Bug 1400524: On a large site, the database queries to retrieve
      all records from the artefact table can take too long to execute
      and cause the PHP script to time out.
      This optimization attempts to fix that by filling in the paths
      with an iterative series of UPDATE queries instead.
      Change-Id: I46c13cc97bac8a6d2bc626e3b2dc8e4cdeecd2bb
  24. 08 Dec, 2014 1 commit
  25. 16 Oct, 2014 1 commit
  26. 15 Sep, 2014 1 commit
  27. 03 Sep, 2014 1 commit
  28. 21 Aug, 2014 1 commit
  29. 07 Aug, 2014 1 commit
  30. 28 Jul, 2014 1 commit
    • Robert Lyon's avatar
      Checking to make sure artefact/block library still exist (Bug #1319634) · 0f7251b3
      Robert Lyon authored
      Sometimes views will have artefacts/block instances on them but the
      plugin has been deleted. This should not stop a user being deleted.
      To test:
      Add a plugin to the site (eg openbadgesdisplayer block plugin, or cpds
      artefact plugin) and install it.
      Add a page and add a block to the page.
      Delete the dir from the site for the plugin
      Try to bulk delete the user
      Change-Id: Ib23ad79d9f1ffa0bca56ad7ccb6083333527e64c
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
  31. 21 Jul, 2014 1 commit
  32. 12 Jun, 2014 1 commit
    • Aaron Wells's avatar
      Refactor the Dwoo_Template_Mahara files · 97e96de0
      Aaron Wells authored
      Bug 1231755
      - Cleanup, documentation, and removing replicated code.
      - Not checking for whether the file exists. We'll just make a list
      of search paths and pass those through to Dwoo_Template_File, and
      let it determine which path has the file.
      - Eliminating the separate Dwoo_Template_Mahara classes for plugintypes,
      and moving the custom logic for how plugintypes find their template files,
      into the Plugin class itself.
      Change-Id: I877a4221323333e8e8b6c6df54062a0f8bf2b817
  33. 04 Jun, 2014 1 commit
  34. 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>
  35. 31 Mar, 2014 3 commits
  36. 27 Mar, 2014 2 commits
  37. 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>