-
Notifications
You must be signed in to change notification settings - Fork 449
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 GET (...)/comments response to include user.name and sent_by_me #685
Comments
@isabelcosta I would like to work on this issue. |
@PrashanthPuneriya Are you available to work on this? |
@vj-codes Yes! |
@PrashanthPuneriya feel free to start working on this :) |
@PrashanthPuneriya are you still working on this :) Do you need any help? |
@isabelcosta I was quite busy until now. Would resume working on this issue and ping you whenever I need help :) |
No problem, but It's best then to open this issue for other contributors and then you can come back to this if its still available @PrashanthPuneriya |
@isabelcosta I would love to work on this. But I don't have much idea about this project. Could you give me some advice to get started? |
@jhalak27 I would look at how other APIs are done and the API you are planning to change. The important part is the TaskCommentDAO, here you can modify the returns to include the data you want. For example, here https://github.com/anitab-org/mentorship-backend/blob/develop/app/api/dao/task_comment.py#L100 you see that the comments are being fetched, you need to get the name of the user using Does this help? |
@jhalak27 would you like to work on this? Isabel has given you a brief about this issue above:) |
@vj-codes @isabelcosta as I am new to this project, it will take some time. Will that be okay? |
@jhalak27 that is totally fine, just let us know when you are stuck. Please give us update within 3 days intervals, and we can help you. |
@isabelcosta I am a bit confused about how to do this. Could you explain a bit more? |
It can also be considered to just add the user_name property instead of creating a new user object. That way, it won't be a breaking change for the frontend apps. However, that would be a small thing to fix on the frontend, and creating a user object as described in the description would be the more scalable option. |
@yugantarjain I am still finding it a bit tough. What should I do? |
@jhalak27 I am a bit busy, I will help you more in the next few days! |
Hi @jhalak27! What exact problem are you facing? (I'm not a backend expert though) |
Yes, adding a property (or the user object) around lines 23-29. And then the initializer will also have to be updated accordingly. |
Hey @jhalak27 any updates on this issue? |
It's bit hard for me. But I am trying to understand what all changes need to be done. |
@isabelcosta is this up for grabs? I would definitely like to give it a try ! |
Sure @shubhank-saxena :) Assigning you this issue. Happy coding! |
Hi @PrashanthPuneriya , There is no activity on this issue. If this is available, I would like to work on this issue. I have one assigned issue which is resolved and I have created PR which is in review state. |
@shubhank-saxena, Please let me know if you are still working on it. |
Hey @ashokrayal you can work on it. |
Assigning @ashokrayal :) |
Hi @PrashanthPuneriya, @isabelcosta, Can you please review this piece of code? I have not written testcases yet as I am not sure if this is right way to do it. Thanks |
@ashokrayal I don't have much idea about Flask-RestX but, I added a review(note:- I may be wrong). Also, I think it is better if you create a PR even though if the work isn't completed and ask for further clarifications. |
Hi @PrashanthPuneriya , I have fixed the issue and raised the PR. Thanks. |
@isabelcosta looks like issue #1110 and this issue are trying to accomplish the same thing. Please have a look at it. |
This issue is not available, right? |
@RiddhiAthreya assigned you this one as both issues were same |
I was not able to find any test cases that relied on the subfields in the TaskCommentModel. Am I correct in assuming that no test cases need to be updated? |
Description
As a frontend developer,
I need to have more information about the user who commented on a task,
so that I can display information as the user's name.
The idea is to improve the response of POST (...)/comments API to provide user
name
andsent_by_me
boolean.Mocks
Instead of having:
Have something like:
where
author
is the person who commented.Acceptance Criteria
Update [Required]
Definition of Done
Estimation
4 hours
The text was updated successfully, but these errors were encountered: