Skip to content

Commit

Permalink
Made the -experimental CLI option visible, and explained it in the ch…
Browse files Browse the repository at this point in the history
…angelog
  • Loading branch information
kzangeli committed Jul 28, 2022
1 parent e5a81fd commit 1be48e5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
18 changes: 10 additions & 8 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ Replacing the deprecated MongoDB C++ Legacy driver with the newest MongoDB drive
* Subscription Cache Counters are now updated using mongoc and not with the old legacy driver
* PATCH subscriptions/{subId} now uses the new mongoc driver

Experimental Features (to turn on - start the broker with `-experimental`):
Experimental Features (to turn on - start the broker with `-experimental`).
Note that this is experimental implementations, not yet thoroughly tested.
_They all pass the basic functional tests, and seem to work just find, but, no promises made._
* Fresh implementations of services using 'mongoc' (the new MongoDB driver) instead of mongoBackend+Legacy driver:
* PUT /entities/{entityId} (not supported if -experimental is not set)
* PATCH /entities/{entityId} (not supported if -experimental is not set)
* POST /entities (two versions: legacy and mongoc)
* GET /entities (two versions: legacy and mongoc)
* GET /entities/{entityId} (two versions: legacy and mongoc)
* POST /subscriptions (two versions: legacy and mongoc)
* DELETE /subscriptions/{subId} (two versions: legacy and mongoc)
* PUT /entities/{entityId} (not supported if -experimental is not used)
* PATCH /entities/{entityId} (not supported if -experimental is not used)
* POST /entities (two versions: legacy and mongoc - mongoc version if -experimental is used)
* GET /entities (two versions: legacy and mongoc - mongoc version if -experimental is used)
* GET /entities/{entityId} (two versions: legacy and mongoc - mongoc version if -experimental is used)
* POST /subscriptions (two versions: legacy and mongoc - mongoc version if -experimental is used)
* DELETE /subscriptions/{subId} (two versions: legacy and mongoc - mongoc version if -experimental is used)
* Support for LanguageProperty attributes
* Support for URI parameter 'observedAt' for PATCH /entities/{entityId} in combination with options=keyValues - update existing observedAt sub-attributes
4 changes: 2 additions & 2 deletions src/app/orionld/orionld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ bool debugCurl = false;
#define ID_INDEX_DESC "automatic mongo index on _id.id"
#define NOSWAP_DESC "no swapping - for testing only!!!"
#define NO_NOTIFY_FALSE_UPDATE_DESC "turn off notifications on non-updates"
#define EXPERIMENTAL_DESC "enable experimental implementation"
#define EXPERIMENTAL_DESC "enable experimental implementation - use at own risk - see release notes of Orion-LD v1.1.0"
#define MONGOCONLY_DESC "enable experimental implementation + turn off mongo legacy driver"
#define DBAUTHDB_DESC "database used for authentication"
#define DBAUTHMECHANISM_DESC "database authentication mechanism (either SCRAM-SHA-1 or SCRAM-SHA-256)"
Expand Down Expand Up @@ -392,7 +392,7 @@ PaArgument paArgs[] =
{ "-ssPort", &socketServicePort, "SOCKET_SERVICE_PORT", PaUShort, PaHid, 1027, PaNL, PaNL, SOCKET_SERVICE_PORT_DESC },
{ "-forwarding", &forwarding, "FORWARDING", PaBool, PaOpt, false, false, true, FORWARDING_DESC },
{ "-noNotifyFalseUpdate", &noNotifyFalseUpdate, "NO_NOTIFY_FALSE_UPDATE", PaBool, PaOpt, false, false, true, NO_NOTIFY_FALSE_UPDATE_DESC },
{ "-experimental", &experimental, "EXPERIMENTAL", PaBool, PaHid, false, false, true, EXPERIMENTAL_DESC },
{ "-experimental", &experimental, "EXPERIMENTAL", PaBool, PaOpt, false, false, true, EXPERIMENTAL_DESC },
{ "-mongocOnly", &mongocOnly, "MONGOCONLY", PaBool, PaOpt, false, false, true, MONGOCONLY_DESC },
{ "-debugCurl", &debugCurl, "DEBUG_CURL", PaBool, PaHid, false, false, true, DEBUG_CURL_DESC },

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Usage: orionld [option '-U' (extended usage)]
[option '-troePoolSize' <size of the connection pool for TRoE Postgres database connections>]
[option '-forwarding' (turn on forwarding)]
[option '-noNotifyFalseUpdate' (turn off notifications on non-updates)]
[option '-experimental' (enable experimental implementation - use at own risk - see release notes of Orion-LD v1.1.0)]
[option '-mongocOnly' (enable experimental implementation + turn off mongo legacy driver)]

--TEARDOWN--
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Usage: orionld [option '-U' (extended usage)]
[option '-troePoolSize' <size of the connection pool for TRoE Postgres database connections>]
[option '-forwarding' (turn on forwarding)]
[option '-noNotifyFalseUpdate' (turn off notifications on non-updates)]
[option '-experimental' (enable experimental implementation - use at own risk - see release notes of Orion-LD v1.1.0)]
[option '-mongocOnly' (enable experimental implementation + turn off mongo legacy driver)]

--TEARDOWN--

0 comments on commit 1be48e5

Please sign in to comment.