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

   ## Summary
   
   Aligns the values of the Exchange header constants in `GridFsConstants` 
(camel-mongodb-gridfs) with the standard `Camel<Component><Field>` naming 
convention used across the rest of the component catalog. Brings the component 
in line with the parent `camel-mongodb` component, where 
`MongoDbConstants.OPERATION_HEADER` is already `CamelMongoDbOperation`.
   
   The Java field names are **unchanged**, so routes and code referencing the 
constants symbolically (e.g. `GridFsConstants.GRIDFS_OPERATION`, 
`GridFsConstants.GRIDFS_OBJECT_ID`) continue to work without modification.
   
   ### Renames (string values only)
   
   | Constant | Before | After |
   |----------|--------|-------|
   | `GRIDFS_OPERATION` | `gridfs.operation` | `CamelGridFsOperation` |
   | `GRIDFS_METADATA` | `gridfs.metadata` | `CamelGridFsMetadata` |
   | `GRIDFS_CHUNKSIZE` | `gridfs.chunksize` | `CamelGridFsChunkSize` |
   | `GRIDFS_OBJECT_ID` | `gridfs.objectid` | `CamelGridFsObjectId` |
   | `GRIDFS_FILE_ID_PRODUCED` | `gridfs.fileid` | `CamelGridFsFileId` |
   
   ### Cascading regeneration
   
   The Endpoint DSL header accessors on `GridFsHeaderNameBuilder` got renamed 
accordingly (`gridfsOperation()` -> `gridFsOperation()`, etc.). Both the 
constant-value rename and the DSL-accessor rename are documented in 
`camel-4x-upgrade-guide-4_21.adoc`.
   
   ### Context
   
   Consistent with the same alignment recently applied to camel-lucene 
(CAMEL-23509), camel-jgroups (CAMEL-23510), camel-jgroups-raft (CAMEL-23511), 
and camel-cxf (CAMEL-23526). Affects 4.21.0 (this PR) and is queued for 
backport to 4.18.x / 4.14.x — the constants are identical on both maintenance 
branches.
   
   ## Test plan
   
   - [x] Module-local build: `mvn -pl components/camel-mongodb-gridfs -am 
install` — green
   - [x] Full reactor sanity build: `mvn clean install -DskipTests` from repo 
root — green; the catalog and Endpoint DSL regenerated artifacts are included 
in the commit
   - [x] Existing tests reference constants symbolically 
(`GridFsConstants.GRIDFS_OPERATION` etc.), so no test-source changes are needed
   - [x] Upgrade-guide entry mirrors the camel-lucene / camel-couchdb pattern
   
   _Reported by Claude Code on behalf of Andrea Cosentino._


-- 
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