Skip to content

PCBC-1085: GetReplica API improvements - #264

Merged
avsej merged 1 commit into
couchbase:mainfrom
Matt-Woz:get_replica
Oct 21, 2026
Merged

avsej merged 1 commit into
couchbase:mainfrom
Matt-Woz:get_replica

Conversation

@Matt-Woz

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The refactor preserves the strategy export contract, updates affected tests, and has no identified blocking issues.

0 open findings

What changed in this PR

Refines the replica-read API with validated strategy factories and dedicated wrapping options.

Changes:

  • Introduces a concrete index strategy and separate wrapping options.
  • Validates replica indices and updates related tests.
  • Adds or corrects API version annotations to 4.6.0.
File Description
tests/​KeyValueGetReplicaTest.php Updates wrapping usage and index-validation tests.
Couchbase/​ReplicaIndex.php Adds version documentation.
Couchbase/​GetReplicaStrategyFromIndexOptions.php Introduces wrapping options.
Couchbase/​GetReplicaStrategy.php Adds index validation and abstract strategy export.
Couchbase/​GetReplicaOptions.php Documents API availability.
Couchbase/​FromIndexGetReplicaStrategy.php Implements index-based strategy export.
Couchbase/​Exception/​ReplicaIndexOutOfBoundsException.php Adds version documentation.
Couchbase/​Exception/​ReplicaIndexCurrentlyUnavailableException.php Adds version documentation.
Couchbase/​Exception/​DocumentNotFoundOnReplicaException.php Adds version documentation.
Couchbase/​Collection.php Corrects the replica-read version annotation.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@avsej
avsej merged commit 3d0cf60 into couchbase:main Oct 21, 2026
141 of 147 checks passed
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