Skip to content

Conversation

@DemetrisChr
Copy link
Contributor

Motivation

The http_context appears to be at the cluster level, so it wasn't clear which bucket's capabilities were being checked. This resulted in unpredictability, as seen in FIT and in the Python SDK's test suite.

Changes

Add a new execute_with_bucket_capability method that after ensuring that the bucket is open, it checks for the presence of the capability using with_bucket_configuration and then proceeds to do the operation if successful. This is now used for create_collection and update_collection.

Results

Tests pass (including FIT)

Copy link
Contributor

@thejcfactor thejcfactor left a comment

Choose a reason for hiding this comment

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

Thanks!! LGTM 👍

@DemetrisChr DemetrisChr merged commit 5a3c79b into couchbase:main Jan 23, 2024
@DemetrisChr DemetrisChr deleted the CXXCBC-431-history-cap branch January 23, 2024 18:14
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