Skip to content

handle explore names with url encoding characters#9213

Merged
pjain1 merged 2 commits intomainfrom
fix_alert_explore_extraction
Apr 10, 2026
Merged

handle explore names with url encoding characters#9213
pjain1 merged 2 commits intomainfrom
fix_alert_explore_extraction

Conversation

@pjain1
Copy link
Copy Markdown
Member

@pjain1 pjain1 commented Apr 10, 2026

Ideally UI should directly set explore annotation like reports so that we do not need to rely on web_open_path to extract explore name. But this case needs to be handled anyways for the existing alerts.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@pjain1 pjain1 requested a review from begelundmuller April 10, 2026 07:32
Comment on lines +307 to 309
explore := exploreNameFromAnnotations(spec.Annotations, mvName)
var canvas string
if c, ok := spec.Annotations["canvas"]; ok {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't the backwards compatibility here quite old? Or does these old payloads still get generated – and if so, does canvas need the same handling?

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.

Alerts still use web_open_path and does not have explore or canvas option. This was not triggered till now because probably no customer had spaces in resource name.

I do not see alert button on canvas so did not handle it, spec can still be programatically created but I think its very rate and a follow up to this PR would be to add explore/canvas options directly on AlertOptions proto like ReportOptions so we don't need to handle canvas.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Okay, seems fine then

@pjain1 pjain1 merged commit b3caa98 into main Apr 10, 2026
28 of 32 checks passed
@pjain1 pjain1 deleted the fix_alert_explore_extraction branch April 10, 2026 13:22
pjain1 added a commit that referenced this pull request Apr 10, 2026
* handle explore names with url encoding characters

* lint
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