Skip to content

Commit fc502d0

Browse files
author
Matthew Jadud
authored
Merge pull request #4278 from GSA-TTS/main
2 parents 8e4bf31 + e84a236 commit fc502d0

33 files changed

+38874
-10332
lines changed

.github/workflows/terraform-apply-env.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ jobs:
3131
apt-get install -y zip python
3232
3333
# Install CF CLI
34-
mkdir -p /etc/apt/keyrings/
35-
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/cf.gpg > /dev/null
36-
echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
37-
apt-get update && DEBIAN_FRONTEND=noninteractive
38-
apt-get install --assume-yes cf8-cli
34+
curl -k -O -L https://github.com/cloudfoundry/cli/releases/download/v8.8.0/cf8-cli-installer_8.8.0_x86-64.deb
35+
apt-get install --assume-yes ./cf8-cli-installer_8.8.0_x86-64.deb
36+
3937
cf api api.fr.cloud.gov
4038
cf auth ${{ secrets.CF_USERNAME }} ${{ secrets.CF_PASSWORD }}
4139
TF_VAR_postgrest_image: 'ghcr.io/gsa-tts/fac/postgrest:latest'

.github/workflows/terraform-plan-env.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ jobs:
2626
apt-get install -y zip python
2727
2828
# Install CF CLI
29-
mkdir -p /etc/apt/keyrings/
30-
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/cf.gpg > /dev/null
31-
echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
32-
apt-get update && DEBIAN_FRONTEND=noninteractive
33-
apt-get install --assume-yes cf8-cli
29+
curl -k -O -L https://github.com/cloudfoundry/cli/releases/download/v8.8.0/cf8-cli-installer_8.8.0_x86-64.deb
30+
apt-get install --assume-yes ./cf8-cli-installer_8.8.0_x86-64.deb
31+
3432
cf api api.fr.cloud.gov
3533
cf auth ${{ secrets.CF_USERNAME }} ${{ secrets.CF_PASSWORD }}
3634
TF_VAR_postgrest_image: 'ghcr.io/gsa-tts/fac/postgrest:latest'

backend/audit/intakelib/checks/check_version_number.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"1.1.0",
1818
"1.1.1",
1919
"1.1.2",
20+
"1.1.3",
2021
}
2122

2223

backend/schemas/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ xlsx = $(wildcard output/excel/xlsx/*-workbook*.xlsx)
1414
json = $(wildcard output/excel/json/*.json)
1515

1616
source_data:
17-
python scripts/generate_lookup_schemas.py source/data/cfda-lookup-20230626.csv source/base/FederalProgramNames.json
18-
python scripts/generate_lookup_schemas.py source/data/cluster-names-20230626.csv source/base/ClusterNames.json
17+
python scripts/generate_lookup_schemas.py cfda-lookup source/base/FederalProgramNames.json
18+
python scripts/generate_lookup_schemas.py cluster-names source/base/ClusterNames.json
1919

2020
clean:
2121
for f in $(xlsx); do \
@@ -25,7 +25,7 @@ clean:
2525
rm $$f; \
2626
done
2727

28-
build_audit_json:
28+
build_audit_json:
2929
for jsonnet_file in $(audit_specs); do \
3030
base_name=$$(basename "$$jsonnet_file" .jsonnet); \
3131
jsonnet -o output/audit/"$$base_name.json" "$$jsonnet_file"; \

backend/schemas/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Bumping workbook template version
2+
3+
Follow these steps to version bump the workbook templates:
4+
- `backend/schemas/source/excel/libs/Sheets.libsonnet`: Update the `WORKBOOKS_VERSION` variable
5+
- `backend/audit/intakelib/checks/check_version_number.py`: Update the `AUTHORIZED_VERSIONS` variable
6+
- Run `make all` to generate new schemas and tempaltes
7+
- Once your PR is merged, don't forget to copy the new templates, found in `backend/schemas/output/excel/xlsx/`, into `assets/workbooks/` of the [static site repo](https://github.com/GSA-TTS/FAC-transition-site).
8+
9+
# Updating the CFDA listings
10+
11+
The current CFDA assistance listings are in the CSV found [here](https://sam.gov/data-services/Assistance%20Listings/datagov?privacy=Public). When downloading the file, save it in the format `cfda-lookup-YYYYMMDD.csv` in the `/schemas/source/data` directory. Running `make all` should be sufficent to regenerate the lookup schemas and the Excel templates.
12+
13+
More specifically, `make all` executes `make source_data`, which, calls `generate_lookup_schemas.py`. This script can generate either cluster names or CFDA listings or agencies, depending on the args given (see docstring in the script.) The script will automatically used the latest-dated CSV file for processing. This way, the Makefile doesn't have to be repeatedly changed and we can retain the historic files. The format of the CSVs can change (and have), so changes to `generate_lookup_schemas.py` may be necessary may be necessary in the future and non-current files may no longer be processable.
14+
15+
If you get a `UnicodeDecodeError`, you may have to manually save it with UTF-8 encoding (in VSCode, click UTF-8 in the bottom right and select "Save with encoding".)

backend/schemas/output/excel/json/additional-eins-workbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"validation": {
4545
"type": "NOVALIDATION"
4646
},
47-
"value": "1.1.2",
47+
"value": "1.1.3",
4848
"width": 48
4949
},
5050
{

backend/schemas/output/excel/json/additional-ueis-workbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"validation": {
4545
"type": "NOVALIDATION"
4646
},
47-
"value": "1.1.2",
47+
"value": "1.1.3",
4848
"width": 48
4949
},
5050
{

backend/schemas/output/excel/json/audit-findings-text-workbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"validation": {
4545
"type": "NOVALIDATION"
4646
},
47-
"value": "1.1.2",
47+
"value": "1.1.3",
4848
"width": 48
4949
},
5050
{

backend/schemas/output/excel/json/corrective-action-plan-workbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"validation": {
4545
"type": "NOVALIDATION"
4646
},
47-
"value": "1.1.2",
47+
"value": "1.1.3",
4848
"width": 48
4949
},
5050
{

backend/schemas/output/excel/json/federal-awards-audit-findings-workbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"validation": {
4545
"type": "NOVALIDATION"
4646
},
47-
"value": "1.1.2",
47+
"value": "1.1.3",
4848
"width": 48
4949
},
5050
{

0 commit comments

Comments
 (0)