View Users on a chart point returns nobody for weekly charts and for organizations outside UTC
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- analytics
調査の方向性
Start in packages/core/src/modules/chart/src/sql.ts, especially chartBucketProfilesQuery and bucketEquals, then trace how the chart passes its timezone into queries and compare that with getChartBucketProfiles. Check the chart bucket and drill-down behavior for weekly charts and organizations outside UTC; done means View Users returns the users and count shown for each point. Issue #657 has an open linked pull request.
索引モデルが issue の本文から書いたものです。
説明
Description
On a time-series chart, clicking a point and choosing View Users often shows "No users found" while the chart shows a non-zero count for that point.
- Weekly charts: every point comes back empty, in every timezone.
- Organizations outside UTC: hour points come back empty, and day and month points match the wrong bucket (empty, or missing users near the edge of the period).
Steps to reproduce
- Open a report with a line chart and interval Week.
- Click any point with a count above 0 and choose View Users.
- The modal says "No users found".
For the timezone case, set the organization's timezone to America/New_York and do the same on an Hour chart.
Root cause
chartBucketProfilesQuery (packages/core/src/modules/chart/src/sql.ts, bucketEquals) doesn't match how the chart buckets its points:
- The chart builds weeks with
toStartOfWeek(created_at, 1, tz), so weeks start on Monday. The drill-down usestoStartOfWeek(toDateTime(created_at)), which uses mode 0, so weeks start on Sunday. A Sunday week start never equals the Monday date the chart sends back. - The chart runs with the organization's timezone as
session_timezone.getChartBucketProfilescallsrunQuerywithout a timezone, so the drill-down buckets in UTC while the point's date is in the organization's timezone.
Expected behavior
View Users returns the users behind the point, with the same count the chart shows, for every interval and timezone.
- 主要言語
- TypeScript
- スター
- 7.3k
- フォーク
- 539
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 80
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Openpanel-dev/openpanel のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Openpanel-dev/openpanel#653 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Openpanel-dev/openpanel#610 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
Openpanel-dev/openpanel#661 ·
メンテナーはふだん 1 日以内に返信
-
Retention matrix drops cohorts where nobody did the return event対応中かも @officialasishkumar が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Openpanel-dev/openpanel#656 ·
メンテナーはふだん 1 日以内に返信
-
Conversion breakdowns drop every later day once the series limit is reached対応中かも @officialasishkumar が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
Openpanel-dev/openpanel#655 ·
メンテナーはふだん 1 日以内に返信
Openpanel-dev/openpanel の issue をすべて見る
似ている issue
-
area: build-and-ci S3: minor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#39902 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
refined-github/refined-github#10387 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CopilotKit/CopilotKit#8283 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
complexity:simple priority:P3 ready-to-build
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
junruxiong/IncarnaMind#2919 ·