Repository navigation
Conversation
b62f769 to
3dc7002
Compare
3dc7002 to
3e40208
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #168 +/- ##
==========================================
+ Coverage 77.83% 79.24% +1.41%
==========================================
Files 68 74 +6
Lines 4502 4819 +317
Branches 725 777 +52
==========================================
+ Hits 3504 3819 +315
+ Misses 796 793 -3
- Partials 202 207 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
3e40208 to
22032f6
Compare
22032f6 to
48f25cb
Compare
|
@benoit74 ready for the review thanks! |
|
@pawank925 how many collections do we end-up with, are we in the expected 20-ish range ? We should customize icons obviously for each collection if possible. |
7c7f16f to
fe1a7c9
Compare
|
@benoit74 here's the answer on collections. What we had before: exposing the dataset What we do now: each report is folded into exactly one curated thematic sector using ordered keyword rules (first match wins, so specific sectors like HIV/AIDS are checked before generic Health). Result: 20 curated sectors + Reports per collection (all 4,522 reports):
Icons: every collection has a dedicated MDI icon in Taxonomy lives in |
benoit74
left a comment
There was a problem hiding this comment.
Automated code review (medium effort).
fe1a7c9 to
e2a2873
Compare
The dataset Class labels and thesaurus descriptors are too granular: exposing them directly produced 1651 collections, mostly duplicates. Fold each report into one of 20 curated thematic sectors (plus Other), and add an icon for each sector in the UI.
e2a2873 to
a3c1892
Compare
Fixes #165.
Adds a new
usaiddecsource (aliasUSAID) for the USAID DEC Archive preserved by AidData, as requested in openzim/zim-requests#1897 (permission granted).Discovers evaluation reports from the AidData dataset catalog (ZIP/CSV) and downloads report PDFs for offline reading.
Supports report selection with
--usaid-ids=<Formatted Document IDs>(alphanumeric) and catalog positions via--books.Adds
--refresh-usaid-catalog(requires--cache-dir) and caches the extracted catalog CSV when--cache-diris used.Registers the source profile (
has_popularity=False), adds CLI/offliner definition/README/CHANGELOG updates, and adds a source icon SVG.Catalog/metadata are sourced from the AidData 2000–2024 USAID DEC evaluation reports dataset CSV (permanent PDF URLs).
Formats supported by this source are currently
pdf(reports are distributed as PDFs).Tests
test_usaiddec_catalog.py,test_usaiddec_metadata.py,test_usaiddec_pipeline.py, and updatedtest_source_registry.py.PYTHONPATH=src .venv/bin/pytest tests/test_source_registry.py tests/test_usaiddec_catalog.py tests/test_usaiddec_metadata.py tests/test_usaiddec_pipeline.py -v→ 26 passed.