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 duplicate asset selection message #3101

Merged
merged 2 commits into from Jul 7, 2020

Conversation

dracos
Copy link
Member

@dracos dracos commented Jul 2, 2020

Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1920
And default as I found another type of street light not covered when I did #3070

@dracos dracos requested a review from davea July 2, 2020 16:53
@codecov
Copy link

codecov bot commented Jul 2, 2020

Codecov Report

Merging #3101 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3101   +/-   ##
=======================================
  Coverage   83.21%   83.21%           
=======================================
  Files         247      247           
  Lines       15593    15593           
  Branches     2917     2917           
=======================================
  Hits        12976    12976           
  Misses       1681     1681           
  Partials      936      936           

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 6433582...d8245e7. Read the comment docs.

If we create one category_meta_message for each category, removing when
not relevant, then duplicat suggestion showing leads to duplicate
messages because the layer is still relevant, just not visible, and so
the old layer message is not removed. Instead, repurpose the ID of any
existing category_meta_message, so there is only ever one in existence.
@dracos dracos force-pushed the fix-duplicate-asset-selection-message branch from 5768cc0 to d8245e7 Compare July 6, 2020 11:22
@dracos dracos merged commit d597f50 into master Jul 7, 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