Skip to content

Commit

Permalink
refactor?(api): remove old registration for pole emploi
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-car committed Sep 23, 2024
1 parent 7c64827 commit 53c348c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export class ParticipationCompletedJobController extends JobController {
super(ParticipationCompletedJob.name);
}

get legacyName() {
return 'PoleEmploiParticipationCompletedJob';
}

async handle({ data }) {
const { campaignParticipationId } = data;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ export class ParticipationSharedJobController extends JobController {
super(ParticipationSharedJob.name);
}

get legacyName() {
return 'SendSharedParticipationResultsToPoleEmploiJob';
}

async handle({ data }) {
const { campaignParticipationId } = data;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ export class ParticipationStartedJobController extends JobController {
super(ParticipationStartedJob.name);
}

get legacyName() {
return 'PoleEmploiParticipationStartedJob';
}

async handle({ data }) {
const { campaignParticipationId } = data;

Expand Down
17 changes: 0 additions & 17 deletions api/tests/unit/worker_test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { UserAnonymizedEventLoggingJob } from '../../src/identity-access-management/domain/models/UserAnonymizedEventLoggingJob.js';
import { ParticipationSharedJobController } from '../../src/prescription/campaign-participation/application/jobs/participation-shared-job-controller.js';
import { ValidateOrganizationLearnersImportFileJobController } from '../../src/prescription/learner-management/application/jobs/validate-organization-learners-import-file-job-controller.js';
import { ValidateOrganizationImportFileJob } from '../../src/prescription/learner-management/domain/models/ValidateOrganizationImportFileJob.js';
import { UserAnonymizedEventLoggingJobController } from '../../src/shared/application/jobs/audit-log/user-anonymized-event-logging-job-controller.js';
Expand Down Expand Up @@ -39,22 +38,6 @@ describe('#registerJobs', function () {
);
});

it('should register legacyName', async function () {
// when
await registerJobs({
jobGroup: JobGroup.DEFAULT,
dependencies: {
startPgBoss: startPgBossStub,
createJobQueues: createJobQueuesStub,
scheduleCpfJobs: scheduleCpfJobsStub,
},
});

const job = new ParticipationSharedJobController();
// then
expect(jobQueueStub.register).to.have.been.calledWithExactly(job.legacyName, ParticipationSharedJobController);
});

it('should register ValidateOrganizationImportFileJob when job is enabled', async function () {
//given
sinon.stub(config.pgBoss, 'validationFileJobEnabled').value(true);
Expand Down

0 comments on commit 53c348c

Please sign in to comment.