Skip to content

Commit

Permalink
Merge branch 'develop' into 2536-cat4-design
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 authored Feb 20, 2024
2 parents 67528c5 + 44d6913 commit 821ae10
Show file tree
Hide file tree
Showing 24 changed files with 812 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .circleci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ updated along with the secondary apps running in CF.

### Frontend/Backend
- Before updating, make sure the current buildpacks that these apps use are supported by the latest OS. If they aren't you can update the manifest to point them to the correct buildpacks.
- To update the apps you can either deploy each of the environments (sandbox, raft, qasp, etc) from CircleCi or you can use the `tdrs-deploy <ENVIRONMENT>` command from `commands.sh`. Assuming the buildpacks are up to date, that is all you need to do.
- To update the apps you can either deploy each of the environments (raft, qasp, etc) from CircleCi or you can use the `tdrs-deploy <ENVIRONMENT>` command from `commands.sh`. Assuming the buildpacks are up to date, that is all you need to do.

### Secondary apps
- Before you can make the update, you need to ensure you have the CF plugin that allows you to do so. Download the binary for your respective OS [HERE](https://github.com/cloudfoundry/stack-auditor/releases) and follow the installation instructions [HERE](https://docs.cloudfoundry.org/adminguide/stack-auditor.html#install).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Within the dev space, there is no correlation for branch to environment as these

| Dev Site | Frontend URL | Backend URL | Purpose |
| -------- | -------- | -------- |--------------------------------------------------|
| Sandbox | https://tdp-frontend-sandbox.app.cloud.gov | https://tdp-backend-sandbox.app.cloud.gov/admin/ | Space for development in a deployed environment |
| A11y | https://tdp-frontend-a11y.app.cloud.gov | https://tdp-backend-a11y.app.cloud.gov/admin/ | Space for accessibility testing |
| QASP | https://tdp-frontend-qasp.app.cloud.gov | https://tdp-backend-qasp.app.cloud.gov/admin/ | Space for QASP review |
| raft | https://tdp-frontend-raft.app.cloud.gov | https://tdp-backend-raft.app.cloud.gov/admin/ | Space for Raft review |
Expand All @@ -53,4 +52,4 @@ Within the dev space, there is no correlation for branch to environment as these

## Notes

- As of June 2022, CircleCI supplies environment variable key-value pairs to multiple environments (e.g. vendor's CircleCI deploys applications to dev and staging environments). The values from CircleCI are expected to be unique per environment, so until [#1826](https://github.com/raft-tech/TANF-app/issues/1826) is researched and addressed, these values will need to be manually corrected in cloud.gov immediately following the execution of the execution of the [`<env>-deployment` CircleCI workflow](../../.circleci/config.yml) CircleCI workflow. This workaround applies to backend applications in the TDP staging environment.
- As of June 2022, CircleCI supplies environment variable key-value pairs to multiple environments (e.g. vendor's CircleCI deploys applications to dev and staging environments). The values from CircleCI are expected to be unique per environment, so until [#1826](https://github.com/raft-tech/TANF-app/issues/1826) is researched and addressed, these values will need to be manually corrected in cloud.gov immediately following the execution of the execution of the [`<env>-deployment` CircleCI workflow](../../.circleci/config.yml) CircleCI workflow. This workaround applies to backend applications in the TDP staging environment.
1 change: 0 additions & 1 deletion docs/Technical-Documentation/TDP-environments-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

| Dev Site | Frontend URL | Backend URL | Purpose |
| -------- | -------- | -------- | -------- |
| Sandbox | https://tdp-frontend-sandbox.app.cloud.gov | https://tdp-frontend-sandbox.app.cloud.gov/admin/ | Space for devs to test in a deployed environment |
| A11y | https://tdp-frontend-a11y.app.cloud.gov | https://tdp-frontend-a11y.app.cloud.gov/admin/ | Space for accessibility testing |
| QASP | https://tdp-frontend-qasp.app.cloud.gov | https://tdp-frontend-qasp.app.cloud.gov/admin/ | Space for QASP review |
| raft | https://tdp-frontend-raft.app.cloud.gov | https://tdp-frontend-raft.app.cloud.gov/admin/ | Space for raft review |
Expand Down
744 changes: 743 additions & 1 deletion docs/Technical-Documentation/diagrams/tdp-environments.drawio

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/update-ssh-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
sshcfg=~/.ssh/config
echo "" > $sshcfg

for host in a11y raft qasp sandbox; do
for host in a11y raft qasp; do
guid=$(cf curl /v3/apps/$(cf app "tdp-backend-$host" --guid)/processes | jq --raw-output '.resources | .[] | select(.type == "web").guid')
echo "Host $host
HostName ssh.fr.cloud.gov
Expand Down
3 changes: 2 additions & 1 deletion tdrs-backend/tdpservice/parsers/schema_defs/ssp/m1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
document=SSP_M1DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(150),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -125,7 +126,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()]
validators=[validators.notEmpty()]
),
Field(
item="2",
Expand Down
5 changes: 3 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
document=SSP_M2DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(150),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.validate__FAM_AFF__SSN(),
Expand Down Expand Up @@ -152,7 +153,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()]
validators=[validators.notEmpty()]
),
Field(
item="26",
Expand Down Expand Up @@ -193,7 +194,7 @@
startIndex=29,
endIndex=38,
required=True,
validators=[validators.validateSSN()],
validators=[validators.isNumber()],
is_encrypted=False
),
Field(
Expand Down
10 changes: 6 additions & 4 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
document=SSP_M3DataSubmissionDocument(),
preparsing_validators=[
validators.notEmpty(start=19, end=60),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -118,7 +119,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()]
validators=[validators.notEmpty()]
),
Field(
item="60",
Expand Down Expand Up @@ -153,7 +154,7 @@
endIndex=37,
required=True,
is_encrypted=False,
validators=[validators.validateSSN()]
validators=[validators.isNumber()]
),
Field(
item="63A",
Expand Down Expand Up @@ -318,6 +319,7 @@
quiet_preparser_errors=True,
preparsing_validators=[
validators.notEmpty(start=60, end=101),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -425,7 +427,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()]
validators=[validators.notEmpty()]
),
Field(
item="60",
Expand Down Expand Up @@ -460,7 +462,7 @@
endIndex=78,
required=True,
is_encrypted=False,
validators=[validators.validateSSN()]
validators=[validators.isNumber()]
),
Field(
item="63A",
Expand Down
3 changes: 2 additions & 1 deletion tdrs-backend/tdpservice/parsers/schema_defs/ssp/m4.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
document=SSP_M4DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(66),
validators.notEmpty(8, 19)
],
postparsing_validators=[],
fields=[
Expand Down Expand Up @@ -46,7 +47,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="2",
Expand Down
5 changes: 3 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
document=SSP_M5DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(66),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -131,7 +132,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="13",
Expand Down Expand Up @@ -165,7 +166,7 @@
startIndex=28,
endIndex=37,
required=True,
validators=[validators.validateSSN()],
validators=[validators.isNumber()],
is_encrypted=False,
),
Field(
Expand Down
3 changes: 2 additions & 1 deletion tdrs-backend/tdpservice/parsers/schema_defs/tanf/t1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
document=TANF_T1DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(156),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -149,7 +150,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="2",
Expand Down
5 changes: 3 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/tanf/t2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
document=TANF_T2DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(156),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.validate__FAM_AFF__SSN(),
Expand Down Expand Up @@ -154,7 +155,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="30",
Expand Down Expand Up @@ -198,7 +199,7 @@
startIndex=29,
endIndex=38,
required=True,
validators=[validators.validateSSN()],
validators=[validators.isNumber()],
is_encrypted=False,
),
Field(
Expand Down
10 changes: 6 additions & 4 deletions tdrs-backend/tdpservice/parsers/schema_defs/tanf/t3.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
document=TANF_T3DataSubmissionDocument(),
preparsing_validators=[
validators.notEmpty(start=19, end=60),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -116,7 +117,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="67",
Expand Down Expand Up @@ -150,7 +151,7 @@
startIndex=28,
endIndex=37,
required=True,
validators=[validators.validateSSN()],
validators=[validators.isNumber()],
is_encrypted=False,
),
Field(
Expand Down Expand Up @@ -316,6 +317,7 @@
quiet_preparser_errors=True,
preparsing_validators=[
validators.notEmpty(start=60, end=101),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -420,7 +422,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="67",
Expand Down Expand Up @@ -454,7 +456,7 @@
startIndex=69,
endIndex=78,
required=True,
validators=[validators.validateSSN()],
validators=[validators.isNumber()],
is_encrypted=False,
),
Field(
Expand Down
3 changes: 2 additions & 1 deletion tdrs-backend/tdpservice/parsers/schema_defs/tanf/t4.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
document=TANF_T4DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(71),
validators.notEmpty(8, 19)
],
postparsing_validators=[],
fields=[
Expand Down Expand Up @@ -47,7 +48,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="2",
Expand Down
3 changes: 2 additions & 1 deletion tdrs-backend/tdpservice/parsers/schema_defs/tanf/t5.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
document=TANF_T5DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(71),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -132,7 +133,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="14",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
document=Tribal_TANF_T1DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(122),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.if_then_validator(
Expand Down Expand Up @@ -149,7 +150,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="2",
Expand Down
5 changes: 3 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
document=Tribal_TANF_T2DataSubmissionDocument(),
preparsing_validators=[
validators.hasLength(122),
validators.notEmpty(8, 19)
],
postparsing_validators=[
validators.validate__FAM_AFF__SSN(),
Expand Down Expand Up @@ -143,7 +144,7 @@
startIndex=8,
endIndex=19,
required=True,
validators=[validators.isAlphaNumeric()],
validators=[validators.notEmpty()],
),
Field(
item="30",
Expand Down Expand Up @@ -187,7 +188,7 @@
startIndex=29,
endIndex=38,
required=True,
validators=[validators.validateSSN()],
validators=[validators.isNumber()],
is_encrypted=False,
),
Field(
Expand Down
Loading

0 comments on commit 821ae10

Please sign in to comment.