From d25a2839a82ff387d43fb4e57e27f0159ae894b6 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 2 Oct 2023 11:10:07 +0200 Subject: [PATCH 1/4] Update deviceRegistryMongoDB.js --- lib/services/devices/deviceRegistryMongoDB.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/services/devices/deviceRegistryMongoDB.js b/lib/services/devices/deviceRegistryMongoDB.js index be92335bb..0e095e0f7 100644 --- a/lib/services/devices/deviceRegistryMongoDB.js +++ b/lib/services/devices/deviceRegistryMongoDB.js @@ -55,7 +55,8 @@ const attributeList = [ 'polling', 'timestamp', 'explicitAttrs', - 'ngsiVersion' + 'ngsiVersion', + 'subscriptions' ]; /** @@ -316,6 +317,7 @@ function update(device, callback) { data.explicitAttrs = device.explicitAttrs; data.ngsiVersion = device.ngsiVersion; data.timestamp = device.timestamp; + data.subscriptions = device.subscriptions; /* eslint-disable-next-line new-cap */ const deviceObj = new Device.model(data); From d8b5a2006031d85bd12ee5442384c149e65c7a90 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 2 Oct 2023 11:20:45 +0200 Subject: [PATCH 2/4] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index b12cf170a..30289ddfa 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,2 +1,3 @@ +- Fix store device subscriptions updates - Fix: remove mongo `DeprecationWarning: current Server Discovery and Monitoring engine is deprecated` by setting `useUnifiedTopology = true` - Upgrade mongodb dev dep from 4.17.0 to 4.17.1 From b1be8efc20d388fda1260831ad40a869d7fe748a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Mon, 5 Feb 2024 16:42:19 +0100 Subject: [PATCH 3/4] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 24030726a..2c66b00d6 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1 +1 @@ -- Fix store device subscriptions updates \ No newline at end of file +- Fix: store device subscriptions updates \ No newline at end of file From db8a3642248e54bdd4a649c3d2ded45cd38ea1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Mon, 5 Feb 2024 16:43:56 +0100 Subject: [PATCH 4/4] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 2c66b00d6..8974767ef 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1 +1 @@ -- Fix: store device subscriptions updates \ No newline at end of file +- Fix: store device subscriptions updates (#1086) \ No newline at end of file