From a3a5d0572ad033a959258ac4e6c30d013229e449 Mon Sep 17 00:00:00 2001 From: peggles2 Date: Thu, 8 Aug 2024 10:02:33 -0400 Subject: [PATCH] remove serachgov from the code (#1397) --- solution/Dockerfile.template | 2 -- solution/backend/serverless-experimental.yml | 2 -- solution/backend/serverless.yml | 2 -- .../ui/e2e/cypress/schemas/example-schema.js | 35 ------------------- 4 files changed, 41 deletions(-) diff --git a/solution/Dockerfile.template b/solution/Dockerfile.template index e41c0bda18..ca071f2279 100644 --- a/solution/Dockerfile.template +++ b/solution/Dockerfile.template @@ -12,8 +12,6 @@ RUN apk --update add ca-certificates build-base postgresql-dev \ RUN pip install --no-cache-dir --upgrade pip setuptools \ && pip install -r requirements.txt -ENV SEARCHGOV_KEY='' -ENV SEARCHGOV_SITE_NAME='' ENV EREGS_USERNAME="" ENV EREGS_PASSWORD="" ENV HTTP_AUTH_USER="" diff --git a/solution/backend/serverless-experimental.yml b/solution/backend/serverless-experimental.yml index 56f8e03bec..9037b26adc 100644 --- a/solution/backend/serverless-experimental.yml +++ b/solution/backend/serverless-experimental.yml @@ -37,8 +37,6 @@ provider: CUSTOM_URL: ${ssm:/eregulations/custom_url, ''} SURVEY_URL: ${ssm:/eregulations/survey_url} SIGNUP_URL: ${ssm:/eregulations/signup_url} - SEARCHGOV_KEY: ${ssm:/eregulations/searchgov/key} - SEARCHGOV_SITE_NAME: ${ssm:/eregulations/searchgov/site_name} AWS_STORAGE_BUCKET_NAME: file-repo-eregs-${self:custom.stage} OIDC_OP_JWKS_ENDPOINT: ${ssm:/eregulations/oidc/jwks_endpoint} OIDC_RP_CLIENT_ID: ${ssm:/eregulations/oidc/client_id} diff --git a/solution/backend/serverless.yml b/solution/backend/serverless.yml index 611d415889..9d00e2b8a5 100644 --- a/solution/backend/serverless.yml +++ b/solution/backend/serverless.yml @@ -39,8 +39,6 @@ provider: CUSTOM_URL: ${ssm:/eregulations/custom_url} SURVEY_URL: ${ssm:/eregulations/survey_url} SIGNUP_URL: ${ssm:/eregulations/signup_url} - SEARCHGOV_KEY: ${ssm:/eregulations/searchgov/key} - SEARCHGOV_SITE_NAME: ${ssm:/eregulations/searchgov/site_name} OIDC_RP_CLIENT_ID: ${ssm:/eregulations/oidc/client_id} OIDC_RP_CLIENT_SECRET: ${ssm:/eregulations/oidc/client_secret} OIDC_OP_AUTHORIZATION_ENDPOINT: ${ssm:/eregulations/oidc/authorization_endpoint} diff --git a/solution/ui/e2e/cypress/schemas/example-schema.js b/solution/ui/e2e/cypress/schemas/example-schema.js index 38a72a4b9f..ace6a3b4d3 100644 --- a/solution/ui/e2e/cypress/schemas/example-schema.js +++ b/solution/ui/e2e/cypress/schemas/example-schema.js @@ -31,38 +31,3 @@ const itemLocationSchema = { parent: { type: "number", nullable: true }, }, }; - -const searchGovResourcesItemSchema = { - type: "object", - properties: { - id: { type: "number" }, - created_at: { type: "string" }, - updated_at: { type: "string" }, - approved: { type: "boolean" }, - snippet: { type: "string", nullable: true }, - category: itemCategorySchema, - locations: { type: "array", items: itemLocationSchema }, - type: { type: "string" }, // could be enum for supplemental_content, federal_register_doc, etc - date: { type: "string", nullable: true }, - name: { type: "string", nullable: true }, - description: { type: "string" }, - internalURL: { type: "string" }, - name_headline: { type: "string", nullable: true }, - description_headline: { type: "string", nullable: true }, - // ...more for federal_register_doc etc - }, -}; - -// might need to use $ref to make have required fields for nested schemas -export const getSearchGovResourcesSchema = { - $id: "searchGovResourcesSchema", - type: "object", - properties: { - count: { type: "number" }, - next: { type: "string", nullable: true }, - previous: { type: "string", nullable: true }, - results: { type: "array", items: searchGovResourcesItemSchema }, - }, - - required: ["count", "next", "previous", "results"], -};