Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking/tdr 9/handlebars 4 upgrade #379

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions migrations/Version202309191437281465_qtiItemPci.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

declare(strict_types=1);

namespace oat\qtiItemPci\migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\IrreversibleMigration;
use oat\tao\scripts\tools\migrations\AbstractMigration;
use oat\qtiItemPci\scripts\install\RegisterIMSPciAudioRecording;
use oat\qtiItemPci\scripts\install\RegisterPciAudioRecording;
use oat\qtiItemPci\scripts\install\RegisterPciLikertScale;
use oat\qtiItemPci\scripts\install\RegisterPciLiquid;
use oat\qtiItemPci\scripts\install\RegisterPciMathEntry;

/**
* Auto-generated Migration: Please modify to your needs!
*
* phpcs:disable Squiz.Classes.ValidClassName
*/
final class Version202309191437281465_qtiItemPci extends AbstractMigration
{
public function getDescription(): string
{
return 'Update PCIs (AudioRecording, LikertScale, Liquids, MathEntry) to work with Handlebars 4';
}

public function up(Schema $schema): void
{
$this->addReport(
$this->propagate(
new RegisterIMSPciAudioRecording()
)(
['2.0.0']
)
);

$this->addReport(
$this->propagate(
new RegisterPciAudioRecording()
)(
['1.0.0']
)
);

$this->addReport(
$this->propagate(
new RegisterPciLikertScale()
)(
['1.0.0']
)
);

$this->addReport(
$this->propagate(
new RegisterPciLiquid()
)(
['1.0.0']
)
);

$this->addReport(
$this->propagate(
new RegisterPciMathEntry()
)(
['3.0.0']
)
);
}

public function down(Schema $schema): void
{
throw new IrreversibleMigration(
'In order to undo this migration, restore the pre-Handlebars-4 versions of all the PCIs and run their registration scripts'
);
}
}
2 changes: 1 addition & 1 deletion views/js/loader/qtiItemPci.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/qtiItemPci.min.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"label": "Audio recording",
"short": "Audio",
"description": "Allow test taker to record audio",
"version": "0.14.5",
"version": "1.0.0",
"author": "Christophe Noël",
"email": "christophe@taotesting.com",
"tags": ["audio"],
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"label": "Likert Scale",
"short": "Likert",
"description": "A simple implementation of likert scale.",
"version": "0.6.0",
"version": "1.0.0",
"author": "Sam Sipasseuth",
"email": "sam@taotesting.com",
"tags": [
Expand Down
14 changes: 1 addition & 13 deletions views/js/pciCreator/dev/likertScaleInteraction/pciCreator.min.js

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

Large diffs are not rendered by default.

Loading