Skip to content

Conversation

@tatu-at-datastax
Copy link
Contributor

What this PR does:

Converts Request-specific ErrorCodeV1s to RequestException.Codes

Which issue(s) this PR fixes:
Part of #2285

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

📈 Unit Test Coverage Delta vs Main Branch

Metric Value
Main Branch 50.58%
This PR 50.59%
Delta 🟢 +0.01%
✅ Coverage improved!

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

Unit Test Coverage Report

Overall Project 50.59% -0.06% 🍏
Files changed 60% 🍏

File Coverage
RequestException.java 100% 🍏
JsonApiException.java 96.2% 🍏
ErrorCodeV1.java 95.16% 🍏
CommandObjectMapperHandler.java 26.17% 🍏
ThrowableToErrorMapper.java 26.07% -9.74%
ConstraintViolationExceptionMapper.java 0% -2.5%

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

📉 Integration Test Coverage Delta vs Main Branch (hcd-it)

Metric Value
Main Branch 72.49%
This PR 72.46%
Delta 🔴 -0.03%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

Integration Test Coverage Report (hcd-it)

Overall Project 72.46% 🍏
Files changed 100% 🍏

File Coverage
RequestException.java 100% 🍏
CommandObjectMapperHandler.java 98.66% 🍏
ErrorCodeV1.java 95.16% 🍏
ConstraintViolationExceptionMapper.java 93.33% 🍏
JsonApiException.java 91.65% 🍏
ThrowableToErrorMapper.java 60.4% 🍏

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

📉 Integration Test Coverage Delta vs Main Branch (dse69-it)

Metric Value
Main Branch 70.69%
This PR 70.67%
Delta 🔴 -0.03%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

Integration Test Coverage Report (dse69-it)

Overall Project 70.67% 🍏
Files changed 100% 🍏

File Coverage
RequestException.java 100% 🍏
CommandObjectMapperHandler.java 98.66% 🍏
ErrorCodeV1.java 95.16% 🍏
ConstraintViolationExceptionMapper.java 93.33% 🍏
JsonApiException.java 91.65% 🍏
ThrowableToErrorMapper.java 56.93% 🍏

@tatu-at-datastax tatu-at-datastax marked this pull request as ready for review December 22, 2025 23:31
@tatu-at-datastax tatu-at-datastax requested a review from a team as a code owner December 22, 2025 23:31
Resend command with valid value.
- scope:
code: COMMAND_FIELD_UNKNOWN
Copy link
Contributor

@Hazel-Datastax Hazel-Datastax Dec 23, 2025

Choose a reason for hiding this comment

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

what's the difference between "COMMAND_FIELD_INVALID" and "COMMAND_FIELD_UNKNOWN"? Can we combine them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me check, good question.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah. So, COMMAND_FIELD_INVALID really needs to be COMMAND_FIELD_VALUE_INVALID -- so it's value of a (known) field that is somehow wrong vs COMMAND_FIELD_UNKNOWN where field name itself is unrecognized.
I will rename the code to better reflect this.

Good catch!

@tatu-at-datastax tatu-at-datastax merged commit 947d480 into main Dec 23, 2025
3 checks passed
@tatu-at-datastax tatu-at-datastax deleted the tatu/2285-errorv1-removal-11 branch December 23, 2025 18:05
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