-
Notifications
You must be signed in to change notification settings - Fork 447
fix: Return error message when relationship is not accepted in Comple… #549
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
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.
@StergiosSozos I requested some minor changes. this is almost done, thank you for this contribution 🎉
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 just recalled now, can you create a simple test for it, showing that that is the first message that appears if the user attempts to create a task in a non accepted relation.
This would make this PR shine 🤩
Sure, so a unit test right? So that we can test that the message that we want to be diaplayed is the one i added here and it does appear. |
yes :) |
Create 5th user Create relationship between 4th and 5th user that is not accepted Add test case to check the message shown
A unit test for my method is now added, in addition with an extra user on the databse. |
@StergiosSozos can you please update this PR |
@StergiosSozos thank you for working on this project 🙌🏾 From what I see, only the merge conflicts are left to approve this. However, I will close this PR due to lack of response. If you wish to work on it again and the issue is still available feel free to comment there :) |
Hi! What were the requested changes for this PR? I cannot seem to locate them anywhere. |
Description
The mentorship relation state (accepted or not) is now checked when someone is trying to complete a task from a relationship that is not accepted. This check is also of higher importance than the existence of the task. So if the relationship is not accepted the user gets a message that the relationship is not accepted.
Fixes #537
Type of Change:
How Has This Been Tested?
All the tests have the same result as before. No extra tests were added.
Checklist:
Code/Quality Assurance Only