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

Save and make available additional reporting_org fields #32

Merged
merged 20 commits into from
Jan 16, 2025

Conversation

simon-20
Copy link
Contributor

The main addition in this update is that the Bulk Data Service now:

  • saves the reporting_org fields short_name, canonical human readable name, uuid, and IATI Identifier (usually ORG-ID) into a new database table
  • creates a reporting_orgs API end point / JSON index (for ZIP file) from these records

(Organisations have been renamed reporting_orgs in recognition that it is always reporting_orgs we are dealing with in this data).

In addition, the version of the app is now stored in pyproject.toml, and should be updated there every release, and the value it is updated to should be used in the standard release process. The version has been stored in pyproject so that it can be included in the User-Agent header.

A new dependency (toml) led to an upgrade of black, which in turn required upgrading Python to 3.12.6

Simplifying refactor ahead of database changes:
* remove unneeded factory methods
* fetch org metadata each run
Tests to check list of IATI organisations are added, updated and deleted from new DB table.
* Refactored some tests and test data to facilitate testing given that org data will now be drawn from the full org metadata, and not the limited org metadata on the datasets
* Add 'dataset' to names now there are also entries for organisations.
Previously, if the zipper was run standalone from the command line, it would crash at the end when updating prom metrics. This would only ever occur during local development, but this fixes it.
* toml package installed to allow programmatic access to version
* Python upgraded because latest black doesn't run with 3.12.5
@simon-20 simon-20 requested a review from a team January 15, 2025 09:47
@simon-20 simon-20 merged commit 6bfd8ab into develop Jan 16, 2025
1 check passed
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