Hi Team,
We have been our testing our application based on Usergrid 2 (master branch
taken today) and started noticing some data inconsistency.
Our investigations revealed that user/{userid}/groups returns deleted group
entities, when we use a search query in this API.
If we remove the search query, then the API returns the correct groups for
the user.
Steps:
1. create a user and a group
2. create user group relationship
POST
/users/me/groups/961ad450-1108-11e6-9814-0a8420d67f0b?access_token=<access_token>
** user has only one group
3. delete user group relationship
DELETE
/users/me/groups/961ad450-1108-11e6-9814-0a8420d67f0b?access_token=<access_token>
4. get groups of user (works correctly as expected)
GET /users/me/groups?access_token=<access_token>
return entities as blank array
5. get groups of user using search query
GET /users/me/groups?access_token=<access_token>&ql=select * where category
= 'default' order by created desc
returns a group in the entity array, inspite of the relationship being
deleted previously
Appreciate the help.
Thanks
--
Regards,
Harish Singh Bisht