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

✨ Improve faostat metadata #2462

Merged
merged 14 commits into from
Mar 28, 2024
Merged

✨ Improve faostat metadata #2462

merged 14 commits into from
Mar 28, 2024

Conversation

pabloarosado
Copy link
Contributor

@pabloarosado pabloarosado commented Mar 27, 2024

So far we were not able to edit FAOSTAT metadata, and we were showing it (in the sources tab and data pages) raw, as it came from the data provider. It often produced very long, poorly formatted paragraphs, hard do understand, our sources tab and data pages.

Additionally, it wasn't possible (at least not easily) to edit those fields manually, because those texts were produced programmatically in the middle of a complicated processing pipeline.

This PR allows us to quickly fix, add or remove specific fields in the metadata. All FAOSTAT metadata is moved to either the snapshot description, or the description_from_producer.

This PR would also fix data pages like this one with very bad titles that were constructed from FAOSTAT names.

I have also gone through all indicators that are used in at least one chart, and added basic metadata to them. I haven't spent much time adding description_short and description_key, but at least now we have a way to easily add those, if needed.

There is no need to review the code. A thorough review of all the metadata is also unnecessary. But I think it would be good to scroll through the .meta.yml files to inspect for some odd titles or descriptions quickly.

@pabloarosado pabloarosado self-assigned this Mar 27, 2024
@pabloarosado pabloarosado changed the title Improve faostat metadata ✨ Improve faostat metadata Mar 28, 2024
@pabloarosado pabloarosado requested a review from spoonerf March 28, 2024 11:22
@pabloarosado pabloarosado marked this pull request as ready for review March 28, 2024 11:22
Copy link
Contributor

@spoonerf spoonerf left a comment

Choose a reason for hiding this comment

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

Looks good - just a bunch of small suggestions/tweaks!

@pabloarosado pabloarosado merged commit 2515d6b into master Mar 28, 2024
8 of 10 checks passed
@pabloarosado pabloarosado deleted the improve-faostat-metadata branch March 28, 2024 17:23
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.

2 participants