This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch 
CAMEL-17931/fix-underscore-causing-website-web-pbrs
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a75502a57dda8ab534838018844a9b626246d394
Author: Nicolas Filotto <[email protected]>
AuthorDate: Tue Apr 26 18:43:10 2022 +0200

    CAMEL-17931: Re-declare _id as an header of Camel MongoDB
---
 .../org/apache/camel/component/mongodb/mongodb.json         |  1 +
 .../apache/camel/component/mongodb/MongoDbConstants.java    | 13 ++++++-------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/components/camel-mongodb/src/generated/resources/org/apache/camel/component/mongodb/mongodb.json
 
b/components/camel-mongodb/src/generated/resources/org/apache/camel/component/mongodb/mongodb.json
index bb8ece64193..1d1ad9992e0 100644
--- 
a/components/camel-mongodb/src/generated/resources/org/apache/camel/component/mongodb/mongodb.json
+++ 
b/components/camel-mongodb/src/generated/resources/org/apache/camel/component/mongodb/mongodb.json
@@ -50,6 +50,7 @@
     "CamelMongoDbDistinctQueryField": { "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The specified field name fow which we want to 
get the distinct values.", "constantName": 
"org.apache.camel.component.mongodb.MongoDbConstants#DISTINCT_QUERY_FIELD" },
     "CamelMongoDbAllowDiskUse": { "kind": "header", "displayName": "", 
"group": "producer findAll aggregate", "label": "producer findAll aggregate", 
"required": false, "javaType": "Boolean", "deprecated": false, 
"deprecationNote": "", "autowired": false, "secret": false, "description": 
"Sets allowDiskUse MongoDB flag. This is supported since MongoDB Server 4.3.1. 
Using this header with older MongoDB Server version can cause query to fail.", 
"constantName": "org.apache.camel.component.mon [...]
     "CamelMongoDbBulkOrdered": { "kind": "header", "displayName": "", "group": 
"producer bulkWrite", "label": "producer bulkWrite", "required": false, 
"javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "defaultValue": "TRUE", "description": "Perform an 
ordered or unordered operation execution.", "constantName": 
"org.apache.camel.component.mongodb.MongoDbConstants#BULK_ORDERED" },
+    "_id": { "kind": "header", "displayName": "", "group": "consumer 
changeStreams", "label": "consumer changeStreams", "required": false, 
"javaType": "org.bson.types.ObjectId", "deprecated": false, "deprecationNote": 
"", "autowired": false, "secret": false, "description": "A document that 
contains the _id of the document created or modified by the insert, replace, 
delete, update operations (i.e. CRUD operations). For sharded collections, also 
displays the full shard key for the document [...]
     "CamelMongoDbStreamOperationType": { "kind": "header", "displayName": "", 
"group": "consumer changeStreams", "label": "consumer changeStreams", 
"required": false, "javaType": "String", "deprecated": false, 
"deprecationNote": "", "autowired": false, "secret": false, "description": "The 
type of operation that occurred. Can be any of the following values: insert, 
delete, replace, update, drop, rename, dropDatabase, invalidate.", 
"constantName": "org.apache.camel.component.mongodb.MongoD [...]
   },
   "properties": {
diff --git 
a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbConstants.java
 
b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbConstants.java
index daeaf3c947e..9a228f97df6 100644
--- 
a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbConstants.java
+++ 
b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbConstants.java
@@ -78,13 +78,12 @@ public final class MongoDbConstants {
     @Metadata(label = "producer bulkWrite", description = "Perform an ordered 
or unordered operation execution. ",
               javaType = "Boolean", defaultValue = "TRUE")
     public static final String BULK_ORDERED = "CamelMongoDbBulkOrdered";
-    // TODO: https://issues.apache.org/jira/browse/CAMEL-17931
-    //    @Metadata(label = "consumer changeStreams",
-    //              description = "A document that contains the _id of the 
document created or modified by the insert,\n" +
-    //                            "replace, delete, update operations (i.e. 
CRUD operations). For sharded collections, also displays the full shard key 
for\n"
-    //                            +
-    //                            "the document. The _id field is not repeated 
if it is already a part of the shard key.",
-    //              javaType = "org.bson.types.ObjectId")
+    @Metadata(label = "consumer changeStreams",
+              description = "A document that contains the _id of the document 
created or modified by the insert,\n" +
+                            "replace, delete, update operations (i.e. CRUD 
operations). For sharded collections, also displays the full shard key for\n"
+                            +
+                            "the document. The _id field is not repeated if it 
is already a part of the shard key.",
+              javaType = "org.bson.types.ObjectId")
     public static final String MONGO_ID = "_id"; // default id field
     @Metadata(label = "consumer changeStreams", description = "The type of 
operation that occurred. Can\n" +
                                                               "be any of the 
following values: insert, delete, replace, update, drop, rename, dropDatabase, 
invalidate.",

Reply via email to