Skip to content

Commit 740ade0

Browse files
committed
Merge branch 'alexsohn/seer-explorer-slack-integration-cleanup' into alexsohn/slack-staging-sidegrade
2 parents ff466c3 + c2f159b commit 740ade0

File tree

1 file changed

+2
-3
lines changed
  • src/sentry/seer/entrypoints/slack

1 file changed

+2
-3
lines changed

src/sentry/seer/entrypoints/slack/tasks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ def process_mention_for_slack(
9595
)
9696
if not user:
9797
lifecycle.record_failure(failure_reason=ProcessMentionFailureReason.IDENTITY_NOT_LINKED)
98+
_send_link_identity_prompt(entrypoint=entrypoint)
9899
entrypoint.install.set_thread_status(
99100
channel_id=channel_id,
100101
thread_ts=thread_ts,
101102
status="",
102103
)
103-
_send_link_identity_prompt(entrypoint=entrypoint, thread_ts=thread_ts)
104104
return
105105

106106
prompt = extract_prompt(text, bot_user_id)
@@ -151,7 +151,6 @@ def _resolve_user(
151151
def _send_link_identity_prompt(
152152
*,
153153
entrypoint: SlackExplorerEntrypoint,
154-
thread_ts: str,
155154
) -> None:
156155
"""Send an ephemeral message prompting the user to link their Slack identity to Sentry."""
157156
associate_url = build_linking_url(
@@ -165,7 +164,7 @@ def _send_link_identity_prompt(
165164
slack_user_id=entrypoint.slack_user_id,
166165
channel_id=entrypoint.channel_id,
167166
renderable=renderable,
168-
thread_ts=thread_ts,
167+
thread_ts="",
169168
)
170169

171170

0 commit comments

Comments
 (0)