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

Import Transition Network groups #628

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Import Transition Network groups #628

merged 1 commit into from
Jan 27, 2025

Conversation

zarino
Copy link
Member

@zarino zarino commented Jan 10, 2025

Closes #389.

I would have loved to use our json config-based importer for this, but it doesn’t handle group imports yet, and modifying it to inherit from BaseConstituencyGroupListImportCommand rather than BaseImportFromDataFrameCommand was beyond the scope of this ticket.

To import the groups, run:

script/manage generate_transition_network_groups_csv
script/manage import_transition_network_groups

Or just let both commands be run automatically as part of:

script/manage run_all_import_scripts --generate

@zarino zarino requested a review from struan January 10, 2025 14:17
Copy link
Member

@struan struan left a comment

Choose a reason for hiding this comment

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

looks good

Closes #389.

I would have loved to use our json config-based importer for this,
but it doesn’t handle group imports yet, and modifying it to inherit
from BaseConstituencyGroupListImportCommand rather than
BaseImportFromDataFrameCommand was beyond the scope of this ticket.
@struan struan force-pushed the 389-transition-groups branch from b173c20 to d028ca8 Compare January 27, 2025 14:20
@struan struan merged commit d028ca8 into main Jan 27, 2025
5 checks 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.

Import data on Transition Towns groups that cover each constituency
2 participants