Skip to content

Commit

Permalink
stop sending conventions to France Travail where agencyRefersToOtherA…
Browse files Browse the repository at this point in the history
…gency (until they are ready to accept it) This commit could be REVERTED when ready
  • Loading branch information
JeromeBu committed Dec 9, 2024
1 parent b1a42e8 commit b8ca6ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,17 @@ const getLinkedAgencies = async (

const shouldBroadcastToFranceTravail = ({
agency,
refersToAgency,
featureFlags,
refersToAgency: _, // TODO not used anymore, until France Travail is ready to accept those
}: {
agency: AgencyDto;
refersToAgency: AgencyDto | null;
featureFlags: FeatureFlags;
}): boolean => {
const isBroadcastToFranceTravailAllowedForKind = (agencyKind: AgencyKind) => {
if (agency.kind === agencyKind) return true;
if (refersToAgency && refersToAgency.kind === agencyKind) return true;
// TODO: uncomment when France Travail is ready to accept those
// if (refersToAgency && refersToAgency.kind === agencyKind) return true;
return false;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ describe("Broadcasts events to France Travail", () => {
);
});

it("broadcast to pole-emploi when convention is from an agency RefersTo", async () => {
// TODO: uncomment when France Travail is ready to accept those
it.skip("broadcast to pole-emploi when convention is from an agency RefersTo", async () => {
// Prepare

const agencyWithRefersTo = toAgencyWithRights(
Expand Down Expand Up @@ -362,7 +363,8 @@ describe("Broadcasts events to France Travail", () => {
});
});

it(`broadcast to france travail when convention is from an agency RefersTo (and the refered agency is ${agencyKind})`, async () => {
// TODO: uncomment when France Travail is ready to accept those
it.skip(`broadcast to france travail when convention is from an agency RefersTo (and the refered agency is ${agencyKind})`, async () => {
uow.featureFlagRepository.featureFlags = featureFlag;

const agencyWithRefersTo = toAgencyWithRights(
Expand Down

0 comments on commit b8ca6ff

Please sign in to comment.