-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Add resource and field descriptions; purge unused fields #3224
Comments
@zaneselvans one of the tasks above is "Enable the integration test that verifies all defined fields are being used." Does this mean there is already a function that does this that must be enabled? Or do I need to write one? |
@aesharpe I created this test when I was debugging the PyArrow schema stuff, but it's currently marked xfail, since there were some fields that weren't being used and needed to be purged:
Below it there are 2 additional |
* Add a description to the RESOURCE_METADATA for tables missing a description. * Make the description variable necessary for Resource() instances. * Update unit tests to have description fields for Resource() instances. * Fix docstring examples so the builds don't fail. * Tack on the alembic update that should have gone with the previous commit.
* Remove the xfail for the test_defined_fields_are_used() function. * Remove three fields that I missed before that aren't being used. * Update the alembic file for those three removed fields.
* Fix field descriptions and table-less fields * Remove fields that are not in any PUDL tables. * Add descriptions to fields that do not have a description. * Made field descriptions mandatory. * Update unit tests to have description fields when making test Resources * Fix docstring examples so the builds don't fail * Add resource descriptions and make them mandatory #3224 * Add a description to the RESOURCE_METADATA for tables missing a description. * Make the description variable necessary for Resource() instances. * Update unit tests to have description fields for Resource() instances. * Fix docstring examples so the builds don't fail. * Tack on the alembic update that should have gone with the previous commit. * Reinstate unit test that all fields are being used #3224 * Remove the xfail for the test_defined_fields_are_used() function. * Remove three fields that I missed before that aren't being used. * Update the alembic file for those three removed fields. * Update release notes * Remove XFAIL marks from metadata tests that should pass. * Remove two unit tests that test whether resources and fields have description fields because now they are required #3283 * Add some small changes to Resource descriptions #3283 * Fix incorrect incremental_life_cycle_peak_reduction_mw units (MWh -> MW) * Update EIA-861 resource & column maps to use incremental_life_cycle_peak_reduction_mw * Wipe conflicting alembic migrations and start fresh. * Fix types and make small tweaks to field descriptions #3283 * In the core_eia861__yearly_net_metering_customer_fuel_class table, combine the energy_displaced_mwh column with the sold_to_utility_mwh column. The former only shows up in years 2007-2009 and upon further inspection seems analogous with the latter. Removed the former from the schema and updated the column map to point the old energy_displaced_mwh columns at the sold_to_utility_mwh column. --------- Co-authored-by: Zane Selvans <[email protected]>
While working on Parquet outputs in #3102 we discovered a number of unused field definitions, fields with no descriptions, and resources with no descriptions.
Tasks
The text was updated successfully, but these errors were encountered: