Skip to content

Adding golden files in cdc_nor_noninfectious#2088

Open
pravnkumar-cloudsufi wants to merge 1 commit into
datacommonsorg:masterfrom
cloudsufi:cdc_nors_noninfectious
Open

Adding golden files in cdc_nor_noninfectious#2088
pravnkumar-cloudsufi wants to merge 1 commit into
datacommonsorg:masterfrom
cloudsufi:cdc_nors_noninfectious

Conversation

@pravnkumar-cloudsufi

Copy link
Copy Markdown

PR Checklist:

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a golden summary report and a validation configuration file for US CDC non-infectious diseases, alongside updates to the manifest to integrate these validation settings. The review feedback identifies an incorrect relative path to the golden data file in the validation configuration that would lead to a failure, and suggests removing a redundant config_overrides block in the manifest.

"validator": "GOLDENS_CHECK",
"params": {
"golden_files": [
"../../../../golden_data/golden_summary_report.csv"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The relative path ../../../../golden_data/golden_summary_report.csv is incorrect.

Since validation_config.json is located at scripts/us_cdc/non_infectious_diseases/validation_config.json and the golden file is at scripts/us_cdc/non_infectious_diseases/golden_data/golden_summary_report.csv, the correct relative path from the configuration directory is "golden_data/golden_summary_report.csv".

Using ../../../../ would resolve to a directory outside the repository root, causing the validation to fail because the file cannot be found.

Suggested change
"../../../../golden_data/golden_summary_report.csv"
"golden_data/golden_summary_report.csv"

Comment on lines +23 to +26
"validation_config_file": "validation_config.json",
"config_overrides": {
"validation_config_file": "validation_config.json"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The config_overrides block is redundant because it overrides validation_config_file with the exact same value (validation_config.json) that is already defined at the top level on line 23. Removing this block simplifies the manifest file.

            "validation_config_file": "validation_config.json"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant