Skip to content

PCBC-1050: Add missing manager accessors in Cluster/Bucket/Collection interfaces#243

Merged
DemetrisChr merged 1 commit intocouchbase:mainfrom
DemetrisChr:PCBC-1050-interfaces-manager-accessor
Feb 27, 2026
Merged

PCBC-1050: Add missing manager accessors in Cluster/Bucket/Collection interfaces#243
DemetrisChr merged 1 commit intocouchbase:mainfrom
DemetrisChr:PCBC-1050-interfaces-manager-accessor

Conversation

@DemetrisChr
Copy link
Copy Markdown
Contributor

Changes

  • Add all missing manager accessors on Cluster/Bucket/Collection interfaces
  • Add AnalyticsIndexManagerInterface

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the public ClusterInterface, BucketInterface, and CollectionInterface to expose the full set of manager accessors already available in concrete implementations, and introduces a dedicated AnalyticsIndexManagerInterface to align analytics index management with the rest of the management APIs.

Changes:

  • Add missing manager accessor methods to ClusterInterface, BucketInterface, and CollectionInterface.
  • Introduce AnalyticsIndexManagerInterface and make AnalyticsIndexManager implement it.
  • Update the Protostellar Cluster implementation to satisfy the expanded ClusterInterface (unsupported operations currently throw).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Couchbase/Protostellar/Cluster.php Adds setAuthenticator(), users(), analyticsIndexes() to match ClusterInterface (currently throws unsupported).
Couchbase/Management/AnalyticsIndexManagerInterface.php New interface defining the analytics index management surface area.
Couchbase/Management/AnalyticsIndexManager.php Declares implementation of the new AnalyticsIndexManagerInterface.
Couchbase/CollectionInterface.php Adds queryIndexes() accessor for collection-level query index management.
Couchbase/ClusterInterface.php Adds missing manager accessors for buckets/users/analytics/query/search index management.
Couchbase/BucketInterface.php Adds collections() accessor for collection/scope management.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Couchbase/Protostellar/Cluster.php
Comment thread Couchbase/Protostellar/Cluster.php
Comment thread Couchbase/Protostellar/Cluster.php
@DemetrisChr DemetrisChr merged commit 56b52ed into couchbase:main Feb 27, 2026
152 of 155 checks passed
@DemetrisChr DemetrisChr deleted the PCBC-1050-interfaces-manager-accessor branch February 27, 2026 09:39
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