Skip to content

Commit

Permalink
Prepare for the 4.3.9 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwinc committed Feb 24, 2021
1 parent 9337a73 commit 9099bce
Show file tree
Hide file tree
Showing 11 changed files with 8,469 additions and 8,372 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# STACK 4.3.8 [![Build Status](https://api.travis-ci.org/maths/moodle-qtype_stack.svg?branch=master)](https://travis-ci.org/github/maths/moodle-qtype_stack/)
# STACK 4.3.9 [![Build Status](https://api.travis-ci.org/maths/moodle-qtype_stack.svg?branch=master)](https://travis-ci.org/github/maths/moodle-qtype_stack/)

STACK is an assessment system for mathematics, science and related disciplines. STACK is a question type for the Moodle learning management system, and also the ILIAS learning management system.

Expand All @@ -8,7 +8,7 @@ STACK is based on continuing research and use at the University of Edinburgh, th

## Current state of development

STACK 4.3 contains some important re-engineering of core components. This will enable significant new features in future releases. STACK 4.3.8 contains minor bug fixes and minor improvements.
STACK 4.3 contains some important re-engineering of core components. This will enable significant new features in future releases. STACK 4.3.9 contains minor bug fixes and minor improvements, especially to performance.

Please continue to report any bugs you find at https://github.com/maths/moodle-qtype_stack/issues.

Expand Down
7 changes: 7 additions & 0 deletions adminui/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# STACK administration UI

The scripts in this directory allow users to perform STACK admin functions. Typically these are general or bulk tasks. Individual question task scripts are one level up (e.g. deploy, exportone, question tests). These scripts are available through Moodle, but are not accessible to students or in most cases typical teachers.

Users typically require capability `qtype/stack:usediagnostictools`.

Some scripts here may be temporary for the convenience of developers.
75 changes: 75 additions & 0 deletions adminui/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php
// This file is part of STACK - http://stack.maths.ed.ac.uk/
//
// Stack is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Stack is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Stack. If not, see <http://www.gnu.org/licenses/>.

/**
* Configuration settings declaration information for the Stack question type.
*
* @package qtype_stack
* @copyright 2021 The University of Edinburgh
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

require_once(__DIR__ . '/../../../../config.php');
require_once(__DIR__ . '/../stack/utils.class.php');
require_once(__DIR__ . '/../locallib.php');

// Authentication. Because of the cache, it is safe to make this available to any
// logged in user.
require_login();
require_capability('qtype/stack:usediagnostictools', context_system::instance());

// Useful links.
$links = array(
get_string('stackDoc_docs_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/doc/doc.php/'))),
get_string('chat_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/caschat.php'))),
get_string('stackInstall_testsuite_title_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/answertests.php'))),
get_string('stackInstall_input_title_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/studentinputs.php'))),
get_string('bulktestindexintro_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/bulktestindex.php'))),
get_string('stackInstall_replace_dollars_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/replacedollarsindex.php'))),
);

// Set up the page object.
$PAGE->set_context(context_system::instance());
$PAGE->set_url('/question/type/stack/adminui/index.php');
$title = stack_string('settingusefullinks');
$PAGE->set_pagelayout('report');
$PAGE->set_title($title);


echo $OUTPUT->header();
echo $OUTPUT->heading($title);

$list = '';
foreach ($links as $link) {
$list .= html_writer::tag('li', $link);
}
echo html_writer::tag('ul', $list);

/* Add the version number and logos to the front page. */
$settings = get_config('qtype_stack');
$libs = array_map('trim', explode(',', $settings->maximalibraries));
asort($libs);
$libs = implode(', ', $libs);
$vstr = $settings->version . ' (' . $libs . ')';
echo html_writer::tag('p', stack_string('stackDoc_version', $vstr));

echo $OUTPUT->footer();
2 changes: 1 addition & 1 deletion doc/en/Authoring/Answer_tests_results.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions doc/en/Developer/Development_track.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ How to report bugs and make suggestions is described on the [community](../About

## Version 4.3.9

Mostly minor bug fixes.

* Done: Add in additional cache `compiledcache` to reduce validation overheads by compiling questions.
* Done. Add in local.mac for site specific code.
* Done. Move STACK admin UI scripts to `adminui`.
Expand Down
6 changes: 5 additions & 1 deletion doc/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ function report($d) {
$a[] = array($fpath, 'F', 'Found file ' . "$fpath");

if ($fsize >= 18000) {
$a[] = array($fpath, 'W', "Large file ($fsize bytes)");
// Ignore a couple of known large files.
if (substr_count($fpath, "Authoring/Answer_tests_results.md") === 0 &&
substr_count($fpath, "Developer/Development_history.md") === 0) {
$a[] = array($fpath, 'W', "Large file ($fsize bytes)");
}
}

$meta = stack_docs_page_metadata($fpath);
Expand Down
5 changes: 5 additions & 0 deletions doc/meta_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
"description":"Documentation for question authors using STACK, including a quick start guide and how to use common STACK features."
},
{
"file":"Answer_tests_results.md",
"title":"Answer test results",
"description":"This page, automatically generated from the STACK unit tests, helps teachers understand what the answer tests actually consiser to be the same and different."
},
{
"file":"Actuarial.md",
"title":"Actuarial Notation - STACK Documentation",
"description":"An overview of using actuarial notation in STACK."
Expand Down
Binary file modified samplequestions/STACK-demo.mbz
Binary file not shown.
58 changes: 29 additions & 29 deletions samplequestions/input-sample-questions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<!-- question: 0 -->
<question type="category">
<category>
<text>$course$/top/Default for Scratch/Input Samples</text>
<text>top/Default for Scratch/Input Samples</text>
</category>
<info format="moodle_auto_format">
<text></text>
</info>
<idnumber></idnumber>
</question>

<!-- question: 4872 -->
<!-- question: 7543 -->
<question type="description">
<name>
<text>Style check: HELM</text>
Expand Down Expand Up @@ -63,7 +63,7 @@
<idnumber></idnumber>
</question>

<!-- question: 4873 -->
<!-- question: 7544 -->
<question type="description">
<name>
<text>Style check: proof.</text>
Expand Down Expand Up @@ -343,7 +343,7 @@ Consider the following proof by induction. \(P(n)\)
<idnumber></idnumber>
</question>

<!-- question: 4874 -->
<!-- question: 7545 -->
<question type="stack">
<name>
<text>Algebraic input</text>
Expand Down Expand Up @@ -469,7 +469,7 @@ Consider the following proof by induction. \(P(n)\)
</qtest>
</question>

<!-- question: 4875 -->
<!-- question: 7546 -->
<question type="stack">
<name>
<text>Algebraic input (align to the right)</text>
Expand Down Expand Up @@ -608,7 +608,7 @@ Consider the following proof by induction. \(P(n)\)
</qtest>
</question>

<!-- question: 4876 -->
<!-- question: 7547 -->
<question type="stack">
<name>
<text>Algebraic input (answer box sizes test)</text>
Expand Down Expand Up @@ -905,7 +905,7 @@ Consider the following proof by induction. \(P(n)\)
</qtest>
</question>

<!-- question: 4877 -->
<!-- question: 7548 -->
<question type="stack">
<name>
<text>Algebraic input (compact)</text>
Expand Down Expand Up @@ -1031,7 +1031,7 @@ Consider the following proof by induction. \(P(n)\)
</qtest>
</question>

<!-- question: 4878 -->
<!-- question: 7549 -->
<question type="stack">
<name>
<text>Algebraic input (empty answer permitted)</text>
Expand Down Expand Up @@ -1232,7 +1232,7 @@ Consider the following proof by induction. \(P(n)\)
</qtest>
</question>

<!-- question: 4879 -->
<!-- question: 7550 -->
<question type="stack">
<name>
<text>Algebraic input (with simplification)</text>
Expand Down Expand Up @@ -1372,7 +1372,7 @@ Consider the following proof by induction. \(P(n)\)
</qtest>
</question>

<!-- question: 4880 -->
<!-- question: 7551 -->
<question type="stack">
<name>
<text>Checkbox</text>
Expand Down Expand Up @@ -1504,7 +1504,7 @@ ta:append(ta,[tao]);]]></text>
</qtest>
</question>

<!-- question: 4881 -->
<!-- question: 7552 -->
<question type="stack">
<name>
<text>Checkbox (no body LaTeX)</text>
Expand Down Expand Up @@ -1636,7 +1636,7 @@ ta:append(ta,[tao]);]]></text>
</qtest>
</question>

<!-- question: 4882 -->
<!-- question: 7553 -->
<question type="stack">
<name>
<text>Checkbox (plots in options)</text>
Expand Down Expand Up @@ -1858,7 +1858,7 @@ incorr1:mcq_incorrect(ta1);]]></text>
</tags>
</question>

