Skip to content

[backport camel-4.18.x] CAMEL-23585: camel-arangodb - align Exchange header constant names with Camel naming convention#23527

Open
oscerd wants to merge 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23469-to-camel-4.18.x
Open

[backport camel-4.18.x] CAMEL-23585: camel-arangodb - align Exchange header constant names with Camel naming convention#23527
oscerd wants to merge 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23469-to-camel-4.18.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 26, 2026

Backports #23469 to camel-4.18.x.

Cherry-pick of merge commit 2371b7fd582 with one adaptation: the original
PR's upgrade-guide entry was added to camel-4x-upgrade-guide-4_21.adoc,
which does not exist on the 4.18.x maintenance branch. Per the project's
backport policy the same content has been added to
camel-4x-upgrade-guide-4_18.adoc instead.

Summary

Renames the two Exchange header string values in ArangoDbConstants that were
not in the Camel namespace (and therefore not filtered by the default
HeaderFilterStrategy) to CamelArangoDb<Name>:

Constant Previous value New value
ArangoDbConstants.ARANGO_KEY key CamelArangoDbKey
ArangoDbConstants.RESULT_CLASS_TYPE ResultClassType CamelArangoDbResultClassType

The Java field names are unchanged so routes referencing the constants
symbolically continue to work; routes using the literal string values must be
updated.

MULTI_UPDATE, MULTI_INSERT, MULTI_DELETE, AQL_QUERY,
AQL_QUERY_BIND_PARAMETERS, AQL_QUERY_OPTIONS were already Camel-prefixed
and are unchanged.

DSL accessor renames: key()arangoDbKey(),
resultClassType()arangoDbResultClassType().

Test plan

  • mvn test in components/camel-arangodb on the 4.18.x branch — passes
  • Cherry-pick applied cleanly except for the 4_21 → 4_18 guide-file
    rename described above (no merge marker shipped)
  • Upgrade-guide entry added under === camel-arangodb - potential breaking change in camel-4x-upgrade-guide-4_18.adoc, immediately
    before the existing === camel-web3j backport entry

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

Copy link
Copy Markdown
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean backport of the camel-arangodb header rename to 4.18.x. Consistent with the header-naming convention work. Upgrade guide entry included.

LGTM.

Fully automatic review from Claude Code

…th Camel naming convention (apache#23469)

Renames the two Exchange header string values in ArangoDbConstants that were
not in the Camel namespace (key, ResultClassType) to CamelArangoDb<Name>,
following the convention used across the rest of the Camel component catalog
and matching the pattern established in CAMEL-23526 (camel-cxf), CAMEL-23522
(camel-mail), CAMEL-23461 (camel-aws-bedrock), CAMEL-23532
(camel-vertx-websocket / camel-atmosphere-websocket / camel-iggy), and
CAMEL-23576 (camel-jira).

- ARANGO_KEY: "key" -> "CamelArangoDbKey"
- RESULT_CLASS_TYPE: "ResultClassType" -> "CamelArangoDbResultClassType"

The Java field names are unchanged so routes referencing the constants
symbolically continue to work; routes using the literal string values must be
updated (documented in the 4.21 upgrade guide). The remaining constants
(MULTI_UPDATE, MULTI_INSERT, MULTI_DELETE, AQL_QUERY,
AQL_QUERY_BIND_PARAMETERS, AQL_QUERY_OPTIONS) were already Camel-prefixed and
are unchanged.

The generated Endpoint DSL header accessors on ArangoDbHeaderNameBuilder have
been renamed: key() -> arangoDbKey() and resultClassType() ->
arangoDbResultClassType().

All existing tests use symbolic constant references and continue to pass.

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd force-pushed the backport/23469-to-camel-4.18.x branch from 41fa93c to 0363bfd Compare May 27, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants