Details
-
Improvement
-
Resolution: Fixed
-
Major
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_403_STABLE
-
MDL-77174-master -
Hide
Course move
This drag/drop code is very buggy but this seems to be existing and is due for replacement already.
- Navigate to Site admin -> Courses -> Manage courses and categories
- Create a category structure as follows:
- Root
--- Science
----- Physics
----- Chemistry
- Create a course in the "Chemistry" category
- Navigate to the "Chemistry" category
- Drag/Drop the course into a different category
- Confirm that you are asked to confirm the move
- Press Cancel
- Confirm it did not move
- Repeat the drag/drop
- Confirm that you are asked to confirm the move
- Press "Move"
- Confirm that the course was moved into the new category
Other users
- Navigate to a course
- Navigate to the Participants list
- Unenrol a user, making a note of which user they are
- From the "Tertiary navigation" dropdown, choose "Other users"
- Press "Assign roles"
- Select "Teacher"
- Find the user you just unenrolled and assign the role
- Press "Back" twice to get back to the "Other users" page
- Press the bin icon to remove the role assignment
- Confirm that you are asked to confirm the role removal
- Press Cancel
- Confirm it was not removed
- Press the bin icon to remove the role assignment
- Confirm that you are asked to confirm the role removal
- Press "Remove" to confirm the removal
- Confirm that the role was removed
Quiz toolbox
- Navigate to a course
- Create a new quiz
- Create three questions on the course
- Lay them out with one question per page
- Between questions 2, and 3, add a Section from the dropdown
- Press "Select multiple items"
- Select just the third question
- Press "Delete selected"
- Confirm you are notified that you can't remove that question
- Select just the second question
- Press "Delete selected"
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the question remained
- Press "Delete selected"
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the question was removed after the page reload
- Add a new question to replace the one that was removed
- Press the "Bin" icon for that questiona gain
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the question remained
- Press "Delete selected"
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the question was removed after the page reload
- Press the "Delete section" bin icon
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the section remained
- Press "Delete selected"
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the section was removed after the page reload
Quiz attempt
- As a student navigate to the quiz you created in the previous test
- Press the "Attempt quiz" button
- As teacher/admin view the quiz
- Follow the "Attempts: [count]" link
- Using the checkboxes, selet the attempt
- Press the "Delete selected attempts" button
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the attempt remained
- Press "Delete selected"
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the attempt was removed after the page reload
Deprecation notices
- Open the quiz page in Moodle
- Press "F12" to get the Developer tools
- Open the JS console
- Create a new legacy confirmation:
new M.core.confirm({})
- Confirm you were shown a deprecation notice in the console
Payment
- Navigate to Site admin -> Payments -> Payment accounts
- Create an account:
- Account name: "Example"
- From the "Edit" menu, choose "Delete or archive"
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the account remained
- Press the same link again
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the account was removed after the page reload
Advanced grading - Marking guide
- Create a new "Assignment" activity
- Under "Grade" > "Grading method" choose "Marking guide"
- Go to "Advanced grading" in the assignment secondary navigation and create a new guide from scratch
- Scroll down to the criterion and "Add criterion"
- Immediately try to delete it using the "X" link
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the criterion remained
- Press the same link again
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the criterion was removed
Advanced grading - Rubric
- Create a new "Assignment" activity
- Under "Grade" > "Grading method" choose "Rubric"
- Go to "Advanced grading" in the assignment secondary navigation and create a guide from scratch
- Scroll down to the criterion and "Add criterion"
- Click the "X" link on a Level within the new criterion
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the level remained
- Press the same link again
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the level was removed
- Immediately try to delete it using the "X" link
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the criterion remained
- Press the same link again
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the criterion was removed
File manager
- Navigate to your dashboard
- From the "Private files" block, select "Manage private files..."
- Upload some files
- Create a folder
- Upload some files into the folder
- Save changes
- Re-open the modal again
- Click on one of the files
- Confirm a file information modal was opened
- Press the "Delete" button
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the item remained
- Press the same button again
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the item was removed
- Click on the folder's kebab menu
- Confirm a file information modal was opened
- Rename the folder and press "Update"
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the item waas unchanged
- Press the same button again
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the item was renamed
- Repen the File info for that folder
- Press the "Delete" button"
- Confirm you are shown a confirmation dialogue
- Press cancel
- Confirm it closed and the item remained
- Press the same button again
- Confirm you are shown a confirmation dialogue
- Press "Yes"
- Confirm the item was removed
ShowCourse move This drag/drop code is very buggy but this seems to be existing and is due for replacement already. Navigate to Site admin -> Courses -> Manage courses and categories Create a category structure as follows: - Root --- Science ----- Physics ----- Chemistry Create a course in the "Chemistry" category Navigate to the "Chemistry" category Drag/Drop the course into a different category Confirm that you are asked to confirm the move Press Cancel Confirm it did not move Repeat the drag/drop Confirm that you are asked to confirm the move Press "Move" Confirm that the course was moved into the new category Other users Navigate to a course Navigate to the Participants list Unenrol a user, making a note of which user they are From the "Tertiary navigation" dropdown, choose "Other users" Press "Assign roles" Select "Teacher" Find the user you just unenrolled and assign the role Press "Back" twice to get back to the "Other users" page Press the bin icon to remove the role assignment Confirm that you are asked to confirm the role removal Press Cancel Confirm it was not removed Press the bin icon to remove the role assignment Confirm that you are asked to confirm the role removal Press "Remove" to confirm the removal Confirm that the role was removed Quiz toolbox Navigate to a course Create a new quiz Create three questions on the course Lay them out with one question per page Between questions 2, and 3, add a Section from the dropdown Press "Select multiple items" Select just the third question Press "Delete selected" Confirm you are notified that you can't remove that question Select just the second question Press "Delete selected" Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the question remained Press "Delete selected" Confirm you are shown a confirmation dialogue Press "Yes" Confirm the question was removed after the page reload Add a new question to replace the one that was removed Press the "Bin" icon for that questiona gain Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the question remained Press "Delete selected" Confirm you are shown a confirmation dialogue Press "Yes" Confirm the question was removed after the page reload Press the "Delete section" bin icon Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the section remained Press "Delete selected" Confirm you are shown a confirmation dialogue Press "Yes" Confirm the section was removed after the page reload Quiz attempt As a student navigate to the quiz you created in the previous test Press the "Attempt quiz" button As teacher/admin view the quiz Follow the "Attempts: [count] " link Using the checkboxes, selet the attempt Press the "Delete selected attempts" button Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the attempt remained Press "Delete selected" Confirm you are shown a confirmation dialogue Press "Yes" Confirm the attempt was removed after the page reload Deprecation notices Open the quiz page in Moodle Press "F12" to get the Developer tools Open the JS console Create a new legacy confirmation: new M.core.confirm({}) Confirm you were shown a deprecation notice in the console Payment Navigate to Site admin -> Payments -> Payment accounts Create an account: Account name: "Example" From the "Edit" menu, choose "Delete or archive" Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the account remained Press the same link again Confirm you are shown a confirmation dialogue Press "Yes" Confirm the account was removed after the page reload Advanced grading - Marking guide Create a new "Assignment" activity Under "Grade" > "Grading method" choose "Marking guide" Go to "Advanced grading" in the assignment secondary navigation and create a new guide from scratch Scroll down to the criterion and "Add criterion" Immediately try to delete it using the "X" link Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the criterion remained Press the same link again Confirm you are shown a confirmation dialogue Press "Yes" Confirm the criterion was removed Advanced grading - Rubric Create a new "Assignment" activity Under "Grade" > "Grading method" choose "Rubric" Go to "Advanced grading" in the assignment secondary navigation and create a guide from scratch Scroll down to the criterion and "Add criterion" Click the "X" link on a Level within the new criterion Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the level remained Press the same link again Confirm you are shown a confirmation dialogue Press "Yes" Confirm the level was removed Immediately try to delete it using the "X" link Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the criterion remained Press the same link again Confirm you are shown a confirmation dialogue Press "Yes" Confirm the criterion was removed File manager Navigate to your dashboard From the "Private files" block, select "Manage private files..." Upload some files Create a folder Upload some files into the folder Save changes Re-open the modal again Click on one of the files Confirm a file information modal was opened Press the "Delete" button Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the item remained Press the same button again Confirm you are shown a confirmation dialogue Press "Yes" Confirm the item was removed Click on the folder's kebab menu Confirm a file information modal was opened Rename the folder and press "Update" Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the item waas unchanged Press the same button again Confirm you are shown a confirmation dialogue Press "Yes" Confirm the item was renamed Repen the File info for that folder Press the "Delete" button" Confirm you are shown a confirmation dialogue Press cancel Confirm it closed and the item remained Press the same button again Confirm you are shown a confirmation dialogue Press "Yes" Confirm the item was removed
-
6
Description
Remove all uses of moodle-core-notification-confirm and M.core.confirm and replace with AMD.
M.util.show_confirm_dialog uses this under the hood, but should also be deprecated in the long run.
- Update M.util.show_confirm_dialog to use the core/notification modal
- deprecate the YUI module
- update all users of it