From 76119a5c68c82f08edcec0808b9f867320af8cfb Mon Sep 17 00:00:00 2001 From: Luke Heath Date: Wed, 9 Jul 2025 16:07:52 -0600 Subject: [PATCH] Remove length validation for entity id input (#30689) --- .../components/IdpSection/helpers.tests.ts | 11 ----------- .../MdmSettings/components/IdpSection/helpers.ts | 3 --- 2 files changed, 14 deletions(-) diff --git a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.tests.ts b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.tests.ts index 2947dcd03f..9a1308f416 100644 --- a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.tests.ts +++ b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.tests.ts @@ -111,17 +111,6 @@ describe("IdPSection helpers", () => { entity_id: "Entity ID must be present.", }); - expect( - validateFormDataIdp({ - entity_id: "enti", - idp_name: "idpImageUrl", - metadata: "metadata", - metadata_url: "https://metadataUrl.com", - }) - ).toEqual({ - entity_id: "Entity ID must be 5 or more characters.", - }); - expect( validateFormDataIdp({ entity_id: "entityId", diff --git a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.ts b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.ts index 0498b7670a..d94f824fe2 100644 --- a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.ts +++ b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/components/IdpSection/helpers.ts @@ -43,9 +43,6 @@ const errorEntityId = (data: IFormDataIdp) => { if (!data.entity_id) { return "Entity ID must be present."; } - if (data.entity_id?.length < 5) { - return "Entity ID must be 5 or more characters."; - } return ""; };