-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: add role name to json object #6015
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
Conversation
| "event": role_invite.event_id, | ||
| "name": user.fullname if user.fullname else None | ||
| "name": user.fullname if user.fullname else None, | ||
| "role": uer.role.name |
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.
Fix the typo.
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.
@prateekj117 It's not a typo 😆 , it's a uer object, users_events_roles
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.
@uds5501 Can you name more understandable,At first even i thought its a typo
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.
@kushthedude I think that wouldn't exactly be necessary. all through our code, uer is being used as users_events_roles model so I think I should stick to it to maintain uniformity.
Codecov Report
@@ Coverage Diff @@
## development #6015 +/- ##
============================================
Coverage 66.29% 66.29%
============================================
Files 285 285
Lines 13997 13997
============================================
Hits 9279 9279
Misses 4718 4718
Continue to review full report at Codecov.
|
|
@mrsaicharan1 @shreyanshdwivedi @prateekj117 please review! |
Fixes #6014
Checklist
developmentbranch.Short description of what this resolves:
Adds a role-name attribute to the json object. As suggested here fossasia/open-event-frontend#2771