You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/04/08 09:20:02 UTC

[camel] branch main updated: CAMEL-17931: disable header _id in metadata as this causes website build problem

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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 82cedbb0ab6 CAMEL-17931: disable header _id in metadata as this causes website build problem
82cedbb0ab6 is described below

commit 82cedbb0ab6f910a12249e60e03e7a437b90c7e3
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Apr 8 11:19:53 2022 +0200

    CAMEL-17931: disable header _id in metadata as this causes website build problem
---
 .../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 33e563143b9..ae4b5259394 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,7 +50,6 @@
     "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." },
     "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." },
     "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." },
-    "_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." }
   },
   "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 9a228f97df6..daeaf3c947e 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,12 +78,13 @@ 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";
-    @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")
+    // 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")
     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.",