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

multiple geometry staging #350

Merged
merged 104 commits into from
Jan 23, 2024
Merged

multiple geometry staging #350

merged 104 commits into from
Jan 23, 2024

Conversation

struan
Copy link
Member

@struan struan commented Nov 21, 2023

This is purely a staging branch for all the multiple geometry stuff to go into once reviewed so we don't have a load of long running interdependent PRs

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

Attention: 112 lines in your changes are missing coverage. Please review.

Comparison is base (56db4e9) 84.49% compared to head (29a21e9) 83.17%.
Report is 2 commits behind head on main.

Files Patch % Lines
hub/transformers.py 25.00% 45 Missing ⚠️
hub/models.py 79.26% 14 Missing and 3 partials ⚠️
hub/management/commands/base_importers.py 60.52% 11 Missing and 4 partials ⚠️
hub/views/area.py 77.58% 8 Missing and 5 partials ⚠️
hub/mixins.py 60.00% 10 Missing and 2 partials ⚠️
...management/commands/import_mps_election_results.py 41.66% 5 Missing and 2 partials ⚠️
hub/management/commands/import_mps.py 71.42% 2 Missing ⚠️
utils/constituency_mapping.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
- Coverage   84.49%   83.17%   -1.32%     
==========================================
  Files          88      100      +12     
  Lines        2676     3007     +331     
  Branches      271      315      +44     
==========================================
+ Hits         2261     2501     +240     
- Misses        351      430      +79     
- Partials       64       76      +12     

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

@zarino
Copy link
Member

zarino commented Dec 19, 2023

Noting for the new year – I’m getting a 500 error on the staging site, when I try to load the area page for a new constituency:

Exception Type: TypeError at /area/WMC23/Bridlington and The Wolds
Exception Value: 'AreaData' object is not iterable
Raised during: hub.views.area.AreaView

@struan
Copy link
Member Author

struan commented Jan 8, 2024

I've ficed the above error

@struan struan force-pushed the multiple-geometry-staging branch from 6bec7e1 to 59a6179 Compare January 11, 2024 10:07
@zarino zarino force-pushed the multiple-geometry-staging branch from 77f4a56 to 5138236 Compare January 12, 2024 12:57
@struan struan force-pushed the multiple-geometry-staging branch 2 times, most recently from da939f7 to 9cfd95a Compare January 22, 2024 13:36
struan and others added 20 commits January 22, 2024 13:47
This is off by default.
This also removes the annoying survey message
deletes new cons data, also prints a message and respects quiet
setting for converter
Include averages for both area types in filter list and then select the
correct one client side when processing the data
If a user is logged in they are a member so can access non public
datasets
also update tests for this
@struan struan force-pushed the multiple-geometry-staging branch from 6f6901f to 7df2e5f Compare January 22, 2024 13:48
@struan struan merged commit 29a21e9 into main Jan 23, 2024
15 of 17 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.

4 participants