Server events lose session IDs when profile ID equals device ID
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start with SessionBuffer.getExistingSession({ profileId }) and the worker code that resolves sessions for server-like user agents through the profile-to-device index. Confirm that the index is skipped when profile_id equals device_id, then check whether a fallback lookup by the profile ID as device ID returns the right session. Done when server events for such profiles are stored with the active session's session_id and device_id, and other profiles still resolve through the existing index.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When a server-side event is sent with a profile ID that is also used as its device ID, the /track API can find the active session and return its session ID. However, the event may be stored with an empty session_id and device_id.
The worker handles server-like user agents by resolving the session through the profile-to-device index. The session buffer does not create that index when profile_id and device_id are equal, so the worker cannot find the session—even though it exists under the device key.
Suggested change
In SessionBuffer.getExistingSession({ profileId }), if the profile index is absent, try looking up the session using the profile ID as the device ID. Return it only when the stored profile_id and device_id both match the requested profile ID.
Expected result
Server-side events for a profile whose ID equals its device ID are stored with the active session’s correct IDs. Other profiles continue to resolve through the existing profile index.
- Ngôn ngữ chính
- TypeScript
- Star
- 7.1k
- Fork
- 516
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Openpanel-dev/openpanel
-
ClickHouse retry logs print CLICKHOUSE_URL with its passwordCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
Openpanel-dev/openpanel#551 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Self-hosted missing op1-replay.jsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Openpanel-dev/openpanel#512 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
login page needs refinementCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Openpanel-dev/openpanel#495 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Help reproducing the 100k/27s benchmark in #560: ingestion throughput and Redis CPU saturationĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 36/100
Openpanel-dev/openpanel#564 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Openpanel-dev/openpanel#563 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Openpanel-dev/openpanel
Issue tương tự
-
area: repo priority: P2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
appandflow/stim#4107 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 60/100
lingdojo/kana-dojo#32859 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
code-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/gh-aw-firewall#10364 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Merge the duplicate kaffir_corn record into sorghumCó thể đã có người làm @Crypto-Shroom đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Crypto-Shroom/Bird-Feed-Calculator#322 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
drizzle-team/drizzle-orm#6552 ·
Maintainer thường phản hồi trong vòng 2 ngày