mentorship-backend icon indicating copy to clipboard operation
mentorship-backend copied to clipboard

"Complete task" not including all the necessary information when request id is not in accepted mode

Open StergiosSozos opened this issue 5 years ago • 8 comments

Description

As a user,when i try to complete a task I need to know what I did wrong and why what I expected did not happen.

I observed that when a request id is not accepted and a user tries to complete a task (which does not exist, as a task cannot be created) the message is about the wrong task, but it should show the initial problem too, that the relationship is not accepted.

To Reproduce Steps to reproduce the behavior:

  1. Send a relationship request from user1 to a user2
  2. Do not accept that request from user2
  3. Try to complete a task (the number will be random as a task cannot be created)
  4. See the error message, about the task not existing, but not about the relationship not having been accepted

Expected behavior The message should inform the user trying to complete the task that the relationship is not accepted too.

Screenshots image

StergiosSozos avatar Apr 12 '20 12:04 StergiosSozos

@isabelcosta Can i work on this issue?

StergiosSozos avatar Apr 12 '20 12:04 StergiosSozos

@isabelcosta

StergiosSozos avatar Apr 16 '20 10:04 StergiosSozos

@isabelcosta can i be assigned please?

StergiosSozos avatar Apr 20 '20 18:04 StergiosSozos

Hi @StergiosSozos sure I approve this. So if I understand correctly, your idea here is to first respond with the highest level of what went wrong, and in this case was that the request is not in the accepted state. Is this correct?

isabelcosta avatar Apr 20 '20 18:04 isabelcosta

Exactly! Now, we inform the user that there is not task, but there is no point in this as the user cannot create a task, he first needs to have an accpeted relationship. I already worked on that so I will create a PR when it's ready! Sorry for working before getting assigned.

StergiosSozos avatar Apr 20 '20 18:04 StergiosSozos

Can I work on this issue

b-thebest avatar Mar 02 '21 12:03 b-thebest

@vj-codes can I work on this?

RiddhiAthreya avatar Jul 06 '21 15:07 RiddhiAthreya

@RiddhiAthreya if you're still interested, ping me and I'll assign this to you ;)

isabelcosta avatar Jul 29 '21 22:07 isabelcosta