Skip to content

fix(ui): do not parse label selector - send as is to server.#5274

Open
korniltsev-grafanista wants to merge 1 commit into
mainfrom
ui-profile-type-selector
Open

fix(ui): do not parse label selector - send as is to server.#5274
korniltsev-grafanista wants to merge 1 commit into
mainfrom
ui-profile-type-selector

Conversation

@korniltsev-grafanista

Copy link
Copy Markdown
Contributor

Before this change the UI does not allow to send arbitrary labels - the app parsed service_name and profile_type label from the query and only sent them.

In this change, I remove the profile_type from the label selector - it is stored separately and we do not append and parse back the query.
Furthermore we do not parse labelSelector at all - we send it as is to the server, letting the server validate the query. We still parse the label selector for service name detection, but it is no longer required and that means we can query even without service_name.
As a result we don't need the callbacks from the userPyroscopeQuery anymore and they are removed too.

@korniltsev-grafanista korniltsev-grafanista marked this pull request as ready for review June 19, 2026 14:14
@korniltsev-grafanista korniltsev-grafanista requested a review from a team as a code owner June 19, 2026 14:14
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