Skip to content

Commit

Permalink
adding share feature flag (#3147)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayabose authored Jun 10, 2024
1 parent 8b61cdf commit 2123a9d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/public/deploy-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ window.APP_CONFIG.overrideFeatureFlag = (flagName, overrideValue) => {
window.APP_CONFIG.featureFlags = {
newTerminologyEnabled: true,
newGrantsDetailPageEnabled: true,
shareTerminologyEnabled: true,
};

// Setting a GOOGLE_TAG_ID enables Google Analytics.
Expand Down
4 changes: 4 additions & 0 deletions packages/client/src/helpers/featureFlags/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ export function newTerminologyEnabled() {
export function newGrantsDetailPageEnabled() {
return getFeatureFlags().newGrantsDetailPageEnabled === true;
}

export function shareTerminologyEnabled() {
return getFeatureFlags().shareTerminologyEnabled === true;
}
1 change: 1 addition & 0 deletions packages/server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WEBSITE_DOMAIN=http://localhost:8080
API_DOMAIN=http://localhost:8080

ENABLE_GRANTS_SCRAPER=true
SHARE_TERMINOLOGY_ENABLED=true
GRANTS_SCRAPER_DATE_RANGE=7
GRANTS_SCRAPER_DELAY=1000
NODE_OPTIONS=--max_old_space_size=1024
Expand Down
1 change: 1 addition & 0 deletions terraform/prod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ api_datadog_environment_variables = {
}
api_container_environment = {
NEW_GRANT_DETAILS_PAGE_ENABLED = true,
SHARE_TERMINOLOGY_ENABLED = false,
}

// Postgres
Expand Down
1 change: 1 addition & 0 deletions terraform/staging.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ api_datadog_environment_variables = {
}
api_container_environment = {
NEW_GRANT_DETAILS_PAGE_ENABLED = true,
SHARE_TERMINOLOGY_ENABLED = true,
}

// Postgres
Expand Down

0 comments on commit 2123a9d

Please sign in to comment.