Skip to content

Commit

Permalink
T&A: add metric to collect inconsistencies for #37759 (#7426) / Fixin…
Browse files Browse the repository at this point in the history
…g WFE Setup Agent
  • Loading branch information
mbecker-databay committed Sep 26, 2024
1 parent 8f2e851 commit a7a4a8d
Showing 1 changed file with 1 addition and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,56 +19,15 @@
declare(strict_types=1);

use ILIAS\Setup\Agent\NullAgent;
use ILIAS\Setup\Objective;
use ILIAS\Setup\Metrics;
use ILIAS\Setup\Config;
use ILIAS\Setup;
use ILIAS\Refinery\Transformation;
use ILIAS\Test\Setup\ilManScoringSettingsToOwnDbTableMigration;
use ILIAS\Test\Setup\ilRemoveDynamicTestsAndCorrespondingDataMigration;
use ILIAS\Test\Setup\ilSeparateQuestionListSettingMigration;

class ilTestSetupAgent extends NullAgent
class ilWorkflowEngineSetupAgent extends NullAgent
{
use Setup\Agent\HasNoNamedObjective;

public function getUpdateObjective(ILIAS\Setup\Config $config = null): Objective
{
return new ilDatabaseUpdateStepsExecutedObjective(new ilTest9DBUpdateSteps());
}

public function getStatusObjective(Metrics\Storage $storage): Objective
{
return new Setup\ObjectiveCollection(
"Metrics from the Test & Assessment",
false,
new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new ilTest9DBUpdateSteps()),
new ilTestDatabaseInconsistencyMetricsCollectedObjective($storage)
);
}

public function hasConfig(): bool
{
return false;
}

public function getArrayToConfigTransformation(): Transformation
{
throw new \LogicException("Agent has no config.");
}

public function getInstallObjective(Config $config = null): Objective
{
return new Setup\Objective\NullObjective();
}

public function getBuildObjective(): Objective
{
return new Setup\Objective\NullObjective();
}

public function getMigrations(): array
{
return [];
}
}

0 comments on commit a7a4a8d

Please sign in to comment.