Skip to content

[ENHANCEMENT/BREAKINGCHANGE] TimeSeriesChart: add query name support for query settings#585

Open
Gladorme wants to merge 5 commits into
perses:mainfrom
Gladorme:named-queries
Open

[ENHANCEMENT/BREAKINGCHANGE] TimeSeriesChart: add query name support for query settings#585
Gladorme wants to merge 5 commits into
perses:mainfrom
Gladorme:named-queries

Conversation

@Gladorme

@Gladorme Gladorme commented Feb 26, 2026

Copy link
Copy Markdown
Member

Description

Depends on: perses/shared#69

Use query name or index for query settings.

Breaking change:
queryIndex renamed queryName
(int) => (string)

Screenshots

Queries:
image

Query settings:
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.

@Gladorme Gladorme changed the title Named queries ENHANCEMENT/BREAKINGCHANGE] timneserieschart: add query name support for query settings Feb 27, 2026
@Gladorme Gladorme changed the title ENHANCEMENT/BREAKINGCHANGE] timneserieschart: add query name support for query settings [ENHANCEMENT/BREAKINGCHANGE] timneserieschart: add query name support for query settings Feb 27, 2026
@Gladorme Gladorme changed the title [ENHANCEMENT/BREAKINGCHANGE] timneserieschart: add query name support for query settings [ENHANCEMENT/BREAKINGCHANGE] timeserieschart: add query name support for query settings Feb 27, 2026
@AntoineThebaud AntoineThebaud changed the title [ENHANCEMENT/BREAKINGCHANGE] timeserieschart: add query name support for query settings [ENHANCEMENT/BREAKINGCHANGE] TimeSeriesChart: add query name support for query settings Mar 11, 2026
Gladorme added 3 commits June 26, 2026 17:23
Signed-off-by: Guillaume LADORME <Gladorme@users.noreply.github.com>
… for query settings

Signed-off-by: Guillaume LADORME <Gladorme@users.noreply.github.com>
Signed-off-by: Guillaume LADORME <Gladorme@users.noreply.github.com>
@Gladorme Gladorme force-pushed the named-queries branch 2 times, most recently from cc39a7d to f6d19a8 Compare June 26, 2026 15:57
@Gladorme Gladorme marked this pull request as ready for review June 26, 2026 15:57
@Gladorme Gladorme requested review from a team, AntoineThebaud and Nexucis as code owners June 26, 2026 15:57
@Gladorme Gladorme requested review from shahrokni and removed request for a team June 26, 2026 15:57
Signed-off-by: Guillaume LADORME <Gladorme@users.noreply.github.com>
seriesIndex: 0,
querySettings: {
queryIndex: 0,
queryName: defaultQueryName(0),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a massive breaking change. This will break every dashboard created without dashboard as code or by migrating from Grafana.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I will check if I can keep old data model

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I remember why I did this change. We can't keep index, because it will cause issue when re-ordering queries with query settings. I will rename queryName to queryIndex, but result will be the same => they will need to update queryIndex.

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.

2 participants