davsclaus opened a new pull request, #30963:
URL: https://github.com/apache/camel/pull/30963

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   New texts for the component description, 12 endpoint options, 3 component 
options (configuration, arangoDB, vertx)
   and 8 headers of arangodb, 33 description fields in the component JSON. They 
were checked against the Camel code and
   the ArangoDB Java driver 7.28.0.
   
   What was wrong with the old texts:
   
   - vertexCollection and edgeCollection had swapped texts: vertexCollection 
listed the edge operations, and
     edgeCollection was called a collection of vertices and listed the vertex 
operations.
   - host and port were described as optional "if host and port are default". 
The driver has no default host and the
     endpoint fails to start with "No host has been set!" when neither host and 
port nor an arangoDB client is set.
   - user and password were described as optional "if user and password are 
default". They are only used when both are
     set; otherwise the driver logs in as root with no password.
   - The headers did not say which operation reads them, that 
CamelArangoDbResultClassType must be a `java.lang.Class`,
     that CamelArangoDbAqlQuery replaces the body, or that a Collection body is 
saved as several documents without
     CamelArangoDbMultiInsert.
   - The texts of arangoDB and vertx did not say which options a custom client 
replaces, and "ArangDB" was misspelled.
   
   ### Found, not changed
   
   - `port` is an `int` with no default, and `ObjectHelper.isNotEmpty` treats 
`0` as set, so setting `host` without
     `port` makes the client connect to port 0.
   - The endpoint shuts down the `arangoDB` client in `doShutdown` also when it 
was set or autowired. A client set on the
     component is shared by all its endpoints, so the first endpoint that shuts 
down closes it for the others.
   - The `database` field of `ArangoDbEndpoint` carries the `@UriPath` but is 
never assigned; the value goes to
     `ArangoDbConfiguration.database` instead.
   - `getServiceUrl()` returns `null:0` when the endpoint uses an `arangoDB` 
client and `host` is not set.
   - `host` and `port` are not marked as required in the metadata, while the 
endpoint does not start without them (or
     an `arangoDB` client).
   
   ## Tests
   
   - There is no new test, as only description text changes.
   - A script compared the component JSON with the parent commit: only 
`description` fields changed (33 texts).
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran the formatter and built the module, then regenerated the catalog 
copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to