From 949c1e78109a704a07980d7538eaee11628624d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Wed, 2 Feb 2022 17:16:17 +0100 Subject: [PATCH 01/19] FIX add node v14 and v16 to GitActions utests and remove node v10 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74137789..91be8ea4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,8 +63,9 @@ jobs: strategy: matrix: node-version: - - 10.x - 12.x + - 14.x + - 16.x steps: - name: Git checkout uses: actions/checkout@v2 From a417a48f08f88e0a97a21367a6b4c512e2e42624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Wed, 6 Sep 2023 13:41:45 +0200 Subject: [PATCH 02/19] Update ci.yml --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91be8ea4..c2fbd4f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,10 @@ jobs: node-version: - 12.x - 14.x - - 16.x + # FIXME: it seems problems with mongodb driver version preclude using Node 16+ + # see details at https://github.com/telefonicaid/fiware-sth-comet/pull/580#issuecomment-1160353123 + #- 16.x + #- 18.x steps: - name: Git checkout uses: actions/checkout@v2 From 374d3046dcd4afde42fa09b51a8ebe54cc69ac10 Mon Sep 17 00:00:00 2001 From: pasquy Date: Thu, 14 Sep 2023 12:38:47 +0200 Subject: [PATCH 03/19] Add CORS_ENABLED env var for docker-compose --- lib/configuration/sthConfiguration.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/configuration/sthConfiguration.js b/lib/configuration/sthConfiguration.js index 68272df4..1d8c8b64 100644 --- a/lib/configuration/sthConfiguration.js +++ b/lib/configuration/sthConfiguration.js @@ -223,7 +223,10 @@ if (ENV.STH_PORT && !isNaN(ENV.STH_PORT)) { ); } -if (config && config.cors && config.cors.enabled) { +if (ENV.CORS_ENABLED && !isNull(ENV.CORS_ENABLED)) { + module.exports.corsEnabled = JSON.parse(ENV.CORS_ENABLED); + sthLogger.info(module.exports.LOGGING_CONTEXT.STARTUP, 'CORS value set to: ' + module.exports.corsEnabled); +} else if (config && config.cors && config.cors.enabled) { module.exports.corsEnabled = JSON.parse(config.cors.enabled); sthLogger.info(module.exports.LOGGING_CONTEXT.STARTUP, 'CORS value set to: ' + module.exports.corsEnabled); } else { From aa53dff57a00b1c6d01cb33f66a2669b25f830ae Mon Sep 17 00:00:00 2001 From: Pasquale Vitale Date: Wed, 20 Sep 2023 18:24:36 +0200 Subject: [PATCH 04/19] Update sthConfiguration.js Remove isNull --- lib/configuration/sthConfiguration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configuration/sthConfiguration.js b/lib/configuration/sthConfiguration.js index 1d8c8b64..224aa556 100644 --- a/lib/configuration/sthConfiguration.js +++ b/lib/configuration/sthConfiguration.js @@ -223,7 +223,7 @@ if (ENV.STH_PORT && !isNaN(ENV.STH_PORT)) { ); } -if (ENV.CORS_ENABLED && !isNull(ENV.CORS_ENABLED)) { +if (ENV.CORS_ENABLED && !(ENV.CORS_ENABLED == null)) { module.exports.corsEnabled = JSON.parse(ENV.CORS_ENABLED); sthLogger.info(module.exports.LOGGING_CONTEXT.STARTUP, 'CORS value set to: ' + module.exports.corsEnabled); } else if (config && config.cors && config.cors.enabled) { From 3c5f76087177292ff38a4507694a84ad025c3155 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Wed, 27 Sep 2023 17:18:29 +0200 Subject: [PATCH 05/19] Switch from Docker to Quay As discussed within the TSC, badge and links for FIWARE clones of the container image should be switched to quay.io --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d11839b2..9410d8ea 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,13 @@ [![](https://nexus.lab.fiware.org/repository/raw/public/badges/chapters/core.svg)](https://www.fiware.org/developers/catalogue/) [![License](https://img.shields.io/github/license/telefonicaid/fiware-sth-comet.svg)](https://opensource.org/licenses/AGPL-3.0) -[![Docker badge](https://img.shields.io/docker/pulls/fiware/sth-comet.svg)](https://hub.docker.com/r/fiware/sth-comet-ngsi/) [![](https://img.shields.io/badge/tag-fiware--sth-comet-orange.svg?logo=stackoverflow)](http://stackoverflow.com/questions/tagged/fiware-sth-comet) [![Support badge](https://img.shields.io/badge/support-askbot-yellowgreen.svg)](https://ask.fiware.org/questions/scope%3Aall/tags%3Asth-comet/) [![Join the chat at https://gitter.im/telefonicaid/fiware-sth-comet](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/telefonicaid/fiware-sth-comet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[![Quay badge](https://img.shields.io/badge/quay.io-fiware%2Fsth--comet-grey?logo=red%20hat&labelColor=EE0000)](https://quay.io/repository/fiware/sth-comet) +[![Docker badge](https://img.shields.io/badge/docker-telefonicaiot%2Ffiware--sth--comet-blue?logo=docker)](https://registry.hub.docker.com/r/telefonicaiot/fiware-sth-comet) +
[![Documentation badge](https://readthedocs.org/projects/fiware-sth-comet/badge/?version=latest)](https://fiware-sth-comet.readthedocs.io) [![CI](https://github.com/telefonicaid/fiware-sth-comet/workflows/CI/badge.svg)](https://github.com/telefonicaid/fiware-sth-comet/actions?query=workflow%3ACI) [![Coverage Status](https://coveralls.io/repos/github/telefonicaid/fiware-sth-comet/badge.svg?branch=master)](https://coveralls.io/github/telefonicaid/fiware-sth-comet?branch=master) From efa8f0df21ed2ef58abc770f34fb85448b39b6a5 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Wed, 27 Sep 2023 17:21:27 +0200 Subject: [PATCH 06/19] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9410d8ea..cf08459a 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ interfaces. This project is part of [FIWARE](https://www.fiware.org/). For more information check the FIWARE Catalogue entry for the [Core Context Management](https://github.com/Fiware/catalogue/tree/master/core). -| :books: [Documentation](https://fiware-sth-comet.readthedocs.io) | :mortar_board: [Academy](https://fiware-academy.readthedocs.io/en/latest/core/sth-comet) | :whale: [Docker Hub](https://hub.docker.com/r/fiware/sth-comet/) | :dart: [Roadmap](https://github.com/telefonicaid/fiware-sth-comet/blob/master/doc/roadmap.md) | -| --------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| :books: [Documentation](https://fiware-sth-comet.readthedocs.io) | :mortar_board: [Academy](https://fiware-academy.readthedocs.io/en/latest/core/sth-comet) | [quay.io](https://quay.io/repository/fiware/sth-comet) | :whale: [Docker Hub](https://registry.hub.docker.com/r/telefonicaiot/fiware-sth-comet) | :dart: [Roadmap](https://github.com/telefonicaid/fiware-sth-comet/blob/master/doc/roadmap.md) | +| --------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --- | # Contents From 676ba07b9cb14c5d7290224fa8529fcffee1acb1 Mon Sep 17 00:00:00 2001 From: pasquy Date: Tue, 3 Oct 2023 10:16:19 +0200 Subject: [PATCH 07/19] Update CHANGES_NEXT_RELEASE and running.md files --- CHANGES_NEXT_RELEASE | 2 +- doc/manuals/running.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 9bf13c4b..26d21dcb 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1 +1 @@ -- Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions) +- Add CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image diff --git a/doc/manuals/running.md b/doc/manuals/running.md index dfdaeeab..67ab745d 100644 --- a/doc/manuals/running.md +++ b/doc/manuals/running.md @@ -101,6 +101,7 @@ The environment variables accepted by the script (for which there exists counter - `PROOF_OF_LIFE_INTERVAL`: The time in seconds between proof of life logging messages informing that the server is up and running normally. Default value: "60". `PROCESSED_REQUEST_LOG_STATISTICS_INTERVAL`: The time in seconds between processed requests statistics appear in the logs. Default value: "60". +- `CORS_ENABLED`: Boolean attribute (`true`|`false`) to enable cors configuration. Optional. Default value: "false". For example, to start the STH server listening on port 7777, connecting to a MongoDB instance listening on mymongo.com:27777 and without filtering out the empty results, use: From 81c3cb0b3a3c494ad514e671bd54756fb1a11f3e Mon Sep 17 00:00:00 2001 From: Pasquale Vitale Date: Tue, 3 Oct 2023 13:22:22 +0200 Subject: [PATCH 08/19] Update CHANGES_NEXT_RELEASE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ok Co-authored-by: Fermín Galán Márquez --- CHANGES_NEXT_RELEASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 26d21dcb..8cc9b7ec 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1 +1 @@ -- Add CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image +- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608) From 01a6e669339264a3fd4de99481b0b9b5a3ef3337 Mon Sep 17 00:00:00 2001 From: pasquy Date: Tue, 10 Oct 2023 14:59:05 +0200 Subject: [PATCH 09/19] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 26d21dcb..741667d8 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1 +1,2 @@ -- Add CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image +- Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions) +- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image From 16fc77a18205cb507c0befb0eb71b59cddcca97b Mon Sep 17 00:00:00 2001 From: pasquy Date: Tue, 10 Oct 2023 15:04:47 +0200 Subject: [PATCH 10/19] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 26d21dcb..e172db4e 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1 +1,2 @@ -- Add CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image +- Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions) +- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608) \ No newline at end of file From fbd33b2d6b99ead86d6906da3ec4aaf2df7f5f57 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Wed, 18 Oct 2023 13:03:41 +0200 Subject: [PATCH 11/19] Update .readthedocs.yml ReadTheDocs config needs to be updated> https://blog.readthedocs.com/migrate-configuration-v2/ --- .readthedocs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index b287e6e4..e0084162 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,9 +1,13 @@ version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.11" + mkdocs: configuration: mkdocs.yml python: - version: 3.8 install: - requirements: doc/requirements.txt From d77bcd1bd9b61489709b42fe09c6034bdc4e9660 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Thu, 19 Oct 2023 14:29:53 +0200 Subject: [PATCH 12/19] Update db_indexes.md --- doc/manuals/db_indexes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/manuals/db_indexes.md b/doc/manuals/db_indexes.md index 38563bd8..7c4251e1 100644 --- a/doc/manuals/db_indexes.md +++ b/doc/manuals/db_indexes.md @@ -16,6 +16,8 @@ It is recommended to create the following index in this collection: The performance difference can be dramatic for large sets of data. For instance, for a collection with around ~3000000 query execution time can drop from 3 seconds to 1 millisecond. +Since version 3.0.0 of cygnus an index named `cyg_raw_opt` is created in this way but depending on datamodel. + ## Indexes in the aggregated data collection It is recommended to create the following index in this collection: @@ -26,3 +28,5 @@ It is recommended to create the following index in this collection: The performance difference can be dramatic for large sets of data. For instance, for a collection with around ~6000000 query execution time can drop from 28 seconds to 20 millisecond. + +Since version 3.0.0 of cygnus index named `cyg_agg_opt` is created in this way but depending on datamodel. From 9a5886472dbb5d36a1adacc12d845a86216d874b Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Thu, 19 Oct 2023 15:30:50 +0200 Subject: [PATCH 13/19] update doc with table --- doc/manuals/db_indexes.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/manuals/db_indexes.md b/doc/manuals/db_indexes.md index 7c4251e1..3e0c1ee6 100644 --- a/doc/manuals/db_indexes.md +++ b/doc/manuals/db_indexes.md @@ -16,7 +16,14 @@ It is recommended to create the following index in this collection: The performance difference can be dramatic for large sets of data. For instance, for a collection with around ~3000000 query execution time can drop from 3 seconds to 1 millisecond. -Since version 3.0.0 of cygnus an index named `cyg_raw_opt` is created in this way but depending on datamodel. +Since version 3.0.0 of cygnus an index named `cyg_raw_opt` is created in this way but depending on datamodel: + +| datamodel | keys | +| :-------------- | :--------------------------------------------------------------- | +| DMBYSERVICEPATH | recvTime, entityId, entityType, attrName, attrType, attrValue | +| DMBYENTITY | recvTime, attrName, attrType, attrValue | +| DMBYATTRIBUTE | recvTime, attrType, attrValue | + ## Indexes in the aggregated data collection @@ -29,4 +36,10 @@ It is recommended to create the following index in this collection: The performance difference can be dramatic for large sets of data. For instance, for a collection with around ~6000000 query execution time can drop from 28 seconds to 20 millisecond. -Since version 3.0.0 of cygnus index named `cyg_agg_opt` is created in this way but depending on datamodel. +Since version 3.0.0 of cygnus index named `cyg_agg_opt` is created in this way but depending on datamodel: + +| datamodel | keys | +| :--------------- | :------------------------------------------------- | +| DMBYSERVICEPATH | entityId, entityType, attrName, resolution, origin | +| DMBYENTITY | attrName, resolution, origin | +| DMBYATTRIBUTE | resolution, origin | From d0278a37a465b436d278216d80525587bcd2aa16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Mon, 23 Oct 2023 13:06:30 +0200 Subject: [PATCH 14/19] Update db_indexes.md --- doc/manuals/db_indexes.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/doc/manuals/db_indexes.md b/doc/manuals/db_indexes.md index 3e0c1ee6..8c8d3670 100644 --- a/doc/manuals/db_indexes.md +++ b/doc/manuals/db_indexes.md @@ -18,12 +18,13 @@ query execution time can drop from 3 seconds to 1 millisecond. Since version 3.0.0 of cygnus an index named `cyg_raw_opt` is created in this way but depending on datamodel: -| datamodel | keys | -| :-------------- | :--------------------------------------------------------------- | -| DMBYSERVICEPATH | recvTime, entityId, entityType, attrName, attrType, attrValue | -| DMBYENTITY | recvTime, attrName, attrType, attrValue | -| DMBYATTRIBUTE | recvTime, attrType, attrValue | +| datamodel | keys | +| :---------------- | :--------------------------------------------------------------- | +| dm-by-servicepath | recvTime, entityId, entityType, attrName, attrType, attrValue | +| dm-by-entity | recvTime, attrName, attrType, attrValue | +| dm-by-attribute | recvTime, attrType, attrValue | +Note that datamodel others that the ones above are not allowed by Cygnus. ## Indexes in the aggregated data collection @@ -38,8 +39,10 @@ query execution time can drop from 28 seconds to 20 millisecond. Since version 3.0.0 of cygnus index named `cyg_agg_opt` is created in this way but depending on datamodel: -| datamodel | keys | -| :--------------- | :------------------------------------------------- | -| DMBYSERVICEPATH | entityId, entityType, attrName, resolution, origin | -| DMBYENTITY | attrName, resolution, origin | -| DMBYATTRIBUTE | resolution, origin | +| datamodel | keys | +| :----------------- | :------------------------------------------------- | +| dm-by-servicepath | entityId, entityType, attrName, resolution, origin | +| dm-by-entity | attrName, resolution, origin | +| dm-by-attribute | resolution, origin | + +Note that datamodel others that the ones above are not allowed by Cygnus. From 616c8edb39e92ebf992e0d0208731aad05f5241d Mon Sep 17 00:00:00 2001 From: MadhuNEC Date: Fri, 3 Nov 2023 05:27:39 +0000 Subject: [PATCH 15/19] Fixed to use truncation expire --- lib/database/sthDatabase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/database/sthDatabase.js b/lib/database/sthDatabase.js index b66a446f..196835bb 100644 --- a/lib/database/sthDatabase.js +++ b/lib/database/sthDatabase.js @@ -220,7 +220,7 @@ function isAggregated(collectionName) { function setTTLPolicy(collection) { // Set the TTL policy if required if (sthConfig.TRUNCATION_EXPIRE_AFTER_SECONDS > 0) { - if (!isAggregated(collection)) { + if (!isAggregated(collection.collectionName)) { if (sthConfig.TRUNCATION_SIZE === 0) { collection.ensureIndex( { From b0858e8dce68ea105b2a7db29bdb6dc53db7d2fe Mon Sep 17 00:00:00 2001 From: MadhuNEC <105198424+MadhuNEC@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:32:41 +0530 Subject: [PATCH 16/19] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index e172db4e..d497ba19 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,2 +1,3 @@ +- Fix: Updated isAggregated() to fix truncation expire (#606) - Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions) -- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608) \ No newline at end of file +- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608) From ab673301acd2f2b3b0fb68bc0099e903cba513d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Fri, 3 Nov 2023 13:17:00 +0100 Subject: [PATCH 17/19] FIX 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 d497ba19..d0e0697d 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,3 +1,3 @@ -- Fix: Updated isAggregated() to fix truncation expire (#606) +- Fix: TRUNCATION_EXPIRE_AFTER_SECONDS functionality (#606) - Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions) - Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608) From bd2e5e79ff987e6f009e959c993d37b6de2d05ad Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Tue, 28 Nov 2023 15:17:43 +0100 Subject: [PATCH 18/19] fix ensure nameOnly flag is boolean --- lib/database/model/sthDatabaseNameCodecTool.js | 2 +- lib/database/model/sthDatabaseNameMapperTool.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/database/model/sthDatabaseNameCodecTool.js b/lib/database/model/sthDatabaseNameCodecTool.js index 4296ca65..f302619d 100644 --- a/lib/database/model/sthDatabaseNameCodecTool.js +++ b/lib/database/model/sthDatabaseNameCodecTool.js @@ -389,7 +389,7 @@ function copyDatabase(options, databaseName, callback) { const adminDB = sthDatabase.connection.admin(); const listCommand = { listCollections: 1, - nameOnly: 1 + nameOnly: true }; var sourceDB = databaseName; var targetDB = options.encode diff --git a/lib/database/model/sthDatabaseNameMapperTool.js b/lib/database/model/sthDatabaseNameMapperTool.js index d75452d7..e8af1fa9 100644 --- a/lib/database/model/sthDatabaseNameMapperTool.js +++ b/lib/database/model/sthDatabaseNameMapperTool.js @@ -392,7 +392,7 @@ function copyDatabase(options, databaseName, callback) { const adminDB = sthDatabase.connection.admin(); const listCommand = { listCollections: 1, - nameOnly: 1 + nameOnly: true }; var sourceDB = databaseName; var targetDB = options.encode From ad08b91c424264181fe8f3ac434e3d8f03d0936d Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Tue, 28 Nov 2023 15:18:35 +0100 Subject: [PATCH 19/19] update CNR --- CHANGES_NEXT_RELEASE | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index d0e0697d..124e5670 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,3 +1,4 @@ +- Fix: ensure nameOnly flag of mongoDB is boolean - Fix: TRUNCATION_EXPIRE_AFTER_SECONDS functionality (#606) - Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions) - Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608)