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

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   This PR rewrites the component description, the texts of 8 options (7 shared 
by the component and the endpoint, plus the component `configuration`) and of 
15 of the 17 headers of `google-firestore`. The old texts were short and vague 
("The collection name to use", "The document ID from the response.", "The 
document read time."), and `operation` had only "Set the operation for the 
producer.". The new texts say which operations read each option and header, 
which header replaces an option, and the defaults: the producer performs 
`setDocument` when no operation is set, and the client uses Application Default 
Credentials when `serviceAccountKey` is not set. The `realtimeUpdates` text now 
says that without it each poll reads every document of the collection again. 
The `documentId` text covers its optional use in `listCollections`. The 
response header texts say whether the consumer or the producer sets them, and 
for which operations. `QueryValue` now says that `in`, `array-contains-any` 
 and `not-in` need a `java.util.List`. `QueryLimit` now says what a value of 0 
or less does. `MergeFields` now says that the fields not listed are ignored. 
`databaseId`, `maxPendingChanges` and the `QueryOperator` and `ChangeType` 
headers were already correct and clear, so they are unchanged.
   
   Sources: the Camel code (`GoogleFirestoreProducer`, 
`GoogleFirestoreConsumer`, `GoogleFirestoreConnectionFactory`, 
`GoogleCredentialsHelper` of camel-google-common) and google-cloud-firestore 
3.53.0 (`FirestoreOptions`, `SetOptions.mergeFieldPaths`, 
`addSnapshotListener`).
   
   ### Found, not changed
   
   - `operation` has no `defaultValue` in the metadata, but the producer 
performs `setDocument` when neither the option nor the 
`CamelGoogleFirestoreOperation` header is set.
   - `firestoreClient` has no label. Other client options, such as `ossClient` 
of alibaba-oss, use `advanced`.
   - `CamelGoogleFirestoreMergeFields` turns each entry into 
`FieldPath.of(name)`, so a dotted name such as `address.city` is one field with 
that literal name, not a nested field path. The old text called the entries 
"field paths". The new text says "names of the fields".
   - In realtime mode, errors that the snapshot listener reports 
(`FirestoreException`) are only logged. They do not reach `bridgeErrorHandler` 
or `exceptionHandler`. Also, at startup the consumer waits up to 30 seconds for 
the first snapshot and does not check whether the wait timed out.
   
   ## 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 (30 texts: the component description, 7 component 
options, 7 endpoint options and 15 headers). The catalog copy matches.
   
   # 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