Skip to content

fix(signals): default inbox deep link to posthog-code scheme#60649

Merged
joshsny merged 1 commit into
masterfrom
posthog-code/use-posthog-code-scheme-by-default
May 29, 2026
Merged

fix(signals): default inbox deep link to posthog-code scheme#60649
joshsny merged 1 commit into
masterfrom
posthog-code/use-posthog-code-scheme-by-default

Conversation

@joshsny
Copy link
Copy Markdown
Contributor

@joshsny joshsny commented May 29, 2026

Problem

The Slack inbox notification "Open in PostHog Code" button was generating posthog-code-dev:// links by default, which only open the dev build of the PostHog Code desktop app. End users with the production app installed couldn't follow the deep link.

Changes

  • Flip the default scheme in POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME from posthog-code-dev to posthog-code so deep links target the production desktop app out of the box.
  • Update the override comment and the affected tests to match the new default. Dev environments can still set POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME=posthog-code-dev via env/settings.

How did you test this code?

I'm an agent. I updated the two existing tests in products/signals/backend/test/test_slack_inbox_notifications.py to assert the new default scheme. I did not run the test suite or manually verify the Slack rendering.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Docs update

No docs reference this deep link scheme.

🤖 Agent context

PostHog Code session. Searched for posthog-code-dev references — found one default in slack_inbox_notifications.py plus two test assertions. The constant is already designed to be env-overridable, so the fix is just flipping the default; dev users who want the dev-app deep link can still set POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME explicitly.


Created with PostHog Code

Flip the default deep link scheme for the Slack inbox notification button from `posthog-code-dev` to `posthog-code` so links open the production desktop app. Dev environments can still override via `POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME`.

Generated-By: PostHog Code
Task-Id: 5d4c7fbe-69c3-4358-8175-8aaea71f241d
@joshsny joshsny marked this pull request as ready for review May 29, 2026 10:58
Copilot AI review requested due to automatic review settings May 29, 2026 10:58
@joshsny joshsny requested a review from a team May 29, 2026 10:58
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 29, 2026

Reviews (1): Last reviewed commit: "fix(signals): default inbox deep link to..." | Re-trigger Greptile

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Slack “Open in PostHog Code” inbox notification deep link to default to the production PostHog Code desktop app scheme, while keeping the scheme configurable via Django settings for dev/overrides.

Changes:

  • Change the default POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME from posthog-code-dev to posthog-code.
  • Update Slack notification tests to assert the new default deep link URL.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
products/signals/backend/slack_inbox_notifications.py Switches default deep link scheme used to build the Slack button URL to the production scheme.
products/signals/backend/test/test_slack_inbox_notifications.py Updates assertions to match the new default deep link URL scheme.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joshsny joshsny enabled auto-merge (squash) May 29, 2026 11:02
@joshsny joshsny merged commit eb8a6ec into master May 29, 2026
212 checks passed
@joshsny joshsny deleted the posthog-code/use-posthog-code-scheme-by-default branch May 29, 2026 11:16
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented May 29, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-05-29 11:40 UTC Run
prod-us ✅ Deployed 2026-05-29 11:57 UTC Run
prod-eu ✅ Deployed 2026-05-29 12:05 UTC Run

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.

3 participants