Skip to content

changed rule to new rule Bls_cpi_Category#2044

Open
niveditasing wants to merge 3 commits into
datacommonsorg:masterfrom
niveditasing:rule_change_validation_config
Open

changed rule to new rule Bls_cpi_Category#2044
niveditasing wants to merge 3 commits into
datacommonsorg:masterfrom
niveditasing:rule_change_validation_config

Conversation

@niveditasing
Copy link
Copy Markdown
Contributor

@niveditasing niveditasing commented May 28, 2026

Updated the threshold rule ID. This import previously had a threshold of 1230 with rule id that checks deletions in numbers, but because the rule was recently changed to check the deletion threshold as a percentage rather than a raw number, the import is currently failing due to deletions.

Fix: Added the relevant rule ID and set the threshold to 0.6% (representing 1,230 rows out of 211,256).

1230/211256 x 100 ~ 0.58223% ~ 0.6%
Keeping the threshold at this level ensures we capture a meaningful baseline of the data without letting minor anomalies skew the results.

@niveditasing niveditasing changed the title changed rule to new rule changed rule to new rule Bls_cpi_Category May 28, 2026
Copy link
Copy Markdown
Contributor

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

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 updates the validation configuration for the US BLS CPI category import by replacing the deleted records count validator with a percentage-based validator. A critical issue was identified where the threshold value was set to 0.1, which translates to an extremely restrictive 0.1% threshold due to the validator's implementation using a 0-100 scale. It is recommended to change this threshold to 10 to represent a 10% limit.

Comment thread statvar_imports/us_bls/cpi_category/validation_config.json Outdated
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