Select Git revision
-
semantic-release-bot authored
# [0.43.0](https://github.com/saltstack-formulas/postgres-formula/compare/v0.42.0...v0.43.0) (2021-07-20) ### Bug Fixes * **redhat:** fix `pkg_deps` to be able to install PostgreSQL 13 ([060c8df6](https://github.com/saltstack-formulas/postgres-formula/commit/060c8df630ea4077a3d5a2b301fed56ed6ce1a45)) ### Continuous Integration * add Debian 11 Bullseye & update `yamllint` configuration [skip ci] ([1fa7c66b](https://github.com/saltstack-formulas/postgres-formula/commit/1fa7c66b8361357fc5372552ec713fd2dca15883)) * use `default` & `repo` InSpec suites ([a6c81972](https://github.com/saltstack-formulas/postgres-formula/commit/a6c81972a2c722d1dc3637acb412a8e1e513c998)) * **kitchen:** move `provisioner` block & update `run_command` [skip ci] ([e9da40b5](https://github.com/saltstack-formulas/postgres-formula/commit/e9da40b5707d1e3d7f55f0b526e89c917418d4f5)) ### Features * **codenamemap:** update to current supported Fedora versions ([8a11bd67](https://github.com/saltstack-formulas/postgres-formula/commit/8a11bd679a8a6175c796294dd0a5c759725de25d)) ### Tests * **inspec:** move common controls to the `share` profile ([22140963](https://github.com/saltstack-formulas/postgres-formula/commit/221409636290444aa06ef9e59fd324b94412a635)) * **inspec:** rename all files to avoid unnecessary `_spec` suffix ([a1837c24](https://github.com/saltstack-formulas/postgres-formula/commit/a1837c24f1b5210964e74f576805470f6db1a0cf)) * **pillar:** use separate pillars to test `default` & `repo` suites ([27473b98](https://github.com/saltstack-formulas/postgres-formula/commit/27473b9865e8d716aa991cd33e9e186815933483))
semantic-release-bot authored# [0.43.0](https://github.com/saltstack-formulas/postgres-formula/compare/v0.42.0...v0.43.0) (2021-07-20) ### Bug Fixes * **redhat:** fix `pkg_deps` to be able to install PostgreSQL 13 ([060c8df6](https://github.com/saltstack-formulas/postgres-formula/commit/060c8df630ea4077a3d5a2b301fed56ed6ce1a45)) ### Continuous Integration * add Debian 11 Bullseye & update `yamllint` configuration [skip ci] ([1fa7c66b](https://github.com/saltstack-formulas/postgres-formula/commit/1fa7c66b8361357fc5372552ec713fd2dca15883)) * use `default` & `repo` InSpec suites ([a6c81972](https://github.com/saltstack-formulas/postgres-formula/commit/a6c81972a2c722d1dc3637acb412a8e1e513c998)) * **kitchen:** move `provisioner` block & update `run_command` [skip ci] ([e9da40b5](https://github.com/saltstack-formulas/postgres-formula/commit/e9da40b5707d1e3d7f55f0b526e89c917418d4f5)) ### Features * **codenamemap:** update to current supported Fedora versions ([8a11bd67](https://github.com/saltstack-formulas/postgres-formula/commit/8a11bd679a8a6175c796294dd0a5c759725de25d)) ### Tests * **inspec:** move common controls to the `share` profile ([22140963](https://github.com/saltstack-formulas/postgres-formula/commit/221409636290444aa06ef9e59fd324b94412a635)) * **inspec:** rename all files to avoid unnecessary `_spec` suffix ([a1837c24](https://github.com/saltstack-formulas/postgres-formula/commit/a1837c24f1b5210964e74f576805470f6db1a0cf)) * **pillar:** use separate pillars to test `default` & `repo` suites ([27473b98](https://github.com/saltstack-formulas/postgres-formula/commit/27473b9865e8d716aa991cd33e9e186815933483))
deploy.php 2.51 KiB
<?php
// This file is part of Stack - http://stack.bham.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/>.
/**
* This script handles the various deploy/undeploy actions from questiontestrun.php.
*
* @copyright 2012 the Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir . '/questionlib.php');
require_once(dirname(__FILE__) . '/locallib.php');
// Get the parameters from the URL.
$questionid = required_param('questionid', PARAM_INT);
// Load the necessary data.
$questiondata = $DB->get_record('question', array('id' => $questionid), '*', MUST_EXIST);
$question = question_bank::load_question($questionid);
// Process any other URL parameters, and do require_login.
list($context, $seed, $urlparams) = qtype_stack_setup_question_test_page($question);
// Check permissions.
question_require_capability_on($questiondata, 'edit');
require_sesskey();
// Initialise $PAGE.
$nexturl = new moodle_url('/question/type/stack/questiontestrun.php', $urlparams);
$PAGE->set_url($nexturl); // Since this script always ends in a redirect.
$PAGE->set_heading($COURSE->fullname);
$PAGE->set_pagelayout('admin');
// Process deploy if applicable.
$deploy = optional_param('deploy', null, PARAM_INT);
if (!is_null($deploy)) {
$record = new stdClass();
$record->questionid = $question->id;
$record->seed = $deploy;
$DB->insert_record('qtype_stack_deployed_seeds', $record);
redirect($nexturl);
}
// Process undeploy if applicable.
$undeploy = optional_param('undeploy', null, PARAM_INT);
if (!is_null($undeploy)) {
$DB->delete_records('qtype_stack_deployed_seeds',
array('questionid' => $question->id, 'seed' => $undeploy));
// As we redirect, switch to the undeployed variant, so it easy to re-deploy
// if you just made a mistake.
$nexturl->param('seed', $undeploy);
redirect($nexturl);