Skip to content

cherrypick: [release/3.16.0] fix(frontend): fix webhook detail page broken by UUID resource_id migration#19720

Merged
d-bytebase merged 1 commit into
release/3.16.0from
backport-19719-to-release/3.16.0
Mar 26, 2026
Merged

cherrypick: [release/3.16.0] fix(frontend): fix webhook detail page broken by UUID resource_id migration#19720
d-bytebase merged 1 commit into
release/3.16.0from
backport-19719-to-release/3.16.0

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #19719 to release/3.16.0.

…ration (#19719)

The migration from integer IDs to UUID resource_ids (migration 3.16.3)
broke the webhook detail page. The slug format "title-UUID" was parsed
by splitting on "-" and taking the last segment, which only returned
the last UUID segment instead of the full UUID. This caused the webhook
lookup to fail, falling back to an empty default webhook, which then
caused "invalid request" errors on update.

Replace slug-based routing with direct resource_id routing:
- Route param changed from :projectWebhookSlug to :webhookResourceId
- Navigate with extractProjectWebhookID() instead of projectWebhookV1Slug()
- Compare webhook IDs as strings instead of parseInt()
- Remove dead code: idFromSlug, projectWebhookV1Slug

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit f69a9d6)
@d-bytebase d-bytebase merged commit 924d293 into release/3.16.0 Mar 26, 2026
9 checks passed
@d-bytebase d-bytebase deleted the backport-19719-to-release/3.16.0 branch March 26, 2026 01:30
@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f863df1065

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +31 to +33
projectWebhookV1Store.getProjectWebhookFromProjectById(
project.value,
props.webhookResourceId

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Handle legacy <title>-<id> webhook route params

Using props.webhookResourceId directly for lookup breaks previously generated webhook detail URLs (the old format was <slugified-title>-<id>), because the full slug string no longer matches extractProjectWebhookID(webhook.name). In practice, bookmarked/history links or links shared before this change will now render unknownProjectWebhook() instead of the real webhook. Please keep a fallback parse path for legacy slugs (or add a redirect) so pre-existing URLs continue to resolve.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants