Skip to content

feat: Updated map to display regions #144

Merged
bassosimone merged 7 commits intomainfrom
sandbox-updatedmap
Feb 11, 2026
Merged

feat: Updated map to display regions #144
bassosimone merged 7 commits intomainfrom
sandbox-updatedmap

Conversation

@zarsl
Copy link
Collaborator

@zarsl zarsl commented Feb 5, 2026

This pull request includes the latest IQB-prototype changes and specifically a better map.

@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.91%. Comparing base (0c5961d) to head (fc3b142).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #144   +/-   ##
=======================================
  Coverage   99.91%   99.91%           
=======================================
  Files          52       52           
  Lines        3729     3729           
=======================================
  Hits         3726     3726           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zarsl
Copy link
Collaborator Author

zarsl commented Feb 5, 2026

@bassosimone @sermpezis FYI on moving sandbox code to main application

@zarsl zarsl self-assigned this Feb 5, 2026
@bassosimone
Copy link
Collaborator

@zarsl I will take a look

Copy link
Collaborator

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

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

Thanks, I'm going to merge this now! 🐳


GEOJSON_ADMIN1_DIR = SCRIPT_DIR.parent / "natural_earth" / "geojson_admin1"
MANIFEST_URL = (
"https://raw.githubusercontent.com/m-lab/iqb/main/data/state/ghremote/manifest.json"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note to self. We should probably pin or include this into the distribution. Fetching directly from main could cause side effects. Need to think a bit more about the right approach here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, after my recent changes, we have this error:

ImportError: cannot import name 'IQBGitHubRemoteCache' from 'iqb.ghremote.cache' (/app/library/src/iqb/ghremote/cache.py)
Traceback:

File "/app/prototype/pages/IQB_Map.py", line 24, in <module>
    from iqb.ghremote.cache import IQBGitHubRemoteCache, Manifest, data_dir_or_default

It should not be a huge deal, however the name has changed. The new name is IQBRemoteCache. The pull request that caused a breaking change is #131.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fixed in fc3b142. Now I am going to wait for the deployment and check the online prototype again. (Curiously tests were passing and I guess this is part of the "this is a prototype package". We -- for values of "we" close to "me" -- need to pay attention when refactoring, since green does not automatically imply that it's all good. 😅 In the next iteration, we probably want to improve the amount of testing of the prototype, now that the code has settled and it's probably a better moment to introduce more tests.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, confirmed that the prototype is WAI again.

@bassosimone bassosimone merged commit 2c6a185 into main Feb 11, 2026
6 checks passed
@bassosimone bassosimone deleted the sandbox-updatedmap branch February 11, 2026 15:31
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.

3 participants