MOBILE-4470 workshop: Improve assessment strategies loading
parent
f82b14d2fd
commit
7519ef7bdf
|
@ -35,13 +35,6 @@ export class AddonModWorkshopAssessmentStrategyAccumulativeHandlerLazyService
|
|||
extends AddonModWorkshopAssessmentStrategyAccumulativeHandlerService
|
||||
implements AddonWorkshopAssessmentStrategyHandler {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
|
|
@ -20,11 +20,19 @@ import {
|
|||
} from '@addons/mod/workshop/assessment/constants';
|
||||
import type { AddonModWorkshopAssessmentStrategyAccumulativeHandlerLazyService } from './handler-lazy';
|
||||
|
||||
export class AddonModWorkshopAssessmentStrategyAccumulativeHandlerService {
|
||||
export class AddonModWorkshopAssessmentStrategyAccumulativeHandlerService
|
||||
implements Partial<AddonWorkshopAssessmentStrategyHandler> {
|
||||
|
||||
name = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_ACCUMULATIVE_NAME;
|
||||
strategyName = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_ACCUMULATIVE_STRATEGY_NAME;
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +52,6 @@ export function getAssessmentStrategyHandlerInstance(): AddonWorkshopAssessmentS
|
|||
|
||||
lazyHandler.setEagerInstance(new AddonModWorkshopAssessmentStrategyAccumulativeHandlerService());
|
||||
lazyHandler.setLazyInstanceMethods([
|
||||
'isEnabled',
|
||||
'getComponent',
|
||||
'getOriginalValues',
|
||||
'hasDataChanged',
|
||||
|
|
|
@ -34,13 +34,6 @@ export class AddonModWorkshopAssessmentStrategyCommentsHandlerLazyService
|
|||
extends AddonModWorkshopAssessmentStrategyCommentsHandlerService
|
||||
implements AddonWorkshopAssessmentStrategyHandler {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
|
|
@ -20,11 +20,19 @@ import {
|
|||
} from '@addons/mod/workshop/assessment/constants';
|
||||
import type { AddonModWorkshopAssessmentStrategyCommentsHandlerLazyService } from './handler-lazy';
|
||||
|
||||
export class AddonModWorkshopAssessmentStrategyCommentsHandlerService {
|
||||
export class AddonModWorkshopAssessmentStrategyCommentsHandlerService
|
||||
implements Partial<AddonWorkshopAssessmentStrategyHandler> {
|
||||
|
||||
name = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_COMMENTS_NAME;
|
||||
strategyName = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_COMMENTS_STRATEGY_NAME;
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +52,6 @@ export function getAssessmentStrategyHandlerInstance(): AddonWorkshopAssessmentS
|
|||
|
||||
lazyHandler.setEagerInstance(new AddonModWorkshopAssessmentStrategyCommentsHandlerService());
|
||||
lazyHandler.setLazyInstanceMethods([
|
||||
'isEnabled',
|
||||
'getComponent',
|
||||
'getOriginalValues',
|
||||
'hasDataChanged',
|
||||
|
|
|
@ -34,13 +34,6 @@ export class AddonModWorkshopAssessmentStrategyNumErrorsHandlerLazyService
|
|||
extends AddonModWorkshopAssessmentStrategyNumErrorsHandlerService
|
||||
implements AddonWorkshopAssessmentStrategyHandler {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
|
|
@ -20,11 +20,19 @@ import {
|
|||
} from '@addons/mod/workshop/assessment/constants';
|
||||
import type { AddonModWorkshopAssessmentStrategyNumErrorsHandlerLazyService } from './handler-lazy';
|
||||
|
||||
export class AddonModWorkshopAssessmentStrategyNumErrorsHandlerService {
|
||||
export class AddonModWorkshopAssessmentStrategyNumErrorsHandlerService
|
||||
implements Partial<AddonWorkshopAssessmentStrategyHandler> {
|
||||
|
||||
name = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_NUMERRORS_NAME;
|
||||
strategyName = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_NUMERRORS_STRATEGY_NAME;
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +52,6 @@ export function getAssessmentStrategyHandlerInstance(): AddonWorkshopAssessmentS
|
|||
|
||||
lazyHandler.setEagerInstance(new AddonModWorkshopAssessmentStrategyNumErrorsHandlerService());
|
||||
lazyHandler.setLazyInstanceMethods([
|
||||
'isEnabled',
|
||||
'getComponent',
|
||||
'getOriginalValues',
|
||||
'hasDataChanged',
|
||||
|
|
|
@ -34,13 +34,6 @@ export class AddonModWorkshopAssessmentStrategyRubricHandlerLazyService
|
|||
extends AddonModWorkshopAssessmentStrategyRubricHandlerService
|
||||
implements AddonWorkshopAssessmentStrategyHandler {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
|
|
@ -20,11 +20,19 @@ import {
|
|||
} from '@addons/mod/workshop/assessment/constants';
|
||||
import type { AddonModWorkshopAssessmentStrategyRubricHandlerLazyService } from './handler-lazy';
|
||||
|
||||
export class AddonModWorkshopAssessmentStrategyRubricHandlerService {
|
||||
export class AddonModWorkshopAssessmentStrategyRubricHandlerService
|
||||
implements Partial<AddonWorkshopAssessmentStrategyHandler> {
|
||||
|
||||
name = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_RUBRIC_NAME;
|
||||
strategyName = ADDON_MOD_WORKSHOP_ASSESSMENT_STRATEGY_RUBRIC_STRATEGY_NAME;
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +52,6 @@ export function getAssessmentStrategyHandlerInstance(): AddonWorkshopAssessmentS
|
|||
|
||||
lazyHandler.setEagerInstance(new AddonModWorkshopAssessmentStrategyRubricHandlerService());
|
||||
lazyHandler.setLazyInstanceMethods([
|
||||
'isEnabled',
|
||||
'getComponent',
|
||||
'getOriginalValues',
|
||||
'hasDataChanged',
|
||||
|
|
Loading…
Reference in New Issue