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

active attributes are stored in Device model (mongo) as "active" but are stored in Group Model as "attributes" #1587

Open
AlvaroVega opened this issue Mar 4, 2024 · 3 comments

Comments

@AlvaroVega
Copy link
Member

IoT Agent Node Lib version the issue has been seen with

1.X, 2.X, 3.X

Bound or port used (API interaction)

Other

NGSI version

NGSIv2

Are you running a container?

None

Image type

None

Expected behaviour you didn't see

Maybe both should be stored under the same entry (attributes).
API is using in both cases "attributes" not "active"

Unexpected behaviour you saw

No response

Steps to reproduce the problem

No response

Configs

environment:
    - "IOTA_CB_HOST=orion"
    - "IOTA_CB_PORT=1026"
    - "IOTA_NORTH_PORT=4041"
    - "IOTA_REGISTRY_TYPE=mongodb"
    - "IOTA_MONGO_HOST=mongodb"
    - "IOTA_MONGO_PORT=27017"
    - "IOTA_MONGO_DB=iotagent-json"
    - "IOTA_HTTP_PORT=7896"
    - "IOTA_PROVIDER_URL=http://iot-agent:4041"

Log output

No response

@AlvaroVega
Copy link
Member Author

We should review doc about ensure API s properly described.
Possibly a db script update should be needed to solve this issue if finally should be fixed.

@AlvaroVega AlvaroVega changed the title active attributes are stored in Device model as "active" bug as "attributes" in Group Model active attributes are stored in Device model as "active" but as "attributes" in Group Model Mar 12, 2024
@Madhu1029
Copy link
Contributor

Hi @AlvaroVega ,

Could you please explain this issue in detail? I want to work on this issue.

@AlvaroVega AlvaroVega changed the title active attributes are stored in Device model as "active" but as "attributes" in Group Model active attributes are stored in Device model (mongo) as "active" but are stored in Group Model as "attributes" May 14, 2024
@AlvaroVega
Copy link
Member Author

Hi @AlvaroVega ,

Could you please explain this issue in detail? I want to work on this issue.

Not sure if this is the best issue to implement now, since implements changes in database (mongo) model and has some impact in current production deploys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants