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

feat: implement testDatasource method for systems data source #4

Merged
merged 14 commits into from
Jul 21, 2023

Conversation

ggracechoi
Copy link
Contributor

@ggracechoi ggracechoi commented Jul 20, 2023

Justification:

A health check needs to be implemented to see if a response can be retrieved using the provided URL. A valid response would indicate that the configuration is correct.

Implementation:

The testDataSource function was implemented using the /get-systems-summary route. A response containing the status counts indicates a valid response for this check. Additionally, a confirmation message displays upon success.

Testing:

The web dev tools were used to test this change. The response was checked to see if the expected response was returned by the query.

@ggracechoi ggracechoi requested a review from mure as a code owner July 20, 2023 18:53
@mure
Copy link
Collaborator

mure commented Jul 20, 2023

Don't forget to prefix your PR title with feat: so that it triggers a new release. Also, my preference is to have PR titles/commit messages be more concrete instead of being named after the user story. So something like:

feat: implement testDatasource method for systems data source

@ggracechoi ggracechoi changed the title User can connect to sysmgmt service from external Grafana feat: implement testDatasource method for systems data source Jul 20, 2023
@ggracechoi ggracechoi merged commit b5a9726 into main Jul 21, 2023
1 check passed
mure pushed a commit that referenced this pull request Jul 21, 2023
# [1.5.0](v1.4.1...v1.5.0) (2023-07-21)

### Features

* implement testDatasource method for systems data source ([#4](#4)) ([b5a9726](b5a9726))
@mure
Copy link
Collaborator

mure commented Jul 21, 2023

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mure mure added the released label Jul 21, 2023
@mure mure deleted the users/grchoi/systems-datasource branch July 21, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants