Skip to content

Commit 1e818b6

Browse files
authoredMar 20, 2025
refactor(api): remove NUMBER_OF_CHALLENGES_FOR_FLASH_METHOD env variable
1 parent 4ea6715 commit 1e818b6

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed
 

‎api/sample.env

-3
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,6 @@ ENABLE_KNEX_PERFORMANCE_MONITORING=false
691691
# FLASH METHOD CHALLENGES
692692
# ========
693693

694-
# Number of challenges given to the user during a flash test.
695-
NUMBER_OF_CHALLENGES_FOR_FLASH_METHOD=48
696-
697694
# Success probability threshold used to compute the minimum capability
698695
# to succeed on a challenge
699696
SUCCESS_PROBABILITY_THRESHOLD=0.95

‎api/src/shared/config.js

-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ const configuration = (function () {
278278
garAccessV2: toBoolean(process.env.GAR_ACCESS_V2),
279279
maxReachableLevel: _getNumber(process.env.MAX_REACHABLE_LEVEL, 5),
280280
newYearOrganizationLearnersImportDate: _getDate(process.env.NEW_YEAR_ORGANIZATION_LEARNERS_IMPORT_DATE),
281-
numberOfChallengesForFlashMethod: _getNumber(process.env.NUMBER_OF_CHALLENGES_FOR_FLASH_METHOD),
282281
successProbabilityThreshold: parseFloat(process.env.SUCCESS_PROBABILITY_THRESHOLD ?? '0.95'),
283282
pixCertifScoBlockedAccessDateLycee: process.env.PIX_CERTIF_SCO_BLOCKED_ACCESS_DATE_LYCEE,
284283
pixCertifScoBlockedAccessDateCollege: process.env.PIX_CERTIF_SCO_BLOCKED_ACCESS_DATE_COLLEGE,
@@ -507,7 +506,6 @@ const configuration = (function () {
507506
config.features.dayBeforeCompetenceResetV2 = 7;
508507
config.features.garAccessV2 = false;
509508
config.features.maxReachableLevel = 5;
510-
config.features.numberOfChallengesForFlashMethod = 10;
511509
config.features.pixCertifScoBlockedAccessDateLycee = null;
512510
config.features.pixCertifScoBlockedAccessDateCollege = null;
513511

‎api/tests/certification/shared/unit/domain/models/FlashAssessmentAlgorithm_test.js

-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ describe('Unit | Domain | Models | FlashAssessmentAlgorithm | FlashAssessmentAlg
9292
const remainingAnswersToGive = 1;
9393
const initialCapacity = config.v3Certification.defaultCandidateCapacity;
9494
const computedCapacity = 2;
95-
config.features.numberOfChallengesForFlashMethod = 20;
9695
const algorithm = new FlashAssessmentAlgorithm({
9796
flashAlgorithmImplementation,
9897
configuration: _getAlgorithmConfig({
@@ -166,7 +165,6 @@ describe('Unit | Domain | Models | FlashAssessmentAlgorithm | FlashAssessmentAlg
166165
const remainingAnswersToGive = 1;
167166
const initialCapacity = config.v3Certification.defaultCandidateCapacity;
168167
const computedCapacity = 2;
169-
config.features.numberOfChallengesForFlashMethod = 20;
170168
const algorithm = new FlashAssessmentAlgorithm({
171169
flashAlgorithmImplementation,
172170
configuration: _getAlgorithmConfig({

‎docker/sample.env

-3
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,6 @@ ENABLE_KNEX_PERFORMANCE_MONITORING=false
661661
# FLASH METHOD CHALLENGES
662662
# ========
663663

664-
# Number of challenges given to the user during a flash test.
665-
NUMBER_OF_CHALLENGES_FOR_FLASH_METHOD=48
666-
667664
# Success probability threshold used to compute the minimum capability
668665
# to succeed on a challenge
669666
SUCCESS_PROBABILITY_THRESHOLD=0.95

0 commit comments

Comments
 (0)
Please sign in to comment.