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

Improve moderation diff display in few small ways #3105

Merged
merged 4 commits into from Jul 8, 2020

Conversation

dracos
Copy link
Member

@dracos dracos commented Jul 6, 2020

Fixes #2837

@dracos dracos requested a review from struan July 6, 2020 16:04
@codecov
Copy link

codecov bot commented Jul 6, 2020

Codecov Report

Merging #3105 into master will decrease coverage by 0.01%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3105      +/-   ##
==========================================
- Coverage   83.26%   83.25%   -0.02%     
==========================================
  Files         248      248              
  Lines       15559    15561       +2     
  Branches     2909     2911       +2     
==========================================
  Hits        12955    12955              
  Misses       1676     1676              
- Partials      928      930       +2     
Impacted Files Coverage Δ
...ib/FixMyStreet/DB/Result/ModerationOriginalData.pm 89.87% <40.00%> (-2.34%) ⬇️

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 d597f50...1425244. Read the comment docs.

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.

👍

As string_diff is used in hash values, it must always return something,
otherwise you could end up with e.g. category => 'extra'.
This is a current full list of extra keys that could be set on a report
that could confuse the moderation diff display.
@dracos dracos force-pushed the fix-moderation-diff-display branch from bbed7d1 to 1425244 Compare July 7, 2020 14:00
@dracos dracos merged commit 8070a84 into master Jul 8, 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.

Moderation log renders erroneous extra data sent_to diff strangely
2 participants