Skip to content

[ENHANCEMENT] Add UnsavedDatasourceStore and DatasourceTestConnection…#99

Open
adrianSepiol wants to merge 1 commit intoperses:mainfrom
adrianSepiol:add-test-connection-button
Open

[ENHANCEMENT] Add UnsavedDatasourceStore and DatasourceTestConnection…#99
adrianSepiol wants to merge 1 commit intoperses:mainfrom
adrianSepiol:add-test-connection-button

Conversation

@adrianSepiol
Copy link
Copy Markdown
Contributor

@adrianSepiol adrianSepiol commented Apr 7, 2026

…Button for testing datasource connections

Related pull requests (in order):

  1. [ENHANCEMENT] support unsaved url generation for datasource api perses#4006
  2. [BUGFIX] set correct ContentLength for request body perses#4007
  3. This one
  4. [ENHANCEMENT] integrate UnsavedDatasourceProvider in DatasourceDrawer perses#4008
  5. [FEATURE] add test connection button to prometheus plugin plugins#620

Related issue:
perses/perses#1542

Description

Adds component for "test connection" button. It relays on UnsavedDatasourceStore to decouple the component from config that only app should be aware of. Wraps DashboardApp with provider so this button can be used for editing datasources on dashboard level. Provider for global and project datasources is added in perses/perses#4008

Screenshots

In perses/plugins#620

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.
  • E2E tests are stable and unlikely to be flaky.
    See e2e docs for more details. Common issues include:
    • Is the data inconsistent? You need to mock API requests.
    • Does the time change? You need to use consistent time values or mock time utilities.
    • Does it have loading states? You need to wait for loading to complete.

…Button for testing datasource connections

Signed-off-by: Adrian Sepiół <adisepko@gmail.com>
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.

1 participant