Skip to content

Commit

Permalink
[TECH] ♻️ déplacement de area-repository vers le répertoire `src/sh…
Browse files Browse the repository at this point in the history
…ared`

 #8249
  • Loading branch information
pix-service-auto-merge authored Mar 5, 2024
2 parents 3336f4e + 22bb22e commit c17d840
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ReproducibilityRate } from '../../models/ReproducibilityRate.js';
import { CompetenceMark } from '../../models/CompetenceMark.js';
import { CertificationAssessmentScore } from '../../../../src/certification/scoring/domain/models/CertificationAssessmentScore.js';
import { AnswerCollectionForScoring } from '../../models/AnswerCollectionForScoring.js';
import * as areaRepository from '../../../infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../../src/shared/infrastructure/repositories/area-repository.js';
import { CertificationVersion } from '../../../../src/shared/domain/models/CertificationVersion.js';

function _selectAnswersMatchingCertificationChallenges(answers, certificationChallenges) {
Expand Down
2 changes: 1 addition & 1 deletion api/lib/domain/usecases/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as activityAnswerRepository from '../../../src/school/infrastructure/re
import * as adminMemberRepository from '../../../src/shared/infrastructure/repositories/admin-member-repository.js';
import * as algorithmDataFetcherService from '../../domain/services/algorithm-methods/data-fetcher.js';
import * as answerRepository from '../../../src/shared/infrastructure/repositories/answer-repository.js';
import * as areaRepository from '../../infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../src/shared/infrastructure/repositories/area-repository.js';
import * as assessmentRepository from '../../../src/shared/infrastructure/repositories/assessment-repository.js';
import * as assessmentResultRepository from '../../../src/shared/infrastructure/repositories/assessment-result-repository.js';
import * as attachableTargetProfileRepository from '../../infrastructure/repositories/attachable-target-profiles-repository.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CampaignParticipationResult } from '../../domain/models/CampaignPartici
import * as campaignParticipationRepository from './campaign-participation-repository.js';
import * as campaignRepository from './campaign-repository.js';
import * as competenceRepository from '../../../src/shared/infrastructure/repositories/competence-repository.js';
import * as areaRepository from './area-repository.js';
import * as areaRepository from '../../../src/shared/infrastructure/repositories/area-repository.js';
import * as assessmentRepository from '../../../src/shared/infrastructure/repositories/assessment-repository.js';
import * as knowledgeElementRepository from './knowledge-element-repository.js';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as placementProfileService from '../../domain/services/placement-profil
import { NotFoundError } from '../../../lib/domain/errors.js';
import { knex } from '../../../db/knex-database-connection.js';
import * as competenceRepository from '../../../src/shared/infrastructure/repositories/competence-repository.js';
import * as areaRepository from './area-repository.js';
import * as areaRepository from '../../../src/shared/infrastructure/repositories/area-repository.js';

const findProfile = async function ({ campaignId, campaignParticipationId, locale }) {
const profile = await _fetchCampaignProfileAttributesFromCampaignParticipation(campaignId, campaignParticipationId);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as areaRepository from './area-repository.js';
import * as areaRepository from '../../../src/shared/infrastructure/repositories/area-repository.js';
import { CompetenceTree } from '../../domain/models/CompetenceTree.js';

const get = async function ({ locale, dependencies = { areaRepository } } = {}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as tubeRepository from './tube-repository.js';
import * as thematicRepository from './thematic-repository.js';
import * as campaignRepository from './campaign-repository.js';
import * as competenceRepository from '../../../src/shared/infrastructure/repositories/competence-repository.js';
import * as areaRepository from './area-repository.js';
import * as areaRepository from '../../../src/shared/infrastructure/repositories/area-repository.js';
import * as frameworkRepository from './framework-repository.js';
import * as skillRepository from './skill-repository.js';
import { LearningContent } from '../../domain/models/LearningContent.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AssessmentResult } from '../../domain/read-models/participant-results/A
import * as competenceRepository from '../../../src/shared/infrastructure/repositories/competence-repository.js';
import * as answerRepository from '../../../src/shared/infrastructure/repositories/answer-repository.js';
import * as challengeRepository from '../../../src/shared/infrastructure/repositories/challenge-repository.js';
import * as areaRepository from './area-repository.js';
import * as areaRepository from '../../../src/shared/infrastructure/repositories/area-repository.js';
import * as knowledgeElementRepository from './knowledge-element-repository.js';
import * as flashAssessmentResultRepository from './flash-assessment-result-repository.js';
import * as campaignRepository from './campaign-repository.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as competenceRepository from '../../../../shared/infrastructure/repositories/competence-repository.js';
import * as areaRepository from '../../../../../lib/infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../../shared/infrastructure/repositories/area-repository.js';
import { CompetenceForScoring } from '../../domain/models/CompetenceForScoring.js';
import { knex } from '../../../../../db/knex-database-connection.js';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NotFoundError } from '../../../../lib/domain/errors.js';
import { DomainTransaction } from '../../../shared/domain/DomainTransaction.js';
import { TrainingTriggerForAdmin } from '../../domain/read-models/TrainingTriggerForAdmin.js';
import { TrainingTriggerTube } from '../../domain/models/TrainingTriggerTube.js';
import * as areaRepository from '../../../../lib/infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../shared/infrastructure/repositories/area-repository.js';
import * as competenceRepository from '../../../shared/infrastructure/repositories/competence-repository.js';
import * as thematicRepository from '../../../../lib/infrastructure/repositories/thematic-repository.js';
import * as tubeRepository from '../../../../lib/infrastructure/repositories/tube-repository.js';
Expand Down
2 changes: 1 addition & 1 deletion api/src/evaluation/domain/usecases/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { dirname, join } from 'node:path';
import { importNamedExportsFromDirectory } from '../../../shared/infrastructure/utils/import-named-exports-from-directory.js';
import { injectDependencies } from '../../../shared/infrastructure/utils/dependency-injection.js';
import * as answerRepository from '../../../shared/infrastructure/repositories/answer-repository.js';
import * as areaRepository from '../../../../lib/infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../shared/infrastructure/repositories/area-repository.js';
import * as assessmentRepository from '../../../shared/infrastructure/repositories/assessment-repository.js';
import * as campaignRepository from '../../../../lib/infrastructure/repositories/campaign-repository.js';
import * as campaignParticipationRepository from '../../../../lib/infrastructure/repositories/campaign-participation-repository.js';
Expand Down
2 changes: 1 addition & 1 deletion api/src/school/domain/usecases/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { injectDependencies } from '../../../shared/infrastructure/utils/depende

import * as activityAnswerRepository from '../../infrastructure/repositories/activity-answer-repository.js';
import * as activityRepository from '../../infrastructure/repositories/activity-repository.js';
import * as areaRepository from '../../../../lib/infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../shared/infrastructure/repositories/area-repository.js';
import * as assessmentRepository from '../../../shared/infrastructure/repositories/assessment-repository.js';
import * as challengeRepository from '../../infrastructure/repositories/challenge-repository.js';
import * as competenceRepository from '../../../shared/infrastructure/repositories/competence-repository.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Area } from '../../domain/models/Area.js';
import { areaDatasource } from '../datasources/learning-content/area-datasource.js';
import * as competenceRepository from '../../../src/shared/infrastructure/repositories/competence-repository.js';
import { getTranslatedKey } from '../../../src/shared/domain/services/get-translated-text.js';
import { Area } from '../../../../lib/domain/models/Area.js';
import { areaDatasource } from '../../../../lib/infrastructure/datasources/learning-content/area-datasource.js';
import * as competenceRepository from './competence-repository.js';
import { getTranslatedKey } from '../../domain/services/get-translated-text.js';
import _ from 'lodash';
import { NotFoundError } from '../../domain/errors.js';
import { NotFoundError } from '../../../../lib/domain/errors.js';

function _toDomain({ areaData, locale }) {
const translatedTitle = getTranslatedKey(areaData.title_i18n, locale);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { LOCALE } from '../../domain/constants.js';

const { FRENCH_FRANCE } = LOCALE;

import * as areaRepository from '../../../../lib/infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../shared/infrastructure/repositories/area-repository.js';
import * as competenceRepository from './competence-repository.js';
import * as thematicRepository from '../../../../lib/infrastructure/repositories/thematic-repository.js';
import * as tubeRepository from '../../../../lib/infrastructure/repositories/tube-repository.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from 'lodash';
import { expect, domainBuilder, mockLearningContent, catchErr } from '../../../test-helper.js';
import { Area } from '../../../../lib/domain/models/Area.js';
import * as areaRepository from '../../../../lib/infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../../src/shared/infrastructure/repositories/area-repository.js';
import { NotFoundError } from '../../../../lib/domain/errors.js';

describe('Integration | Repository | area-repository', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect, mockLearningContent } from '../../../../test-helper.js';
import { getMission } from '../../../../../src/school/domain/usecases/get-mission.js';
import * as missionRepository from '../../../../../src/school/infrastructure/repositories/mission-repository.js';
import * as competenceRepository from '../../../../../src/shared/infrastructure/repositories/competence-repository.js';
import * as areaRepository from '../../../../../lib/infrastructure/repositories/area-repository.js';
import * as areaRepository from '../../../../../src/shared/infrastructure/repositories/area-repository.js';
import * as learningContentBuilder from '../../../../tooling/learning-content-builder/index.js';
describe('Integration | UseCase | getMission', function () {
it('Should return a mission', async function () {
Expand Down

0 comments on commit c17d840

Please sign in to comment.