Choropleth language independent settings#194
Conversation
8c65369 to
98fbfc5
Compare
VesnaT
left a comment
There was a problem hiding this comment.
When I open a saved workflow, the Show setting does not reflect the correct state.
98fbfc5 to
47efa39
Compare
|
@VesnaT, you probably mean the aggregation type, which was reset to "Count"? (It didn't work before -- see #195 --, either, but failed in a different way). I fixed this and merged it into the previous commit. In case you already looked into the code (likely not), this is what I changed now. |
20c6a85 to
3d94571
Compare
There was a problem hiding this comment.
Pull request overview
This PR addresses cross-language workflow compatibility for the Choropleth widget by making the stored aggregation setting language-independent (using a stable aggregation identifier instead of the displayed/translatable label), and updates migrations/tests accordingly.
Changes:
- Store
agg_funcas a stable internal name (e.g.,"mean","mode","min") and map it to a display label for the UI/tooltip. - Add settings/context migration to convert older saved contexts to the new
agg_funcrepresentation (settings version bump to 3). - Update widget tests and adjust some related widget logic and dependency pins.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
tox.ini |
Updates “oldest” dependency constraints for numpy/pandas. |
orangecontrib/geo/widgets/tests/test_owchoropleth.py |
Updates expectations for internal agg_func values and adds migration/settings retrieval tests. |
orangecontrib/geo/widgets/owgeotransform.py |
Tightens None checks and prevents running when lat/lon attrs are missing. |
orangecontrib/geo/widgets/owgeocoding.py |
Refactors commit path to handle encode/decode returning None more safely. |
orangecontrib/geo/widgets/owchoropleth.py |
Implements language-independent aggregation setting, adds mapping to display labels, and migrates contexts to v3. |
i18n/si/msgs.jaml |
Updates extracted strings to match the new tooltip/display mapping and removed symbols. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3d94571 to
c24458f
Compare
c24458f to
f5f8230
Compare
Issue
Fixes #192. Also fixes #195.
Based on #193.
Description of changes
Includes