telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
58 stars 84 forks source link

Allow to send to CB batch update for multimeasures for NGSI-LD #1623

Closed jason-fox closed 1 week ago

jason-fox commented 1 week ago

Equivalent of #1607 - it is just a copy of sendUpdateValueNgsi2() for now with relevant changes for NGSI-LD.

At some point the v2 functionality had been updated to : Not update value in the Context Broker with an empty payload. This path is more frequent in NGSI-LD as attributes which resolve to null are already removed. This leads to the update of a large number of test expectations where an "empty entity" was being appended to the upsert.

Several (mainly JEXL) tests are no longer relevant, since they result in a null and no CB update - I have currently set those tests to PENDING for now pending further review - I can delete them if necessary.

fgalan commented 1 week ago

Several (mainly JEXL) tests are no longer relevant, since they result in a null and no CB update - I have currently set those tests to PENDING for now pending further review - I can delete them if necessary.

I think it would be better to delete them, for cleanness, please.

fgalan commented 1 week ago

An entry in CHANGES_NEXT_RELEASE describing the change in this PR (including issue reference, if any) would be great.

jason-fox commented 1 week ago

I think it would be better to delete them, for cleanness, please.

Fixed 079bb44

An entry in CHANGES_NEXT_RELEASE

Fixed 8de86c7