<!-- question: 4883 -->
<!-- question: 7554 -->
<question type="stack">
<name>
<text>Checkbox (Show teacher's answer)</text>
Expand Down Expand Up @@ -1990,7 +1990,7 @@ ta:[ta1,ta2,ta3,ta4,ta0];]]></text>
</qtest>
</question>

<!-- question: 4884 -->
<!-- question: 7555 -->
<question type="stack">
<name>
<text>Dropdown (shuffle)</text>
Expand Down Expand Up @@ -2139,7 +2139,7 @@ ta:append(ta,[tao]);]]></text>
</qtest>
</question>

<!-- question: 4885 -->
<!-- question: 7556 -->
<question type="stack">
<name>
<text>Equiv input test (compact)</text>
Expand Down Expand Up @@ -2253,7 +2253,7 @@ ta:[p,x=(4-7)/3,x=-1]</text>
</qtest>
</question>

<!-- question: 4886 -->
<!-- question: 7557 -->
<question type="stack">
<name>
<text>Equiv input test (let, or +-)</text>
Expand Down Expand Up @@ -2392,7 +2392,7 @@ p:first(tal);</text>
</qtest>
</question>

<!-- question: 4887 -->
<!-- question: 7558 -->
<question type="stack">
<name>
<text>Matrix</text>
Expand Down Expand Up @@ -2517,7 +2517,7 @@ p:first(tal);</text>
</qtest>
</question>

<!-- question: 4888 -->
<!-- question: 7559 -->
<question type="stack">
<name>
<text>Matrix (varmatrix)</text>
Expand Down Expand Up @@ -2745,7 +2745,7 @@ sz2:matrix_size(ans2);</text>
</qtest>
</question>

<!-- question: 4889 -->
<!-- question: 7560 -->
<question type="stack">
<name>
<text>Matrix-multi</text>
Expand Down Expand Up @@ -2899,7 +2899,7 @@ M2:matrix([a,b],[c,d]);</text>
</qtest>
</question>

<!-- question: 4890 -->
<!-- question: 7561 -->
<question type="stack">
<name>
<text>Notes</text>
Expand Down Expand Up @@ -3011,7 +3011,7 @@ M2:matrix([a,b],[c,d]);</text>
</qtest>
</question>

<!-- question: 4891 -->
<!-- question: 7562 -->
<question type="stack">
<name>
<text>Numerical input (min sf)</text>
Expand Down Expand Up @@ -3136,7 +3136,7 @@ M2:matrix([a,b],[c,d]);</text>
</qtest>
</question>

<!-- question: 4892 -->
<!-- question: 7563 -->
<question type="stack">
<name>
<text>Radio</text>
Expand Down Expand Up @@ -3255,7 +3255,7 @@ ta:append(ta,[tao]);]]></text>
</qtest>
</question>

<!-- question: 4893 -->
<!-- question: 7564 -->
<question type="stack">
<name>
<text>Radio (compact)</text>
Expand Down Expand Up @@ -3374,7 +3374,7 @@ ta:append(ta,[tao]);]]></text>
</qtest>
</question>

<!-- question: 4894 -->
<!-- question: 7565 -->
<question type="stack">
<name>
<text>Single char</text>
Expand Down Expand Up @@ -3499,7 +3499,7 @@ ta:append(ta,[tao]);]]></text>
</qtest>
</question>

<!-- question: 4895 -->
<!-- question: 7566 -->
<question type="stack">
<name>
<text>String input</text>
Expand Down Expand Up @@ -3636,7 +3636,7 @@ This input is not, perhaps it is used to store JSXGraph state?
</qtest>
</question>

<!-- question: 4896 -->
<!-- question: 7567 -->
<question type="stack">
<name>
<text>Textarea test</text>
Expand Down Expand Up @@ -3748,7 +3748,7 @@ This input is not, perhaps it is used to store JSXGraph state?
</qtest>
</question>

<!-- question: 4897 -->
<!-- question: 7568 -->
<question type="stack">
<name>
<text>Textarea test (compact)</text>
Expand Down Expand Up @@ -3860,7 +3860,7 @@ This input is not, perhaps it is used to store JSXGraph state?
</qtest>
</question>

<!-- question: 4898 -->
<!-- question: 7569 -->
<question type="stack">
<name>
<text>True/false</text>
Expand Down Expand Up @@ -3985,7 +3985,7 @@ This input is not, perhaps it is used to store JSXGraph state?
</qtest>
</question>

<!-- question: 4899 -->
<!-- question: 7570 -->
<question type="stack">
<name>
<text>Units</text>
Expand Down
Loading

0 comments on commit 9099bce

Please sign in to comment.