mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-24 10:34:18 -08:00
Merge branch 'main' of github-usds:usds/justice40-tool into esfoobar-usds/1417-nri-yaml-config
This commit is contained in:
commit
1c13259edd
4 changed files with 8 additions and 6 deletions
6
.github/workflows/refresh-be-cdn.yml
vendored
6
.github/workflows/refresh-be-cdn.yml
vendored
|
@ -6,9 +6,9 @@ on:
|
|||
description: This will invalidate the backend CDN, are you sure you want to proceed? (Y/n)
|
||||
default: n
|
||||
required: true
|
||||
schedule:
|
||||
# runs every 6 hours:
|
||||
- cron: "0 */6 * * *"
|
||||
# to allow this action to run every 6 hours
|
||||
# schedule:
|
||||
# - cron: "0 */6 * * *"
|
||||
env:
|
||||
BE_CDN_ID: E1324VDMNCO97N
|
||||
jobs:
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# Feature Tiles env variables:
|
||||
# The TILES_BASE_URL will be determined by the DATA_SOURCE env variable
|
||||
GATSBY_CDN_TILES_BASE_URL=https://d3jqyw10j8e7p9.cloudfront.net
|
||||
GATSBY_CDN_TILES_BASE_URL=https://static-data-screeningtool.geoplatform.gov
|
||||
GATSBY_LOCAL_TILES_BASE_URL=http://localhost:5000/data/data-pipeline
|
||||
|
||||
GATSBY_DATA_PIPELINE_SCORE_PATH_LOCAL=data_pipeline/data/score
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# Feature Tiles env variables:
|
||||
# The TILES_BASE_URL will always point to the CDN
|
||||
GATSBY_CDN_TILES_BASE_URL=https://d3jqyw10j8e7p9.cloudfront.net
|
||||
GATSBY_CDN_TILES_BASE_URL=https://static-data-screeningtool.geoplatform.gov
|
||||
|
||||
GATSBY_DATA_PIPELINE_SCORE_PATH=data-pipeline/data/score
|
||||
GATSBY_SCORE_DOWNLOAD_FILE_PATH=downloadable/Screening_Tool_Data.zip
|
||||
|
|
|
@ -16,6 +16,7 @@ from marshmallow_dataclass import class_schema
|
|||
from data_pipeline.config import settings
|
||||
from data_pipeline.content.schemas.download_schemas import (
|
||||
CSVConfig,
|
||||
CodebookConfig,
|
||||
ExcelConfig,
|
||||
)
|
||||
|
||||
|
@ -333,7 +334,8 @@ def zip_directory(
|
|||
|
||||
|
||||
def load_yaml_dict_from_file(
|
||||
yaml_file_path: Path, schema_class: Union[CSVConfig, ExcelConfig]
|
||||
yaml_file_path: Path,
|
||||
schema_class: Union[CSVConfig, ExcelConfig, CodebookConfig],
|
||||
) -> dict:
|
||||
"""Load a YAML file specified in path into a Python dictionary.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue