Moodle
  1. Moodle
  2. MDL-20213

Mass (bulk) actions on resources and activities: delete, hide, show, move, indent

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.5, 2.0, 2.4.5, 2.5.1
    • Fix Version/s: DEV backlog
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Rank:
      5523

      Description

      We have developed 2 tools which allow to do mass actions on multiple resources and activities.
      Toolbar was the first version, and it appeared in every course site once you click Turn Editing on. Later we have converted it to the Block format, which is more flexible, can be added on as-needed basis, and has more functionality.

      1) Mass Actions Block - 1.9 and 2.0. We actively develop and support this block.

      Supported actions:

      • select multiple items one-by-one, select all, select all in section(s), deselect all
      • with those: indent/outdent, hide, show, delete move to a section

      2) Mass Actions Toolbar - 1.9 only. We do not develop/support the toolbar patch anymore.

      Supported actions:

      • select multiple items one-by-one
      • with those: hide, show, delete, move to a section
      • 1.9 version: Download "updated patch October 26, 2009.txt"(24 kB) file which is attached to this ticket. You do not need to get any other files.

      DESCRIPTION:
      The Mass Actions block allows instructors to perform actions upon multiple resources or activities, rather than having to perform repeated actions on individual items.
      To use this block, Javascript must be enabled in your browser, you must be in editing mode in the course home page, and Ajax must be disabled. Only the courses in the Week or Topics formats are supported.
      Supported actions include mass selection, indentation, deletion, hiding, showing, mass moving. To select items to perform actions on, simply click the checkbox to the right of it in the course home page or use select functionality, then click the action you would like to perform in the block.

      If you have any suggestions or bug reports, please add to this ticket.

        Activity

        Hide
        Elena Ivanova added a comment -

        ugm, I have put PATCH....

        Show
        Elena Ivanova added a comment - ugm, I have put PATCH....
        Hide
        Elena Ivanova added a comment -

        I have realized that others may want to have the patch here, plus it will allow to keep track of them dome for different Moodle versions. So I am attaching the patch for Moodle 1.9.5+ build 20090604

        Show
        Elena Ivanova added a comment - I have realized that others may want to have the patch here, plus it will allow to keep track of them dome for different Moodle versions. So I am attaching the patch for Moodle 1.9.5+ build 20090604
        Hide
        Elena Ivanova added a comment -

        We have found a bug in the toolbar - the course cache was not rebuilt right away after an action was applied, so while the module was set to be hidden (or open), it could still be displayed. Any other action on the course homepage would trigger the cache to be rebuilt, so the item would become hidden (open)

        Attaching a fix.

        Also, we will be re-doing the toolbar into the Block format, as it will allow greater flexibility for both instructors and admins, plus it will be less invasive to the code.
        (New items to be added to the block: Select/Deselect all, Indent/Outdent)

        Show
        Elena Ivanova added a comment - We have found a bug in the toolbar - the course cache was not rebuilt right away after an action was applied, so while the module was set to be hidden (or open), it could still be displayed. Any other action on the course homepage would trigger the cache to be rebuilt, so the item would become hidden (open) Attaching a fix. Also, we will be re-doing the toolbar into the Block format, as it will allow greater flexibility for both instructors and admins, plus it will be less invasive to the code. (New items to be added to the block: Select/Deselect all, Indent/Outdent)
        Hide
        Sharmilee Thilarajah added a comment -

        Hi There,

        I have just installed the block. Such a brilliant job.

        However, whenever I click on the 'delete' option or actually any action options, I get a message saying I do not have permission.

        Where have I gone wrong?

        Show
        Sharmilee Thilarajah added a comment - Hi There, I have just installed the block. Such a brilliant job. However, whenever I click on the 'delete' option or actually any action options, I get a message saying I do not have permission. Where have I gone wrong?
        Hide
        Elena Ivanova added a comment -

        I guess, I just replied to your email.. so I will copy/paste

        Is it only for Delete or for any other action?
        What role are you in when you are trying to perform that action?
        Try to check role permissions for the roles for that block. There are 2: view and use.

        Show
        Elena Ivanova added a comment - I guess, I just replied to your email.. so I will copy/paste Is it only for Delete or for any other action? What role are you in when you are trying to perform that action? Try to check role permissions for the roles for that block. There are 2: view and use.
        Hide
        Elena Ivanova added a comment -

        Sharmilee found the cause.
        The issue occurs if you add the block as Sticky one as an admin.

        Show
        Elena Ivanova added a comment - Sharmilee found the cause. The issue occurs if you add the block as Sticky one as an admin.
        Hide
        Elena Ivanova added a comment -

        I have attached an updated version of the block that has a fix for Internet Explorer (it is the very top file at the moment: massaction.zip (41 kB))

        Show
        Elena Ivanova added a comment - I have attached an updated version of the block that has a fix for Internet Explorer (it is the very top file at the moment: massaction.zip (41 kB))
        Hide
        Elena Ivanova added a comment -

        I've attached bad file several hours ago. So, here is a corrected one massaction.zip 12 kB
        (can someone help me to clean up this ticket? I do not think I can delete bad files myself)

        Show
        Elena Ivanova added a comment - I've attached bad file several hours ago. So, here is a corrected one massaction.zip 12 kB (can someone help me to clean up this ticket? I do not think I can delete bad files myself)
        Hide
        Elizabeth Senger added a comment -

        I just installed this on our 1.9.7 version, and when I click either Select All or one of the topic links, the browser freezes up and I have to kill the browser to regain access. Any ideas on what might be causing this?

        Show
        Elizabeth Senger added a comment - I just installed this on our 1.9.7 version, and when I click either Select All or one of the topic links, the browser freezes up and I have to kill the browser to regain access. Any ideas on what might be causing this?
        Hide
        Elena Ivanova added a comment -

        Hi Elizabeth,
        Can you please tell what have you installed: the block or the toolbar?
        What is the browser that you use, and does it happen in all browsers?
        Do you have Javascript enabled?

        Thank you

        Show
        Elena Ivanova added a comment - Hi Elizabeth, Can you please tell what have you installed: the block or the toolbar? What is the browser that you use, and does it happen in all browsers? Do you have Javascript enabled? Thank you
        Hide
        André Koscianski added a comment -

        Thank you for this feature.

        It speeds up course administration and is a blessing when you have a slow connection.

        IMHO, this should be default behavior of Moodle interface.

        Show
        André Koscianski added a comment - Thank you for this feature. It speeds up course administration and is a blessing when you have a slow connection. IMHO, this should be default behavior of Moodle interface.
        Hide
        Doug Loomer added a comment -

        This seems like a great block, but when I install it on 1.9.8 none of the checkboxes appear. Any ideas?

        Show
        Doug Loomer added a comment - This seems like a great block, but when I install it on 1.9.8 none of the checkboxes appear. Any ideas?
        Hide
        Elena Ivanova added a comment -

        Hi Doug,
        I cannot really help with installation , but I will try.
        Have you got correct zip archive: 1. Zip Archive massaction.zip (12 kB)?
        You do not have it added as a sticky block?

        Have you added the block to the course homepage and clicked Turn Editing on?
        Also, Javascript must be enabled in your browser, and Ajax must be disabled.
        Only the courses in the Week or Topics formats are supported.

        Show
        Elena Ivanova added a comment - Hi Doug, I cannot really help with installation , but I will try. Have you got correct zip archive: 1. Zip Archive massaction.zip (12 kB)? You do not have it added as a sticky block? Have you added the block to the course homepage and clicked Turn Editing on? Also, Javascript must be enabled in your browser, and Ajax must be disabled. Only the courses in the Week or Topics formats are supported.
        Hide
        Barbara Lawrence added a comment -

        I have the same problem as Elizabeth - the browser freezes when I click the dropdown "select all in section". But the problem occurs in one course only (which is in topics format). In other courses in works fine. And it doesn't make any difference whether ajax is enabled or not - in the courses where it works, it works with ajax enabled or disabled.
        I am using Moodle 1.9.8,

        Show
        Barbara Lawrence added a comment - I have the same problem as Elizabeth - the browser freezes when I click the dropdown "select all in section". But the problem occurs in one course only (which is in topics format). In other courses in works fine. And it doesn't make any difference whether ajax is enabled or not - in the courses where it works, it works with ajax enabled or disabled. I am using Moodle 1.9.8,
        Hide
        Elena Ivanova added a comment -

        Hi Barbara,
        Can you please tell:

        • What browser (version, number) and operating system do you use?
        • Does this happen in all browsers?
        • Do you have any sticky blocks, or any custom ones installed?
        • If you will try the block on some new and "empty" course in topic format - will also not work? There is a possibility that block is chocking on some particular content item in the existing course.
          Thank you!

        P.s. we plan to update the block for 2.0, but most probably it will not be available till Spring 2012.

        Show
        Elena Ivanova added a comment - Hi Barbara, Can you please tell: What browser (version, number) and operating system do you use? Does this happen in all browsers? Do you have any sticky blocks, or any custom ones installed? If you will try the block on some new and "empty" course in topic format - will also not work? There is a possibility that block is chocking on some particular content item in the existing course. Thank you! P.s. we plan to update the block for 2.0, but most probably it will not be available till Spring 2012.
        Hide
        Moritz Lennert added a comment -

        This is a great addition for Moodle, thank you very much !

        However, I've been having some trouble installing it Debian GNU/Linux Squeeze, with Moodle 1.9.9.

        I've downloaded massaction.zip and unzipped it in /usr/share/moodle/mod.

        When I then login as admin and click on Notifications, it complains that:

        "Module massaction: /usr/share/moodle/mod/massaction/version.php was not readable"

        Normal, since this file does not exist. So I try by copying the version.php from another block. Then it complains with:

        "Tried to modify database, but "/usr/share/moodle/mod/massaction/db/postgres7.sql" doesn't exist!"

        Any hints ?

        Moritz

        Show
        Moritz Lennert added a comment - This is a great addition for Moodle, thank you very much ! However, I've been having some trouble installing it Debian GNU/Linux Squeeze, with Moodle 1.9.9. I've downloaded massaction.zip and unzipped it in /usr/share/moodle/mod. When I then login as admin and click on Notifications, it complains that: "Module massaction: /usr/share/moodle/mod/massaction/version.php was not readable" Normal, since this file does not exist. So I try by copying the version.php from another block. Then it complains with: "Tried to modify database, but "/usr/share/moodle/mod/massaction/db/postgres7.sql" doesn't exist!" Any hints ? Moritz
        Hide
        Elena Ivanova added a comment -

        just checking - which .zip file you ave grabbed? Please make sure to get the latest one from 27/Feb/10 3:04 AM

        Show
        Elena Ivanova added a comment - just checking - which .zip file you ave grabbed? Please make sure to get the latest one from 27/Feb/10 3:04 AM
        Hide
        Moritz Lennert added a comment -

        Yes, that's the one.

        Show
        Moritz Lennert added a comment - Yes, that's the one.
        Hide
        Elena Ivanova added a comment -

        I will check with our developers may be they will have some hints :/

        Show
        Elena Ivanova added a comment - I will check with our developers may be they will have some hints :/
        Hide
        J Ross Nicoll added a comment -

        I was wondering if there were any plans to update this for 2.0/2.1?

        Show
        J Ross Nicoll added a comment - I was wondering if there were any plans to update this for 2.0/2.1?
        Hide
        Elena Ivanova added a comment -

        Yes, we will be updating the Mass Actions block. Hopefully this task will be completed by the end of this year, or sooner.

        Show
        Elena Ivanova added a comment - Yes, we will be updating the Mass Actions block. Hopefully this task will be completed by the end of this year, or sooner.
        Hide
        J Ross Nicoll added a comment -

        Many thanks Elena. It's a brilliant block, and our users are missing it terribly!

        Show
        J Ross Nicoll added a comment - Many thanks Elena. It's a brilliant block, and our users are missing it terribly!
        Hide
        Huy Hoang added a comment -

        UMN now has a version for Moodle 2 (tested on 2.0.* only), any feedback are appreciated. Thanks.
        https://github.com/hqhoang/moodle-block_massaction

        Show
        Huy Hoang added a comment - UMN now has a version for Moodle 2 (tested on 2.0.* only), any feedback are appreciated. Thanks. https://github.com/hqhoang/moodle-block_massaction
        Hide
        Anthony Borrow added a comment -

        Michael - I've added you as a watcher. The code has been made available via Moodle Plugins (http://moodle.org/plugins/view.php?plugin=block_massaction) but I wanted to see if there seemed to be interest in including in core or if this should instead be moved to CONTRIB. Peace - Anthony

        Show
        Anthony Borrow added a comment - Michael - I've added you as a watcher. The code has been made available via Moodle Plugins ( http://moodle.org/plugins/view.php?plugin=block_massaction ) but I wanted to see if there seemed to be interest in including in core or if this should instead be moved to CONTRIB. Peace - Anthony
        Hide
        J Ross Nicoll added a comment -

        Huy, that seems to work well on our test installation of Moodle 2.1.2.

        Show
        J Ross Nicoll added a comment - Huy, that seems to work well on our test installation of Moodle 2.1.2.
        Hide
        Rob added a comment -

        Hi Huy,

        I have installed Mass Actions on 2.1.3+, and have noticed very slow load times for moving course resources/activities. The browser spins for 4 to 5 minutes. If I close the browser before the page loads, log back in, and visit the course, the items actually have moved. It is just the course page load that lags. Deleting, show/hide, etc. are very quick.

        The server runs Suse 11.4, Mysql 5.1, PHP 5.3. I looked in the slow query log for Mysql and did not find anything related to Mass Actions.

        Any ideas?

        Rob

        Show
        Rob added a comment - Hi Huy, I have installed Mass Actions on 2.1.3+, and have noticed very slow load times for moving course resources/activities. The browser spins for 4 to 5 minutes. If I close the browser before the page loads, log back in, and visit the course, the items actually have moved. It is just the course page load that lags. Deleting, show/hide, etc. are very quick. The server runs Suse 11.4, Mysql 5.1, PHP 5.3. I looked in the slow query log for Mysql and did not find anything related to Mass Actions. Any ideas? Rob
        Hide
        Elizabeth Dalton added a comment -

        @Anthony, I would like to see this made part of core. I would also like to suggest that the features described in http://docs.moodle.org/dev/Linked_activities be considered for inclusion in a future version.

        Show
        Elizabeth Dalton added a comment - @Anthony, I would like to see this made part of core. I would also like to suggest that the features described in http://docs.moodle.org/dev/Linked_activities be considered for inclusion in a future version.
        Hide
        Elizabeth Dalton added a comment -

        I'm now testing this block on a copy of our 2.2 server (soon to update to 2.3). The conflict with AJAX is kind of annoying. Mass Actions is much easier when one wants to move items from one section to another, but within a section, the AJAX editing tools are much easier than the up/down arrows. Could this limitation be addressed?

        Show
        Elizabeth Dalton added a comment - I'm now testing this block on a copy of our 2.2 server (soon to update to 2.3). The conflict with AJAX is kind of annoying. Mass Actions is much easier when one wants to move items from one section to another, but within a section, the AJAX editing tools are much easier than the up/down arrows. Could this limitation be addressed?

          People

          • Votes:
            29 Vote for this issue
            Watchers:
            22 Start watching this issue

            Dates

            • Created:
              Updated: