View Users on a chart point returns nobody for weekly charts and for organizations outside UTC
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- analytics
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 7.3k
- Fork
- 539
- Merge medio
- 1g 20h
- PR unite (30g)
- 80
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Openpanel-dev/openpanel
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Openpanel-dev/openpanel#653 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
Openpanel-dev/openpanel#610 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
Openpanel-dev/openpanel#661 ·
I maintainer di solito rispondono entro 1 giorno
-
Retention matrix drops cohorts where nobody did the return eventForse già presa @officialasishkumar l’ha presa 2 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Openpanel-dev/openpanel#656 ·
I maintainer di solito rispondono entro 1 giorno
-
Conversion breakdowns drop every later day once the series limit is reachedForse già presa @officialasishkumar l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
Openpanel-dev/openpanel#655 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Openpanel-dev/openpanel
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Azure/azure-functions-nodejs-extensions#180 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 2 giorni
-
iso-bmff: add IsoBoxReadView.readUint64 and IsoBoxWriteView.writeUint64 for exact 64-bit fieldsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
streaming-video-technology-alliance/common-media-library#611 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
prime-radiant-inc/evener#5901 ·
I maintainer di solito rispondono entro 1 giorno
-
area:frontend kind:bug priority:p3 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno