Skip to content

Commit

Permalink
Merge branch 'release-6.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bugalot committed Feb 9, 2018
2 parents da09b14 + 1f1c9b8 commit 7e11651
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'label' => 'Result core extension',
'description' => 'Results Server management and exposed interfaces for results data submission',
'license' => 'GPL-2.0',
'version' => '6.0.1',
'version' => '6.1.0',
'author' => 'Open Assessment Technologies',
//taoResults may be needed for the taoResults taoResultServerModel that uses taoResults db storage
'requires' => array(
Expand Down
10 changes: 7 additions & 3 deletions models/classes/AbstractResultService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

abstract class AbstractResultService extends ConfigurableService implements ResultServerService
{
/** @var bool $configurable Whether this ResultServerService instance is configurable */
protected $configurable = true;

/**
* Starts or resume a taoResultServerStateFull session for results submission
Expand Down Expand Up @@ -76,9 +78,11 @@ public function instantiateResultStorage($serviceId)

abstract public function getResultStorage($deliveryId);

/**
* @inheritdoc
*/
public function isConfigurable()
{
return $this->configurable;
}

public function deleteDeliveryExecutionData(DeliveryExecutionDeleteRequest $request)
{
$storage = $this->getResultStorage($request->getDeliveryResource()->getUri());
Expand Down
2 changes: 2 additions & 0 deletions models/classes/ResultServerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ public function initResultServer($compiledDelivery, $executionIdentifier, $userU
*/
public function getResultStorage($deliveryId);

public function isConfigurable();

}
3 changes: 3 additions & 0 deletions models/classes/implementation/OntologyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class OntologyService extends AbstractResultService
/** @deprecated */
const PROPERTY_RESULT_SERVER = 'http://www.tao.lu/Ontologies/TAODelivery.rdf#DeliveryResultServer';

/** @var bool $configurable Whether this ResultServerService instance is configurable */
protected $configurable = false;

/**
* Returns the storage engine of the result server
*
Expand Down
2 changes: 1 addition & 1 deletion scripts/update/class.Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ public function update($initialVersion) {
$this->setVersion('5.1.0');
}

$this->skip('5.1.0', '6.0.1');
$this->skip('5.1.0', '6.1.0');
}
}

0 comments on commit 7e11651

Please sign in to comment.