Skip to content

Instantly share code, notes, and snippets.

View andrewnicols's full-sized avatar

Andrew Lyons andrewnicols

  • Moodle Pty Ltd
  • Perth, Australia
View GitHub Profile
import PendingPromise from 'core/pending';
export default (...args) => {
const pendingPromise = new PendingPromise('core/promise');
return Promise.resolve.apply(this, args)
.then(result => {
pendingPromise.resolve();
return new Promise().resolve.apply(this, result);
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle 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
Hi all,
After discussion with others in the Integration team, and careful consideration, the decision has been made to close this issue as "Will not fix".
Adding additional database engines to the list of supported engines is an extremely large undertaking. Even if the initial support level appears trivial, it is highly that this will introduce severe limitations to the product, and potential new features.
Whilst SQLite has many benefits, we do not feel that it has the featureset required to support the entire of Moodle LMS product in either its current form, nor potential future features that we introduce int he future. Therefore we cannot entertain adding full SQLite support in this, or any future version of Moodle.
That said, we will of course continue to support SQLite in locations where it is already supported. Notably areas such as the database enrolment, and database authentication plugins.
<?php
namespace Facebook\WebDriver;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
// start Chrome with 5 second timeout
<?php
namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
// start Chrome with 5 second timeout
$host = 'http://localhost:4444/wd/hub'; // this is the default
<?php
namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
// start Chrome with 5 second timeout
$host = 'http://localhost:4444/wd/hub'; // this is the default
#!/bin/bash
WDURL="http://localhost:9515";
#RESPONSE=`curl -s -d '{"capabilities": {"firstMatch": [{"acceptInsecureCerts": false, "browserName": "chrome"}]}}' "${WDURL}/session"`
RESPONSE=`curl -s -d '{"capabilities": {"firstMatch": [{"acceptInsecureCerts": false, "browserName": "chrome", "goog:chromeOptions": {"args": ["-headless"]}}]}}' "${WDURL}/session"`
SESSIONID=`echo "${RESPONSE}" | python3 -c "import sys, json; print(json.load(sys.stdin)['value']['sessionId'])"`
echo "Setting URL:"
curl -d '{"url":"http:\/\/localhost\/date.html"}' "${WDURL}/session/${SESSIONID}/url"
#~/bin/bash
set -e
docker run \
--rm \
-d \
--name selenium \
-p 4444:4444 \
-e START_XVFB=false \
{
"title": "Interactive Video",
"description": "Put texts, tasks and other medias on top of your video.",
"license": "MIT",
"contentType": "Media",
"majorVersion": 1,
"minorVersion": 20,
"patchVersion": 4,
"machineName": "H5P.InteractiveVideo",
"author": "Joubel",
{
"title": "Interactive Video",
"description": "Put texts, tasks and other medias on top of your video.",
"license": "MIT",
"contentType": "Media",
"majorVersion": 1,
"minorVersion": 20,
"patchVersion": 4,
"machineName": "H5P.InteractiveVideo",
"author": "Joubel",