Skip to content

#529: Added database connection details endpoint and response and updated existing endpoint.#530

Merged
danepowell merged 2 commits into
typhonius:masterfrom
vishalkhode1:master
Apr 13, 2026
Merged

#529: Added database connection details endpoint and response and updated existing endpoint.#530
danepowell merged 2 commits into
typhonius:masterfrom
vishalkhode1:master

Conversation

@vishalkhode1
Copy link
Copy Markdown
Contributor

This pull request introduces a new API method to retrieve database connection details for a site instance, along with a dedicated response class and corresponding tests. It also refactors the existing database response to remove connection-specific fields, ensuring a clear separation of concerns between metadata and connection information.

New functionality:

  • Added a new method getDatabaseConnection to the SiteInstances endpoint, which returns database connection details for a site instance.
  • Introduced a new response class, SiteInstanceDatabaseConnectionResponse, to encapsulate database connection information such as host, username, password, and SSH host.

Refactoring and cleanup:

  • Removed connection-specific fields (databaseHost, databaseUserName, databasePassword) from SiteInstanceDatabaseResponse, so it now only contains database metadata.
  • Updated the test fixture getSiteInstanceDatabase.json to remove connection fields, reflecting the refactored response.
  • Added a new test fixture getSiteInstanceDatabaseConnection.json for the new connection endpoint.

Testing:

  • Added new tests for getDatabaseConnection and SiteInstanceDatabaseConnectionResponse, verifying correct parsing and field mapping. [1] [2]
  • Updated existing tests to match the refactored structure of SiteInstanceDatabaseResponse. [1] [2]

These changes improve clarity in the API by separating database metadata from connection details and provide comprehensive test coverage for the new and updated functionality.

@vishalkhode1
Copy link
Copy Markdown
Contributor Author

@danepowell @typhonius Can you review this ?

@anujkaushal
Copy link
Copy Markdown
Collaborator

@typhonius Could you please grant me access to merge PRs in this repository?

@danepowell Would you be able to support my request?

@danepowell
Copy link
Copy Markdown
Collaborator

@typhonius Could you please grant me access to merge PRs in this repository?

Agreed; @anujkaushal is the new tech lead for Acquia CLI and needs the same access as me.

@danepowell danepowell merged commit ad549fa into typhonius:master Apr 13, 2026
10 checks passed
@typhonius
Copy link
Copy Markdown
Owner

@typhonius Could you please grant me access to merge PRs in this repository?

Agreed; @anujkaushal is the new tech lead for Acquia CLI and needs the same access as me.

Thanks all, have invited

@anujkaushal
Copy link
Copy Markdown
Collaborator

@typhonius Could you please grant me access to merge PRs in this repository?

Agreed; @anujkaushal is the new tech lead for Acquia CLI and needs the same access as me.

Thanks all, have invited

Thanks @typhonius

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.

4 participants