anitab-org / mentorship-backend

Mentorship System is an application that matches women in tech to mentor each other, on career development, through 1:1 relations during a certain period of time. This is the backend of this system.
https://mentorship-backend-temp.herokuapp.com/
GNU General Public License v3.0
196 stars 449 forks source link

feat: updated task_comment information to include if comment owned by user #1152

Open mariejp opened 2 years ago

mariejp commented 2 years ago

Description

Getting a task_comment model now returns an object with these fields: { "id": self.id, "sent_by_me": sent_by_me, "user": { "id": self.user_id, "name": self.user_name, }, "user_id": self.user_id, "task_id": self.task_id, "relation_id": self.relation_id, "creation_date": self.creation_date, "modification_date": self.modification_date, "comment": self.comment, }

Fixes # [685]

Type of Change:

How Has This Been Tested?

I ran the unit tests again, making sure to run python -m unittest discover tests with my updated code.

Checklist:

welcome[bot] commented 2 years ago

Hello there!👋 Welcome to the project!💖 Thank you and congrats 🎉 for opening your first PR on this project.✨ Please ensure your Pull Request meets the Commit Message Style Guide. We will review it soon! Until then you can check out the README.md for more details on it.

AnitaB.org Open Source is an inclusive community, committed to creating a safe and positive environment 🌸 Please follow our Code Of Conduct.

Feel free to join our community at AnitaB.org Open Source Zulip Community to be kept up to date with our projects discussions and community activities. Hope you have a great time here :)