@@ -10,40 +10,24 @@ import {
10
10
V3_CERTIFICATION_CENTER_USER_ID ,
11
11
V3_PRO_PILOT_EXTERNAL_ID ,
12
12
} from './constants.js' ;
13
- import { createCompetenceScoringConfiguration } from './create-competence-scoring-configuration.js' ;
14
- import { createIssueReportCategories } from './create-issue-report-categories.js' ;
15
13
import { proOrganizationWithCertifCenter } from './create-pro-organization-with-certif-center.js' ;
16
14
import { scoOrganizationManaginAgriStudentsWithFregata } from './create-sco-organization-managing-agri-student-with-fregata.js' ;
17
15
import { scoOrganizationManaginStudentsWithSiecle } from './create-sco-organization-managing-student-with-siecle.js' ;
18
16
import { scoOrganizationNotManagingStudents } from './create-sco-organization-not-managing-students.js' ;
19
- import { createScoringConfiguration } from './create-scoring -configuration.js' ;
17
+ import { setupConfigurations } from './setup -configuration.js' ;
20
18
21
19
async function teamCertificationDataBuilder ( { databaseBuilder } ) {
22
20
await scoOrganizationManaginAgriStudentsWithFregata ( { databaseBuilder } ) ;
23
21
await scoOrganizationManaginStudentsWithSiecle ( { databaseBuilder } ) ;
24
22
await proOrganizationWithCertifCenter ( { databaseBuilder } ) ;
25
23
await scoOrganizationNotManagingStudents ( { databaseBuilder } ) ;
26
- _createV3CertificationConfiguration ( { databaseBuilder } ) ;
27
- createCompetenceScoringConfiguration ( { databaseBuilder } ) ;
28
- createScoringConfiguration ( { databaseBuilder } ) ;
29
24
await _createV3PilotCertificationCenter ( { databaseBuilder } ) ;
30
25
await _createSuccessCertifiableUser ( { databaseBuilder } ) ;
31
- await createIssueReportCategories ( { databaseBuilder } ) ;
26
+ await setupConfigurations ( { databaseBuilder } ) ;
32
27
}
33
28
34
29
export { teamCertificationDataBuilder } ;
35
30
36
- function _createV3CertificationConfiguration ( { databaseBuilder } ) {
37
- databaseBuilder . factory . buildFlashAlgorithmConfiguration ( {
38
- maximumAssessmentLength : 32 ,
39
- challengesBetweenSameCompetence : null ,
40
- limitToOneQuestionPerTube : true ,
41
- enablePassageByAllCompetences : true ,
42
- variationPercent : 0.5 ,
43
- createdAt : new Date ( '1977-10-19' ) ,
44
- } ) ;
45
- }
46
-
47
31
async function _createV3PilotCertificationCenter ( { databaseBuilder } ) {
48
32
databaseBuilder . factory . buildUser . withRawPassword ( {
49
33
id : V3_CERTIFICATION_CENTER_USER_ID ,
0 commit comments