:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(signals): remove weight from Slack inbox report threads (#65296)
Michael Matloka141e654a55c3
diff --git a/products/signals/backend/slack_inbox_notifications.py b/products/signals/backend/slack_inbox_notifications.pyindex c6b120306673..506e2fe253f4 100644--- a/products/signals/backend/slack_inbox_notifications.py+++ b/products/signals/backend/slack_inbox_notifications.py@@ -487,12 +487,6 @@ def _signal_detail_parts(source_product: str, extra: dict) -> list[str]:trace_id = extra.get("trace_id")if trace_id:parts.append(f"Trace: `{_escape_mrkdwn(str(trace_id)[:12])}…`")- elif source_product == "error_tracking":- fingerprint = extra.get("fingerprint")- if fingerprint:- text = str(fingerprint)- short = text if len(text) <= 14 else text[:14] + "…"- parts.append(f"Fingerprint: `{_escape_mrkdwn(short)}`")elif source_product == "session_replay":if extra.get("problem_type"):parts.append(f"Problem: {_escape_mrkdwn(str(extra['problem_type']).replace('_', ' '))}")@@ -505,13 +499,9 @@ def _build_signal_thread_blocks(signal: dict) -> tuple[list[dict], str]:source_type = str(signal.get("source_type") or "")raw_extra = signal.get("extra")extra = raw_extra if isinstance(raw_extra, dict) else {}- try:- weight = float(signal.get("weight") or 0.0)- except (TypeError, ValueError):- weight = 0.0source_line = _escape_mrkdwn(_signal_source_line(source_product, source_type, extra))- header_line = f"*{source_line}* · Weight: {weight:.1f}"+ header_line = f"*{source_line}*"blocks: list[dict] = [{"type": "context", "elements": [{"type": "mrkdwn", "text": header_line}]}]content = (signal.get("content") or "").strip()diff --git a/products/signals/backend/test/test_slack_inbox_notifications.py b/products/signals/backend/test/test_slack_inbox_notifications.pyindex 50ccabd8bfaf..aae7ebf3c851 100644--- a/products/signals/backend/test/test_slack_inbox_notifications.py+++ b/products/signals/backend/test/test_slack_inbox_notifications.py@@ -913,7 +913,7 @@ def test_build_signal_thread_blocks_renders_header_content_and_github_details()}blocks, fallback = _build_signal_thread_blocks(signal)- assert blocks[0]["elements"][0]["text"] == "*GitHub · Issue* · Weight: 2.5"+ assert blocks[0]["elements"][0]["text"] == "*GitHub · Issue*"assert blocks[1]["text"]["text"] == "Users report the export button does nothing"detail = blocks[2]["elements"][0]["text"]assert "#42" in detail