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

For CSV export, fetch children of all generations. #4059

Merged

Conversation

dracos
Copy link
Member

@dracos dracos commented Aug 12, 2022

Fixes https://github.com/mysociety/societyworks/issues/3156

Area IDs are stored on a report at creation; if the areas in MapIt change, due to boundary changes, those IDs no longer match against the data in the current MapIt generation. So fetch all generations of children so old ward information is included.

@dracos dracos requested a review from davea August 12, 2022 14:51
@codecov
Copy link

codecov bot commented Aug 12, 2022

Codecov Report

Merging #4059 (810a01b) into master (d163a51) will decrease coverage by 9.12%.
The diff coverage is n/a.

❗ Current head 810a01b differs from pull request most recent head edec516. Consider uploading reports for the commit edec516 to get more accurate results

@@            Coverage Diff             @@
##           master    #4059      +/-   ##
==========================================
- Coverage   82.82%   73.69%   -9.13%     
==========================================
  Files         362       55     -307     
  Lines       25270     4760   -20510     
  Branches     3808        0    -3808     
==========================================
- Hits        20929     3508   -17421     
+ Misses       3154     1252    -1902     
+ Partials     1187        0    -1187     
Impacted Files Coverage Δ
perllib/FixMyStreet/Cobrand/Default.pm
perllib/FixMyStreet/DB/Result/Body.pm
perllib/FixMyStreet/Reporting.pm
perllib/FixMyStreet/App/Controller/Auth/Profile.pm
perllib/FixMyStreet/App/Form/Waste.pm
perllib/FixMyStreet/Map/Google.pm
...FixMyStreet/App/Form/Waste/Request/Peterborough.pm
perllib/FixMyStreet/App/Controller/About.pm
perllib/FixMyStreet/App/Controller/JS.pm
perllib/FixMyStreet/App/Form/ResponsePriority.pm
... and 297 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@davea davea left a comment

Choose a reason for hiding this comment

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

📛 🆕 🆗

Area IDs are stored on a report at creation; if the areas in MapIt
change, due to boundary changes, those IDs no longer match against
the data in the current MapIt generation. So fetch all generations
of children so old ward information is included.
@mysociety-pusher mysociety-pusher force-pushed the issues/societyworks/3156-old-ward-names-in-export branch from e3f8768 to edec516 Compare August 15, 2022 17:12
@mysociety-pusher mysociety-pusher merged commit edec516 into master Aug 15, 2022
@github-pages github-pages bot temporarily deployed to github-pages August 15, 2022 17:29 Inactive
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.

None yet

3 participants