Skip to content

Commit

Permalink
MDL-71641 qbank_tagquestion: Add Tag question plugin to core
Browse files Browse the repository at this point in the history
This implementation will introduce a qbank plugin "tagquestion"
which will implement the tag question actions in the question
bank view by replacing the core class. Having this plugin
will give users the flexibility of enabling or
disabling this action.
  • Loading branch information
safatshahin committed Sep 6, 2021
1 parent 443a980 commit 1db23e8
Show file tree
Hide file tree
Showing 37 changed files with 1,472 additions and 382 deletions.
1 change: 1 addition & 0 deletions lib/classes/plugin_manager.php
Expand Up @@ -1943,6 +1943,7 @@ public static function standard_plugins_list($type) {
'editquestion',
'exportquestions',
'importquestions',
'tagquestion',
'viewcreator',
'viewquestionname',
'viewquestiontext',
Expand Down
2 changes: 1 addition & 1 deletion question/amd/build/edit_tags.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion question/amd/build/edit_tags.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion question/amd/build/repository.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion question/amd/build/repository.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion question/amd/build/selectors.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion question/amd/build/selectors.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions question/amd/src/edit_tags.js
Expand Up @@ -16,6 +16,8 @@
/**
* A javascript module to handle question tags editing.
*
* @deprecated since Moodle 4.0
* @todo Final deprecation on Moodle 4.4 MDL-72438
* @module core_question/edit_tags
* @copyright 2018 Simey Lameze <simey@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down Expand Up @@ -268,6 +270,8 @@ define([

return {
init: function(root) {
window.console.warn('warn: The core_question/repository has been deprecated.' +
'Please use qbank_tagquestion/repository instead.');
root = $(root);
registerEventListeners(root);
}
Expand Down
4 changes: 4 additions & 0 deletions question/amd/src/repository.js
Expand Up @@ -16,6 +16,8 @@
/**
* A javascript module to handle question ajax actions.
*
* @deprecated since Moodle 4.0
* @todo Final deprecation on Moodle 4.4 MDL-72438
* @module core_question/repository
* @copyright 2017 Simey Lameze <lameze@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand All @@ -30,6 +32,8 @@ define(['jquery', 'core/ajax'], function($, Ajax) {
* @return {promise}
*/
var submitTagCreateUpdateForm = function(questionId, contextId, formdata) {
window.console.warn('warn: The core_question/repository has been deprecated.' +
'Please use qbank_tagquestion/repository instead.');
var request = {
methodname: 'core_question_submit_tags_form',
args: {
Expand Down
3 changes: 3 additions & 0 deletions question/amd/src/selectors.js
Expand Up @@ -16,11 +16,14 @@
/**
* The purpose of this module is to centralize selectors related to question.
*
* @deprecated since Moodle 4.0
* @todo Final deprecation on Moodle 4.4 MDL-72438
* @module core_question/question_selectors
* @copyright 2018 Simey Lameze <lameze@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define([], function() {
window.console.warn('warn: The core_question/selectors has been deprecated. Please use qbank_tagquestion/selectors instead.');
return {
actions: {
save: '[data-action="save"]',
Expand Down
2 changes: 2 additions & 0 deletions question/bank/tagquestion/amd/build/edit_tags.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1db23e8

Please sign in to comment.