octoposprime / op-be-graphql

OctopOS Prime Backend Api Gateway
http://www.octoposprime.com
MIT License
13 stars 1 forks source link

Test "updateUserStatus" mutation #31

Open Sddilora opened 6 months ago

Sddilora commented 6 months ago

Test the "updateUserStatus" mutation with all possible cases and create an issue if any bugs are found. If you encounter unexpected behavior or are unsure if it is intended, please create an issue for that as well.

You can find an example issue and bug report (or a question if this is a bug) in this link.

"Test GraphQL Query and Mutation" guide is available for further assistance.

mervegonc commented 6 months ago

I login as admin and use this mutation for testing “updateUserStatus”

mutation updateUserStatusAdmin{
  updateUserStatus(user: {
    Id: "20b7e1a5-b716-4820-bf98-e69c08786a00",
    UserStatus: ACTIVE
  }) {
    Id
    UserStatus
  }
}

I tried 3 different “userstatus” for admin’s id, manager’ id, user’ id, guest’ id userstatus 1-None 2-ACTİVE 3- INACTİVE

Finally I successfully changed user status for 3 different users. But I couldn't change the administrators' status for Administrator. I don't know if this is a bug or if it's supposed to be this way for the admin anyway.

Sddilora commented 6 months ago

https://github.com/octoposprime/op-be-graphql/issues/29#issuecomment-2059324057

can you update your comment

mervegonc commented 6 months ago

I edited the code in my comment so that it looks properly, thank you for the caution. <3

Sddilora commented 6 months ago

I update it again and now it has colors voilà !

mervegonc commented 6 months ago

how did you do that?

Sddilora commented 6 months ago

I added "graphql" keyword after ```

Sddilora commented 5 months ago

Can you test the change admin status with admin credentials again.

https://github.com/octoposprime/op-be-graphql/issues/56#issuecomment-2089851889