Skip to content
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

Issue while applying the filterJson in get Devices api by tenant id (NOT WORKING) #3536

Open
vaibhvgupta opened this issue Aug 24, 2023 · 0 comments
Labels
bug MongoDB Device Registry issues related to the Device Registry implementation based on MongoDB

Comments

@vaibhvgupta
Copy link

I'm not getting filter result when I'm applying the filterJson in this api:
API URL: https://hono.eclipseprojects.io:28443/v1/devices/My-Tenant?pageSize=30&pageOffset=0&filterJson=%7B%22field%22%3A%20%22%2Fext%2Fbrand%22%2C%22value%22%3A%20%22sony%2A%22%7D&sortJson=%7B%22field%22%3A%22%2Fext%2Fbrand%22%7D
Response: Download
{
"total": 10,
"result": [
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T12:47:04Z"
},
"id": "0c4949a1-ef57-461c-99dc-94eb83f39a2c"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T12:47:09Z"
},
"id": "48eae27f-0223-4f75-8347-3c702851f363"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T12:47:11Z"
},
"id": "64f71fdb-f331-49ac-a43a-b41026822d5d"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "vaibhav"
},
"status": {
"created": "2023-08-23T09:54:42Z"
},
"id": "67306f2c-02b0-4751-9b72-96543063705f"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T09:56:37Z"
},
"id": "686ea76e-f485-483d-8058-0c877be23e10"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T12:47:00Z"
},
"id": "7d1f4698-fe70-4fdb-b718-7e0c3e25a6a3"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T12:47:07Z"
},
"id": "99f7e1e4-9ddf-437f-9eb3-ae49c88e895e"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T12:47:05Z"
},
"id": "b086def3-99b2-4c4c-91c1-5fb9d170cd26"
},
{
"enabled": true,
"ext": {
"brand": "apple",
"userId": "pradeep"
},
"status": {
"created": "2023-08-23T12:47:08Z"
},
"id": "b3aa634f-d073-4132-931d-2503b9714df9"
},
{
"enabled": true,
"ext": {
"brand": "sony",
"userId": "vaibhav"
},
"status": {
"created": "2023-08-23T09:54:33Z"
},
"id": "c8a57206-e999-4fd8-a019-a5fc1f822d88"
}
]
}
In above url I've applied filter for ext/brand = sony, but in the response I'm getting all devices
please look in to this bug.

@vaibhvgupta vaibhvgupta changed the title Issue while applying the filterJson in get Devices api by tenant id Issue while applying the filterJson in get Devices api by tenant id (NOT WORKING) Aug 24, 2023
@sophokles73 sophokles73 added bug MongoDB Device Registry issues related to the Device Registry implementation based on MongoDB labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug MongoDB Device Registry issues related to the Device Registry implementation based on MongoDB
Projects
None yet
Development

No branches or pull requests

2 participants