Skip to content

Commit 799249c

Browse files
committed
Merge branch 'hotfix/hide-pia-in-prod' into release/v4.8.0
2 parents 74e1a61 + 1d2d954 commit 799249c

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

scripts/deploy-frontend.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@ update_frontend()
3030
echo "REACT_APP_ENABLE_RUM=true" >> .env.production
3131
echo "REACT_APP_FARO_ENDPOINT=https://tanfdata.acf.hhs.gov/collect" >> .env.production
3232
echo "REACT_APP_VERSION=v3.8.4" >> .env.production
33+
# PIA
34+
echo "REACT_APP_SHOW_PIA=false" >> .env.production
35+
#Nginx
3336
echo "BACK_END=" >> .env.production
3437
elif [ "$CF_SPACE" = "tanf-staging" ]; then
3538
echo "REACT_APP_BACKEND_URL=https://$CGHOSTNAME_FRONTEND.acf.hhs.gov/v1" >> .env.development
3639
echo "REACT_APP_FRONTEND_URL=https://$CGHOSTNAME_FRONTEND.acf.hhs.gov" >> .env.development
3740
echo "REACT_APP_BACKEND_HOST=https://$CGHOSTNAME_FRONTEND.acf.hhs.gov" >> .env.development
3841
echo "REACT_APP_CF_SPACE=$CF_SPACE" >> .env.development
42+
# PIA
43+
echo "REACT_APP_SHOW_PIA=false" >> .env.development
3944

4045
cf set-env "$CGHOSTNAME_FRONTEND" ALLOWED_ORIGIN "https://$CGHOSTNAME_FRONTEND.acf.hhs.gov"
4146
cf set-env "$CGHOSTNAME_FRONTEND" CONNECT_SRC '*.acf.hhs.gov'

tdrs-frontend/.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ REACT_APP_FARO_ENDPOINT="http://localhost:12346/collect"
5555
REACT_APP_VERSION="v3.8.4"
5656

5757
REACT_APP_KNOWLEDGE_CENTER_LINK="https://tdp-project-updates.app.cloud.gov/knowledge-center"
58+
59+
# PIA
60+
REACT_APP_SHOW_PIA=true

tdrs-frontend/.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ REACT_APP_FARO_ENDPOINT="http://localhost:12346/collect"
3737
REACT_APP_VERSION="v3.8.4"
3838

3939
REACT_APP_KNOWLEDGE_CENTER_LINK="https://tdp-project-updates.app.cloud.gov/knowledge-center"
40+
41+
# PIA
42+
REACT_APP_SHOW_PIA=true

tdrs-frontend/.env.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ REACT_APP_FARO_ENDPOINT="http://localhost:12346/collect"
3333
REACT_APP_VERSION="v3.8.4"
3434

3535
REACT_APP_KNOWLEDGE_CENTER_LINK="https://tdp-project-updates.app.cloud.gov/knowledge-center"
36+
37+
# PIA
38+
REACT_APP_SHOW_PIA=true

tdrs-frontend/src/components/Reports/Reports.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ function ReportsContent() {
8585
const radio_options = [
8686
{ label: 'TANF', value: 'tanf' },
8787
...(fileTypeStt?.ssp ? [{ label: 'SSP-MOE', value: 'ssp-moe' }] : []),
88-
{
89-
label: 'Program Integrity Audit',
90-
value: 'program-integrity-audit',
91-
},
88+
...(process.env.REACT_APP_SHOW_PIA === 'true'
89+
? [{ label: 'Program Integrity Audit', value: 'program-integrity-audit' }]
90+
: []),
9291
]
9392

9493
return (
@@ -135,7 +134,8 @@ function ReportsContent() {
135134
</div>
136135
</div>
137136

138-
{fileTypeInputValue === 'program-integrity-audit' ? (
137+
{fileTypeInputValue === 'program-integrity-audit' &&
138+
process.env.REACT_APP_SHOW_PIA === 'true' ? (
139139
<ProgramIntegrityAuditReports
140140
stt={stt ? stt : fileTypeStt}
141141
isRegionalStaff={isRegionalStaff}

0 commit comments

Comments
 (0)