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 admin editing of anonymous reports #5174

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

davea
Copy link
Member

@davea davea commented Sep 18, 2024

Not submitting the name field would cause a DB error because it would try to set name to NULL.
And including the other two seemed like a good idea too.

[skip changelog]

@davea davea requested a review from dracos September 18, 2024 12:38
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

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

Ah great, thanks, I had this on my list to do as it came up as a side effect in FD-4569.
I don't think we would ever want to make the anonymous user not anonymous, and username shouldn't matter if not present, but I agree, might as well pass them all back for now just to match what it was before.

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.48%. Comparing base (9e1050a) to head (65b55d9).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5174      +/-   ##
==========================================
- Coverage   82.49%   82.48%   -0.01%     
==========================================
  Files         406      406              
  Lines       31716    31716              
  Branches     5044     5044              
==========================================
- Hits        26164    26162       -2     
- Misses       4063     4065       +2     
  Partials     1489     1489              

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

Not submitting the name field would cause a DB
error because it would try to set `name` to NULL.
And including the other two seemed like a good
idea too.
@davea davea merged commit 65b55d9 into master Sep 18, 2024
19 of 20 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.

2 participants