Skip to content

Commit 351608d

Browse files
author
Adrien Maret
authored
Merge pull request #165 from kuzzleio/0.4.14-proposal
# [0.4.14](https://github.com/kuzzleio/kuzzle-device-manager/releases/tag/0.4.14) (2022-03-31) #### Bug fixes - [ [#164](#164) ] Remove measure when unlinking asset ([Aschen](https://github.com/Aschen)) ---
2 parents c81198f + dac89b7 commit 351608d

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

features/DeviceController.feature

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,8 @@ Feature: Device Manager device controller
283283
Then The document "tenant-ayse":"devices":"DummyTemp-attached_ayse_unlinked" content match:
284284
| assetId | null |
285285
And The document "tenant-ayse":"assets":"PERFO-unlinked" content match:
286-
| measures.position.reference | "detached" |
287-
| measures.position.payloadUuid | "some-uuid" |
288-
| measures.position.accuracy | 42 |
289-
| measures.position.model | "_STRING_" |
290-
| measures.position.id | "_STRING_" |
291-
| measures.position.point.lon | 3.876716 |
292-
| measures.position.point.lat | 43.610767 |
293-
| measures.position.updatedAt | 1610793427950 |
286+
| measures.position.reference | "detached" |
287+
| measures.temperature | null |
294288

295289
Scenario: Clean payloads collection
296290
Given I successfully execute the action "collection":"truncate" with args:

lib/core-classes/DeviceService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export class DeviceService {
355355

356356
for (const [measureName] of Object.entries(device._source.measures)) {
357357
if (measures[measureName]) {
358-
measures[measureName] = undefined;
358+
measures[measureName] = null;
359359
}
360360
}
361361

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kuzzle-device-manager",
3-
"version": "0.4.13",
3+
"version": "0.4.14",
44
"description": "Manage your IoT devices and assets. Choose a provisionning strategy, receive and decode payload, handle your IoT business logic.",
55
"author": "The Kuzzle Team (support@kuzzle.io)",
66
"repository": {

0 commit comments

Comments
 (0)