Skip to content

Mongolia_Education import Fix - #2121

Open
kartik-s21 wants to merge 33 commits into
datacommonsorg:masterfrom
kartik-s21:fix-mongolia-education
Open

Mongolia_Education import Fix#2121
kartik-s21 wants to merge 33 commits into
datacommonsorg:masterfrom
kartik-s21:fix-mongolia-education

Conversation

@kartik-s21

@kartik-s21 kartik-s21 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the download script and pvmappings for the import Mongolia_Education

Key Changes

  • Fixed download script with the New source URL and the download logic.
  • Resolved conflicts in the run.sh script.
  • Corrected the PVmap for all the datasets + added placeholders for 5 more years.

PR Checklist - link

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces dynamic table path resolution and metadata fetching in common_download_script.py to retrieve and pivot Mongolian education data. It also updates several PV map CSV files with corrected mappings and extended observation dates up to 2030, and adds place resolution to the kindergarten script in run.sh. The code review feedback highlights three key improvements: caching API responses in find_table_path to avoid redundant catalog crawls, adding timeouts to network requests to prevent hanging, and applying defensive programming checks on API responses to avoid potential runtime crashes.

Comment thread statvar_imports/mongolia_imports/common_download_script.py
Comment thread statvar_imports/mongolia_imports/common_download_script.py Outdated
Comment thread statvar_imports/mongolia_imports/common_download_script.py Outdated
@kartik-s21 kartik-s21 changed the title Fix mongolia education Mongolia_Education import Fix Jul 31, 2026
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.

1 participant