Closed mapedraza closed 3 months ago
This is a future regression case for issue #1606
IMHO with this group definition:
explicitAttrs: "[ ]",
timestamp: true,
a TimeInstant will be always propaged to CB, regardless attribute mapping definition.
This PR is as I think it would be: https://github.com/telefonicaid/iotagent-node-lib/pull/1614
IMHO with this group definition:
explicitAttrs: "[ ]", timestamp: true,
a TimeInstant will be always propaged to CB, regardless attribute mapping definition.
This PR is as I think it would be: #1614
If the logic is that explicitAttrs
empty implies that no timestamp
should be propagated to CB then the logic to change is
by adding check that explicit.length > 0
if (explicit instanceof Array && explicit.length > 0 && mustInsertTimeInstant) {
A part of original PR https://github.com/telefonicaid/iotagent-node-lib/pull/1605 including test 533
See https://github.com/telefonicaid/iotagent-node-lib/pull/1605#issuecomment-2100832653