Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to drop warnings for reference checks for properties with known Text values #66

Open
ajaits opened this issue Sep 14, 2021 · 4 comments

Comments

@ajaits
Copy link
Contributor

ajaits commented Sep 14, 2021

The UNEnergy data set uses measurementMethod: UNStatsEstimate in the statVarObs mcf.

The dc-import generates a warning for this:
{
"level": "LEVEL_WARNING",
"location": {
"file": "un_energy_output.csv",
"lineNumber": "4"
},
"userMessage": "Failed existence check :: reference: 'UNStatsEstimate', property: 'measurementMethod', node: 'E:UNEnergy->E0'",
"counterKey": "Existence_MissingValueRef_measurementMethod"
},

measurementMethod allows Text in rangeIncludes
rangeIncludes: Text, Enumeration

Can we have a flag to ignore specific warnings such as reference checks for know values,
so we can easily catch other warnings/errors in the report.json?

@pradh
Copy link
Contributor

pradh commented Sep 16, 2021

I think we want measurementMethod to refer to entities so we can describe the method used, etc. Thus, I feel like this check as such is useful to have, and would also agree to removing Text from its rangeIncludes.

Adding an option to ignore certains warnings is something we can do. Would we refer to the specific warning using counter name, like "Existence_MissingValueRef_measurementMethod" ?

@ajaits
Copy link
Contributor Author

ajaits commented Sep 16, 2021 via email

@pradh
Copy link
Contributor

pradh commented Sep 16, 2021

Should we convert the existing text ones into Enum?

What's an example of existing text one? The infra I thought would treat mmethod value as a reference.

Is there a broader Enum for measurements?

https://github.com/datacommonsorg/schema/blob/main/core/measurement_methods.mcf#L7-L11

Does the dc-import lint use APIs from the autopush or the prod?

It uses staging (to not impact prod). I've been considering using autopush to get most recent build, but the instance gets restarted on every code change, so was worried about reliability...

@ajaits
Copy link
Contributor Author

ajaits commented Sep 17, 2021 via email

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

No branches or pull requests

2 participants