Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_34_STABLE
-
MDL-57455_master -
Hide
Prerequisite.
- Log in as an admin.
- Visit 'Site Administration' > 'Advanced features'.
- Ensure 'Enable tags functionality' is enabled.
- Go to 'Site Administration' > 'Appearance' > 'Manage Tags'.
- Confirm 'Data records' is in the 'Default collection'.
- Create a course with two students enrolled.
Test 1
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a tag.
- View the entry.
- Click on the tag and confirm it takes you to the tag index page.
- Check that the database activity is listed.
- Confirm the links on the tag index page will take you back to the tagged entry.
Test 2
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a tag.
- Go to the course reset page.
- Check to remove all database tags.
- Submit the form.
- Confirm you get a message saying that the database tags have been removed.
- Go to the database entry and confirm all the tags have been deleted.
Test 3
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a tag.
- Go to the course reset page.
- Do not check anything.
- Submit the form.
- Look at the entry in the database and confirm the tag is still there.
- Go to the course reset page.
- Check to delete all entries.
- Confirm the 'Remove all database tags' checkbox becomes disabled.
- Submit the form.
- Confirm you get a message saying that the database entries have been removed.
- Click on the database and confirm all entries have been deleted.
- Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task
tag_cron_task - Look in your 'mdl_tag' table and confirm the tags were deleted as well.
Test 4
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a unique tag.
- Hide the module.
- Go to tag index page (currently in Boost you can't without visiting the URL (see MDL-57120)) by going to <yoursite>/tag/index.php.
- Confirm you can search for the tag.
- Confirm when clicking on the tag it shows you information.
- Log in as a student.
- Go to <yoursite>/tag/index.php.
- Confirm you can see the tag (not ideal - see
MDL-60186). - Confirm clicking on the tag reveals no information.
Test 5
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a unique tag.
- Log in as a user who is NOT enrolled in the course.
- Go to <yoursite>/tag/index.php.
- Confirm you can see the tag (not ideal - see
MDL-60186). - Confirm clicking on the tag reveals no information.
Test 6
- Create a database activity with 'Approval required' set to 'Yes'.
- Add a text input field to the module.
- Save the template.
- Log in as a student.
- Add an entry with a tag.
- Do a search in the database module (not tag index page) and confirm you can search for it.
- Visit the tag index page.
- Confirm you can see the tag entry and can also search for it.
- Confirm clicking on it takes you to the database activity.
- Log in as the admin.
- Visit the database module.
- Confirm you can see the entry but do not approve it.
- Do a search in the database module (not tag index page) and confirm you can search for it.
- Visit the tag index page.
- Confirm you can see the tag entry and can also search for it.
- Confirm clicking on it takes you to the database activity.
- Log in as another student in the course.
- Do a search in the database module (not tag index page) and confirm you can not search for it.
- Go to <yoursite>/tag/index.php.
- Confirm you can see the tag (not ideal - see
MDL-60186). - Confirm clicking on the tag reveals no information.
- Log in as the admin and approve both entries.
- Log in as one of the students.
- Do a search in the database module (not tag index page) and confirm you can search for both tags.
- Visit the tag index page.
- Confirm you can see both tags.
- Confirm clicking on them shows the database module.
Test 7
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a tag.
- Create a backup of the database module.
- Restore this backup on another site also running integration master with tags enabled.
- Confirm the tags are present in the entry in the restored module.
Test 8
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a tag.
- Click on the 'Export' tab.
- Select to export all the items.
- Download the file.
- Go to the other site running integration master.
- Create a database activity.
- Add a field (stupid you have to do this but need to in order to get to the options menu).
- On the field page click on the cog in the top right and select 'Import entries'.
- Upload the file you downloaded.
- Confirm it imported.
- Click on 'View list' and confirm it imported correctly.
Test 9
- Log in as an admin.
- Visit a course.
- Create a database module.
- Add a text input field to the module.
- Save the template.
- Add an entry with a tag (tag must contain more than 1 character).
- Click on the 'Add entry' tab again.
- Click on the link 'Manage standard tags'.
- Set the tag you just added to 'Standard'.
- Go back to the database module.
- Go to the 'Add entry' tab.
- Type the first character of the tag in the tag input.
- Confirm it gets suggested by the autocomplete input.
ShowPrerequisite. Log in as an admin. Visit 'Site Administration' > 'Advanced features'. Ensure 'Enable tags functionality' is enabled. Go to 'Site Administration' > 'Appearance' > 'Manage Tags'. Confirm 'Data records' is in the 'Default collection'. Create a course with two students enrolled. Test 1 Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a tag. View the entry. Click on the tag and confirm it takes you to the tag index page. Check that the database activity is listed. Confirm the links on the tag index page will take you back to the tagged entry. Test 2 Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a tag. Go to the course reset page. Check to remove all database tags. Submit the form. Confirm you get a message saying that the database tags have been removed. Go to the database entry and confirm all the tags have been deleted. Test 3 Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a tag. Go to the course reset page. Do not check anything. Submit the form. Look at the entry in the database and confirm the tag is still there. Go to the course reset page. Check to delete all entries. Confirm the 'Remove all database tags' checkbox becomes disabled. Submit the form. Confirm you get a message saying that the database entries have been removed. Click on the database and confirm all entries have been deleted. Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task tag_cron_task Look in your 'mdl_tag' table and confirm the tags were deleted as well. Test 4 Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a unique tag. Hide the module. Go to tag index page (currently in Boost you can't without visiting the URL (see MDL-57120 )) by going to <yoursite>/tag/index.php. Confirm you can search for the tag. Confirm when clicking on the tag it shows you information. Log in as a student. Go to <yoursite>/tag/index.php. Confirm you can see the tag (not ideal - see MDL-60186 ). Confirm clicking on the tag reveals no information. Test 5 Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a unique tag. Log in as a user who is NOT enrolled in the course. Go to <yoursite>/tag/index.php. Confirm you can see the tag (not ideal - see MDL-60186 ). Confirm clicking on the tag reveals no information. Test 6 Create a database activity with 'Approval required' set to 'Yes'. Add a text input field to the module. Save the template. Log in as a student. Add an entry with a tag. Do a search in the database module ( not tag index page) and confirm you can search for it. Visit the tag index page. Confirm you can see the tag entry and can also search for it. Confirm clicking on it takes you to the database activity. Log in as the admin. Visit the database module. Confirm you can see the entry but do not approve it. Do a search in the database module ( not tag index page) and confirm you can search for it. Visit the tag index page. Confirm you can see the tag entry and can also search for it. Confirm clicking on it takes you to the database activity. Log in as another student in the course. Do a search in the database module ( not tag index page) and confirm you can not search for it. Go to <yoursite>/tag/index.php. Confirm you can see the tag (not ideal - see MDL-60186 ). Confirm clicking on the tag reveals no information. Log in as the admin and approve both entries. Log in as one of the students. Do a search in the database module ( not tag index page) and confirm you can search for both tags. Visit the tag index page. Confirm you can see both tags. Confirm clicking on them shows the database module. Test 7 Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a tag. Create a backup of the database module. Restore this backup on another site also running integration master with tags enabled. Confirm the tags are present in the entry in the restored module. Test 8 Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a tag. Click on the 'Export' tab. Select to export all the items. Download the file. Go to the other site running integration master. Create a database activity. Add a field (stupid you have to do this but need to in order to get to the options menu). On the field page click on the cog in the top right and select 'Import entries'. Upload the file you downloaded. Confirm it imported. Click on 'View list' and confirm it imported correctly. Test 9 Log in as an admin. Visit a course. Create a database module. Add a text input field to the module. Save the template. Add an entry with a tag (tag must contain more than 1 character). Click on the 'Add entry' tab again. Click on the link 'Manage standard tags'. Set the tag you just added to 'Standard'. Go back to the database module. Go to the 'Add entry' tab. Type the first character of the tag in the tag input. Confirm it gets suggested by the autocomplete input.
Description
Currently unable to tag database entries
Attachments
- data records.png
- 52 kB
Issue Links
- has a non-specific relationship to
-
MDL-57457 Tagging book chapters
-
- Closed
-
- has been marked as being related by
-
MDL-61314 A teacher should be able to specify which field is used when listing database entries in a tag or global search
-
- Open
-
- Testing discovered
-
MDL-60186 It's possible to see tags of activities that are hidden
-
- Closed
-
-
MDL-60129 Not all activites support deleting tags during course reset
-
- Closed
-
-
MDL-60197 The 'select all/none' link on the database export page is not always necessary
-
- Closed
-
- will help resolve
-
MDL-21416 Expanding Tagging across more modules, especially Forum module
-
- Closed
-
(1 will help resolve)