Skip to content

Commit

Permalink
remove serachgov from the code (#1397)
Browse files Browse the repository at this point in the history
  • Loading branch information
peggles2 authored Aug 8, 2024
1 parent a60831b commit a3a5d05
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 41 deletions.
2 changes: 0 additions & 2 deletions solution/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
2 changes: 0 additions & 2 deletions solution/backend/serverless-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 0 additions & 2 deletions solution/backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
35 changes: 0 additions & 35 deletions solution/ui/e2e/cypress/schemas/example-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
};

0 comments on commit a3a5d05

Please sign in to comment.