Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a public interface for getting server info #102

Closed
danielbachhuber opened this issue Jul 22, 2016 · 0 comments
Closed

Create a public interface for getting server info #102

danielbachhuber opened this issue Jul 22, 2016 · 0 comments
Assignees
Milestone

Comments

@danielbachhuber
Copy link
Contributor

Rather than having the following throughout:

$server = array(
    'ping_status' => $ping ? 'successful' : 'failed',
    'ip_address'  => getenv( 'PANTHEON_INDEX_HOST' ),
    'port'        => getenv( 'PANTHEON_INDEX_PORT' ),
    'path'        => SolrPower_Api::get_instance()->compute_path(),
);

We should have a method on the API class that returns this data, for use by the options page and CLI.

@ataylorme ataylorme added this to the 1.0 milestone Jul 27, 2016
@ChrisWiegman ChrisWiegman self-assigned this Aug 10, 2016
ataylorme pushed a commit that referenced this issue Aug 16, 2016
* Add get_server method

Adds a method to pass server configuration information where needed.

* Replace hard-coded array with call to api method to retrieve server information.

* Use current class calls

* Use new get_server method for info tab

* Rename get_server method to get_server_info

* Closes #102
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

No branches or pull requests

4 participants