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

Fix for multiple categories with same name in different group set #3029

Merged
merged 2 commits into from May 27, 2020

Conversation

dracos
Copy link
Member

@dracos dracos commented May 11, 2020

Start off making sure everything is using ->groups consistently, why not, then add a tiny bit to reporting so that if two bodies have a contact with the same name but in different groups, one set of groups isn't lost (spotted with Highways England but could theoretically happen elsewhere).
Hopefully fixes https://github.com/mysociety/fixmystreet-commercial/issues/1854.

@dracos dracos requested a review from davea May 11, 2020 16:00
@codecov
Copy link

codecov bot commented May 11, 2020

Codecov Report

Merging #3029 into master will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3029      +/-   ##
==========================================
+ Coverage   83.08%   83.13%   +0.04%     
==========================================
  Files         246      246              
  Lines       15440    15440              
  Branches     2887     2882       -5     
==========================================
+ Hits        12829    12836       +7     
+ Misses       1695     1690       -5     
+ Partials      916      914       -2     
Impacted Files Coverage Δ
...llib/FixMyStreet/App/Controller/Admin/Templates.pm 82.14% <ø> (ø)
perllib/FixMyStreet/App/Controller/Admin/Users.pm 86.27% <ø> (ø)
perllib/FixMyStreet/App/Controller/JSON.pm 86.00% <ø> (-0.28%) ⬇️
perllib/FixMyStreet/App/Controller/Admin/Triage.pm 86.76% <100.00%> (+1.25%) ⬆️
perllib/FixMyStreet/App/Controller/Dashboard.pm 90.52% <100.00%> (ø)
perllib/FixMyStreet/App/Controller/My.pm 84.47% <100.00%> (+0.29%) ⬆️
perllib/FixMyStreet/App/Controller/Report.pm 87.88% <100.00%> (ø)
perllib/FixMyStreet/App/Controller/Report/New.pm 90.18% <100.00%> (+0.02%) ⬆️
perllib/FixMyStreet/Cobrand/Hounslow.pm 77.04% <100.00%> (ø)
perllib/FixMyStreet/Cobrand/IsleOfWight.pm 78.43% <100.00%> (+5.09%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6e723a...9018344. Read the comment docs.

When compiling the reporting category dropdown, only one instance of
each value was used. But if a value appears twice, from two different
bodies, in different groups, it would then not appear in all the groups
it would be expected to. Make sure we update the list of groups of the
category if we come across another with the same value.
@dracos dracos merged commit 8a03006 into master May 27, 2020
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

2 participants