-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add name of the user who has submitted feedback with comment and rating #6472
Comments
I would like to work on this issue @prateekj117 @iamareebjamal |
Go ahead |
Referring to #6538 according to which user name is not to be implemented as an attribute, I went through the complete flask rest JSON API docs, we have to get the name using user relationship. But how can I proceed, I explored resource linkage, include=model. Do I need to query in resource manager? @iamareebjamal @prateekj117 |
You need to just link the user as a relationship. See any schema like event or speaker |
Code |
You need to dynamically update the schema depending on the kind of user requesting the resource - admin or normal |
ok |
Actually, I can fix it with a lambda function like this but I see a check already defined in User Resource Manager for a detail view this. On testing API by clicking on the related link under relationships even if I hardcode it UserSchemaPublic, the before get validators again change it to UserSchema according to the check defined in the User. Also, the user name is served in both the schema, I think its already solved or should I implement this double-check lambda function |
Please let me know if what I figured out is correct and this issue is invalid, else I will research more towards solution @iamareebjamal |
Yes, the issue is invalid |
Is your feature request related to a problem? Please describe.
Right now we are only getting comment and rating in the feedback submitted by a user , So we cant see who has actually posted the feedback .
Describe the solution you'd like
Add name of the user with rating and comment . in the feedback response .
Additional context
fossasia/open-event-attendee-android#2366
I am working on it .
The text was updated successfully, but these errors were encountered: