Skip to content

CAMEL-23585: camel-arangodb - align Exchange header constant names with Camel naming convention#23469

Merged
oscerd merged 1 commit into
apache:mainfrom
oscerd:fix/CAMEL-23585
May 22, 2026
Merged

CAMEL-23585: camel-arangodb - align Exchange header constant names with Camel naming convention#23469
oscerd merged 1 commit into
apache:mainfrom
oscerd:fix/CAMEL-23585

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 22, 2026

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>, 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).

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 (documented in the 4.21 upgrade guide).

Already-compliant constants left unchanged

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

Generated artifacts

  • components/camel-arangodb/.../arangodb.json + catalog mirror
  • dsl/camel-endpointdsl/.../ArangoDbEndpointBuilderFactory.java — DSL header
    accessors renamed (key()arangoDbKey(),
    resultClassType()arangoDbResultClassType())

Backports

camel-arangodb exists on camel-4.18.x and camel-4.14.x with the same
legacy values — backports apply and will be filed as follow-up PRs.

Test plan

  • mvn test in components/camel-arangodb — passes
  • Module + catalog + endpointdsl built cleanly; only camel-arangodb regen
    artifacts included
  • Tests use symbolic constant references, so no test changes needed
  • Upgrade guide entry added under === camel-arangodb

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

@oscerd oscerd requested review from davsclaus and gnodet May 22, 2026 09:40
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, straightforward header-rename PR — same pattern that has been applied across several other components recently.

Verified:

  • The two renamed header values (key -> CamelArangoDbKey, ResultClassType -> CamelArangoDbResultClassType) are consistent with the existing CamelArangoDb* prefix used by the other six constants in the same class.
  • Java field names (ARANGO_KEY, RESULT_CLASS_TYPE) are unchanged, so symbolic references compile without changes.
  • Tests all use the symbolic constants (static imports of ARANGO_KEY, RESULT_CLASS_TYPE), so no test changes are needed — confirmed by grep.
  • Generated artifacts (arangodb.json in both catalog and component, ArangoDbEndpointBuilderFactory.java) are updated consistently.
  • Upgrade guide entry is thorough: documents both constants, the old/new values, the endpoint DSL accessor renames, and explains that symbolic users are unaffected.
  • Code style is consistent.

Minor note (non-blocking): The PR title references CAMEL-23585 but the PR body says "Tracker: CAMEL-23577". These are likely the parent tracker vs. the component-specific sub-task — just flagging in case the commit message should reference one or the other specifically.

LGTM.

Claude Code on behalf of Guillaume Nodet

@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

🧪 CI tested the following changed modules:

  • catalog/camel-catalog
  • components/camel-arangodb
  • docs
  • dsl/camel-endpointdsl

⚠️ Some tests are disabled on GitHub Actions (@DisabledIfSystemProperty(named = "ci.env.name")) and require manual verification:

  • components/camel-arangodb: 9 test(s) disabled on GitHub Actions
All tested modules (10 modules)
  • Camel :: ArangoDB
  • Camel :: Catalog :: Camel Catalog
  • Camel :: Endpoint DSL
  • Camel :: JBang :: MCP
  • Camel :: JBang :: Plugin :: Route Parser
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: JBang :: Plugin :: Validate
  • Camel :: Launcher :: Container
  • Camel :: YAML DSL :: Validator
  • Camel :: YAML DSL :: Validator Maven Plugin

⚙️ View full build and test results

…th Camel naming convention

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 fix/CAMEL-23585 branch from 85fb20b to f011027 Compare May 22, 2026 16:34
@oscerd oscerd merged commit 2371b7f into apache:main May 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants