Skip to content

[FEATURE/BREAKINGCHANGE] DataQueriesProvider: use full queryDefinitions + remove QueryCountProvider + add edit query name in QueryEditorContainer#69

Draft
Gladorme wants to merge 1 commit intoperses:mainfrom
Gladorme:named-queries

Conversation

@Gladorme
Copy link
Member

@Gladorme Gladorme commented Feb 26, 2026

Description

Depends on: perses/perses#3915, I will fix conflicts once merged/released.

This PR is doing some breaking changes:

  • DataQueriesProvider: need full query definitions instead of just definition (Definition => QueryDefinition)
  • QueryCountProvider: removed, you can retrieve query count using DataQueriesProvider
  • useQueryType: removed containing hard coded plugin data

This PR allow user to edit query names, using a self edit/submit button in order to not spam rerender when updating it, it's more beautiful as standard text when not collapsed (instead of textfield) and it's not something that will be changed often (imo)

Screenshots

Edit button only visible on hover, when query is collapsed
image

Always visible when query is not collapsed
image

On edit:
image

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.

…ns + remove QueryCountProvider + add edit query name in QueryEditorContainer

Signed-off-by: Guillaume LADORME <Gladorme@users.noreply.github.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