iotagent-node-lib icon indicating copy to clipboard operation
iotagent-node-lib copied to clipboard

Device and Group datamodels used in API requests differ from data models used internally or in MongoDB

Open AlvaroVega opened this issue 11 months ago • 5 comments

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

I.E:

  • Attributes are stored into mongo DB as active but in Group and Device model are called attributes
  • Groups are managed internally (and not only into the as services (refer to PR #1648 and Issue #1649 )

All datamodels used across codebase, API requests and DB models should be homogeneus

AlvaroVega avatar Mar 04 '24 10:03 AlvaroVega

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 avatar Mar 04 '24 11:03 AlvaroVega

Hi @AlvaroVega ,

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

Madhu1029 avatar May 14 '24 05:05 Madhu1029

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.

AlvaroVega avatar May 14 '24 08:05 AlvaroVega

As part of this issue, analyze which exact adaptations are needed.

The final objective is that API, code and DB model get aligned (code-API adaptation is also mentioned here).

fgalan avatar Aug 26 '24 13:08 fgalan

Maybe both #1649 and this issue should be addressed together.

fgalan avatar Aug 26 '24 13:08 fgalan