Bug: Saved reports lose their custom event selection after reload
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
packages/core/src/modules/report/report.service.ts の transformReportEventItem() を読み、ダッシュボードとエディターの読み取り時にイベント系列をどのように再構築するかを追ってください。読み戻し結果で customEventId を保持し、カスタムイベント系列と通常のイベント系列の回帰テストを追加してください。カスタムイベント ID が読み戻し後も保持され、通常のイベント系列が引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
A line chart using a saved custom event shows data in Report Builder. After the report is saved to a dashboard and reopened, it can show No data. The event picker still lists the custom event, but the selected row is a second entry with the same name labeled Not tracked yet.
The save path preserves customEventId in the report's event series. The shared report readback function drops it when rebuilding the series. The chart then queries for a raw event with the custom event's display name.
Version checked
- Repository:
Openpanel-dev/openpanel - Affected version:
v3.28.0(ae97a52bf5dd4516178a262573734931500d2544) - Also checked:
mainat21e87d3388b51e7fc8cd6e219709ab2162f2ae60has the same omission in the readback function. - Verification: the UI behavior was observed in a self-hosted deployment based on
v3.28.0. The write-payload, readback, and event-matching helpers from the upstream tag were exercised locally in memory with synthetic data. A full browser/API/database test on a clean upstream instance remains unverified.
Steps to reproduce
- In a test project, track
checkout_startedandcheckout_resumed. UseCheckout activityonly as the name of a custom event. - Under Project settings → Events, create the custom event
Checkout activityfrom those two tracked events. - In Report Builder, create a line chart with a fixed time range that contains both events. Pick
Checkout activityfrom the row labeled Custom event and confirm that the preview shows data. - Save the report to a dashboard. Reload the dashboard and reopen the saved report. Keep the same time range and filters for the comparison.
- Open the event picker and check which
Checkout activityrow is selected.
Expected behavior
The saved report still selects the Custom event row and shows the same results for the same time range and filters. The query continues to use the custom event's current definition.
Actual behavior
The chart shows No data. The picker contains both Checkout activity entries. The one labeled Not tracked yet is selected.
In the synthetic check, the write payload contained customEventId: "custom-1". The readback kept name: "Checkout activity" and omitted the ID. The query helpers resolved checkout_started and checkout_resumed before save, and only Checkout activity after readback. Saving edits to the reloaded report can also overwrite the stored reference because Update replaces the event series with the submitted series.
Relevant source
- The picker records the custom event's name and ID. ReportSeries.tsx
- The API writes the submitted series to
Report.events. reportWriteData - Both the dashboard list and the report editor use the same readback conversion. The event branch copies the name and omits
customEventId. transformReportEventItem · list and detail reads - Query-time expansion looks up the definition by ID. Without the ID or an expanded member list, matching falls back to the series name. expandCustomEvents · eventMatchCondition
Suggested fix and regression coverage
Preserve the optional customEventId in transformReportEventItem() and keep resolving the custom event's current definition at query time.
Add a regression test for reading back a saved event series with customEventId and a regular event series without it. In the UI, save and reopen a custom-event report, change only its title, save again, and verify that the selection and chart results still match.
- 主要言語
- TypeScript
- スター
- 7.3k
- フォーク
- 552
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Openpanel-dev/openpanel のほかの issue
-
Free trial banner overlaps the AI Chat sidebar対応中かも @VasuS609 が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
Openpanel-dev/openpanel#690 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Openpanel-dev/openpanel#653 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Openpanel-dev/openpanel#610 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
Openpanel-dev/openpanel#682 ·
メンテナーはふだん 1 日以内に返信
-
Save button becomes inaccessible when dashboard names are long対応中かも @aftab8052tech が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 40/100
Openpanel-dev/openpanel#679 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
Openpanel-dev/openpanel の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nicobailon/pi-subagents#3425 ·
メンテナーはふだん 1 日以内に返信
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea-a2a bug port python
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
strands-agents/harness-sdk#6697 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
api technical-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
opencollective/opencollective#9235 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
openwatersio/slackwater#603 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信