No mechanism for getting a Cluster object from Cluster Manager

Created on 4 April 2022, over 3 years ago
Updated 17 September 2025, 19 days ago

Problem/Motivation

When implementing functionality from Elasticsearch Connector programatically, sometimes it is useful to call the default cluster object. Currently in ClusterManager there is a 'getDefaultCluster' function which returns the default cluster ID, and a 'loadAllClusters' function that returns an array of clusters, but usually you only want to get one cluster, such as getting back the default cluster.

Proposed resolution

Need to add a 'loadCluster' function that loads just the requested cluster id.

Remaining tasks

Add code change
Review code change

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Needs review

Version

7.0

Component

Code

Created by

🇬🇧United Kingdom ChrisDarke London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024