Skip to content

[CLIENT-3879] feat!: have client.remove_bin() raise ParamError instead of ClientError for invalid policy keys - #1230

Merged
juliannguyen4 merged 8 commits into
v20from
CLIENT-3879-remove_bin-raise-ParamError-instead-of-ClientError-for-invalid-policy-keys
Sep 14, 2026
Merged

juliannguyen4 merged 8 commits into
v20from
CLIENT-3879-remove_bin-raise-ParamError-instead-of-ClientError-for-invalid-policy-keys

Conversation

@juliannguyen4

@juliannguyen4 juliannguyen4 commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

…eation methods that already take in a ctx parameter
… when an invalid command-level policy key is passed and "validate_keys" is true (#1220)"

This reverts commit 1a6bc01.
…ite in case it fails instead of overriding with a generic ClientError
@juliannguyen4
juliannguyen4 changed the base branch from v20 to CLIENT-2468-rm-deprecated-index-creation-apis September 10, 2026 17:22
@juliannguyen4 juliannguyen4 changed the title [CLIENT-3879] client.remove_bin(): raise ParamError instead of ClientError for invalid policy keys [CLIENT-3879] feat!: have client.remove_bin() raise ParamError instead of ClientError for invalid policy keys Sep 10, 2026
Base automatically changed from CLIENT-2468-rm-deprecated-index-creation-apis to v20 September 11, 2026 16:10
…-raise-ParamError-instead-of-ClientError-for-invalid-policy-keys
…Error and remove_bin() no longer overrides it with ClientError, causing unintended breaking changes to users who may pass in an invalid policy rejected by pyobject_to_policy_write
…-raise-ParamError-instead-of-ClientError-for-invalid-policy-keys
@codecov-commenter

codecov-commenter commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 62.50000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.76%. Comparing base (eb6558f) to head (047cbf5).

Files with missing lines Patch % Lines
src/main/client/remove_bin.c 62.50% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              v20    #1230      +/-   ##
==========================================
- Coverage   85.77%   85.76%   -0.01%     
==========================================
  Files         102      102              
  Lines       14948    14945       -3     
==========================================
- Hits        12821    12817       -4     
- Misses       2127     2128       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…-raise-ParamError-instead-of-ClientError-for-invalid-policy-keys
@juliannguyen4
juliannguyen4 marked this pull request as ready for review September 14, 2026 15:33
@juliannguyen4
juliannguyen4 merged commit 364324d into v20 Sep 14, 2026
40 checks passed
@juliannguyen4
juliannguyen4 deleted the CLIENT-3879-remove_bin-raise-ParamError-instead-of-ClientError-for-invalid-policy-keys branch September 14, 2026 15:34
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.

2 participants