-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feat 2206 - Prevent commentator's name from displaying when updating information from comment #2217
Conversation
Quality Gate passedIssues Measures |
else: | ||
#if the request user is not government and the commenter | ||
#is government | ||
return {'display_name': 'Government User'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that this get_create_user()
method used to return the data associated with a MemberSerializer
instance, which consists of fields ('id', 'first_name', 'last_name', 'email', 'display_name', 'is_active', 'phone', 'roles', 'is_mapped')
. Just wanted to make sure that returning only a display_name
doesn't break anything in the frontend (e.g. if email
is null it doesn't throw an error). As long as that's the case, looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find any case with the vehicle comment serializer or sales submission comment serializer where email is used. I do want to make this more reusable as we probably will need to extend this to other features in which case we may want to add in the other fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, sounds good, thanks for checking! I'll merge it in
else: | ||
#if the request user is not government and the commenter | ||
#is government | ||
return {'display_name': 'Government User'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above
* initial 1.60.0 * update pr number * Update user-story-.md (#2198) * Task: Reassessment Credit Modifications #2195 (#2214) * Allowing all credit fields to me modified in reassessments * Cleanup * More cleanup * feat: removes idir names from sales submission and vehicle comments (#2217) * fix: 2215 - credit balances and recent reassessments (#2230) * for emily to look at - suggested solution for rounding issues (#2234) Co-authored-by: tim738745 <[email protected]> * chore: updates login instructions (removes references to creation_request table) (#2238) * remove test data load for pr build * update pr build * increase resource for pr build * only setup db for pr build * update pr build * New pipeline (#2229) * add test ci (#2242) * fix: removes unecessary data from transfer -- build-on-dev (#2241) * fix: removes unecessary data from transfer * fix: new user serializer passes only basic user info to frontend -get history modified so that approved and disapproved statuses created by government are excluded so that communications/status changes within government are not shown in network tab * removes id from user basic serializer * emergency release 1.59.1 * update for emergency release 1.59.1 * emergency release stuff (#2260) Co-authored-by: Kuan Fan <[email protected]> * change version number to 1.59.1 (#2261) * change package json number to 1.60.0 (#2262) * Emergency Release 1.59.1 (#2258) (#2263) * add emergency release-1.59.1 * add pull_request events * Update package.json * Transfer fix (#2244) * fix: removes unecessary data from transfer * fix: new user serializer passes only basic user info to frontend -get history modified so that approved and disapproved statuses created by government are excluded so that communications/status changes within government are not shown in network tab * removes id from user basic serializer * more fixes * small change + tests * Update version to be 1.59.1 in package.json --------- * Update emergency-release-build-1.59.1.yaml --------- Co-authored-by: Kuan Fan <[email protected]> Co-authored-by: emi-hi <[email protected]> * revert post emergency release commits (#2264) * update approval list --------- Co-authored-by: Samuel Chukwuma Arawu <[email protected]> Co-authored-by: JulianForeman <[email protected]> Co-authored-by: Emily <[email protected]> Co-authored-by: tim738745 <[email protected]> Co-authored-by: tim738745 <[email protected]> Co-authored-by: emi-hi <[email protected]>
removes commentors name from vehicle and credit requests
if commenter is idir and current user is bceid:
show 'government user'
if commenter is bcied or current user is idir:
show details