davsclaus opened a new pull request, #30956: URL: https://github.com/apache/camel/pull/30956
# 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, the component option `configuration` and 29 endpoint options of azure-cosmosdb (27 of them are also component options, through the shared configuration class). The component has no headers in its metadata. The texts were checked against the Camel code (configuration, component, endpoint, producer, consumer, the operation classes and the client factory) and the azure-cosmos 4.75.0 sources (`CosmosClientBuilder`, `ChangeFeedProcessorOptions`, `ChangeFeedProcessorBuilder`). What was wrong or missing in the old texts: - `indexingPolicy` was said to depend on `createLeaseContainerIfNotExists`. Only the producer uses it, for a container that it creates with `createContainer` or because of `createContainerIfNotExists`. - `queryRequestOptions` named `listDatabases`, which ignores it, and a `listItems` operation that does not exist (it is `readAllItems`). - `contentResponseOnWriteEnabled` did not say that the body is null after `createItem`, `upsertItem` and `replaceItem` when it is false, or that the change feed processor of the consumer fails to start then. - `consistencyLevel` left out `ConsistentPrefix`. `clientTelemetryEnabled` did not say that the SDK ignores it. - Several texts had broken Javadoc links (`{@link https://...}`, `{@link createLeaseContainerIfNotExists}`), or were vague (`containerPartitionKeyPath`, `throughputProperties`, `itemId`, `operation`, `credentialType`). - No text said which header replaces which option, which operations use an option, or that `cosmosAsyncClient` replaces all the client options. ### Found, not changed - The headers are not in the component metadata: `CosmosDbConstants` has no `@Metadata` and the endpoint has no `headersClass`, so the catalog, the Endpoint DSL and the generated doc table list none. They are only in the hand-written tables of the doc page. - The header name of `CosmosDbConstants.RESOURCE_ID` is `CamelAzureCosmosDbRecourseId` (Recourse, not Resource). - `clientTelemetryEnabled` does nothing: in azure-cosmos 4.75.0, `CosmosClientBuilder.clientTelemetryEnabled` is deprecated and ignores its argument. - `databaseEndpoint` is `required = true` in the metadata, but the component requires it only when `cosmosAsyncClient` is not set. - The default of `consistencyLevel` is `SESSION`, while its enum values in the metadata are `Strong`, `BoundedStaleness`, `Session`, `Eventual` and `ConsistentPrefix` (the `toString()` of `ConsistencyLevel`). - `indexingPolicy` has the label `common, advanced`, but the consumer does not use it. - `itemPartitionKey` always becomes a `PartitionKey` of a `String` (option and header alike), so an item whose partition key value is a number or a boolean cannot be addressed. When it is not set, the producer uses a null partition key value instead of failing. - The doc page says that "a valid Windows Azure Storage account" is needed; it is an Azure Cosmos DB account. ## 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 (58 texts: the component description, 28 component options and 29 endpoint options). # 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]
