Sign-in markers: stop mirroring to the legacy shared record one release after #1969
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
- 20/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- authentication, frontend
Hướng nghiên cứu
Start with DESIGN.md and the code from #1969 that writes the per-entity Studio:PotentiallyAuthenticated:<entityId> keys, then find where the mirror into the shared Studio:PotentiallyAuthenticated record happens and where the sign-out sweeps read it. Done means the mirror is gone, the old record is deleted on load after the one-time migration, the Studio:PotentiallyAuthenticatedMigrated special handling is removed, and DESIGN.md matches. Do not start until #1969 has shipped and run in production for a release; the issue says so.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What to do
#1969 moves remembered sign-in markers from the shared Studio:PotentiallyAuthenticated record to one key per entity (Studio:PotentiallyAuthenticated:<entityId>). Studio tabs from before #1969 read the shared record only at load and write their whole copy back. So for one release #1969 also mirrors every marker change into the old record, and its sign-out sweeps read it. That keeps old tabs, and a rollback, consistent with new ones.
One release after #1969 ships to production:
- Stop mirroring into
Studio:PotentiallyAuthenticated. - Delete the old record on load, keeping the one-time migration of anything still in it.
- Drop the old-record reads from the sign-out sweeps and the
Studio:PotentiallyAuthenticatedMigratedflag's special handling, and updateDESIGN.md.
Why it can't wait
While the mirror exists, the old record keeps the limits #1969 removed for new tabs. These are the review findings recorded against it:
- a read-modify-write race between tabs on the mirrored record;
- a rewrite per entity during a full sign-out;
- an unreadable record replacing it on write;
- the migration's one-time copy, and an old tab's write-back bringing back a signed-out marker.
Don't remove it until production has run #1969's release long enough that no tab from before it is still open.
Review-Deferral: d861d82357ec0895 severity=minor category=concurrency
Review-Deferral: 58c8df7ce1fb2420 severity=nit category=concurrency
Review-Deferral: 43cd604ec076ea0e severity=nit category=concurrency
Review-Deferral: 81c98bc4312a6a42 severity=nit category=performance
Review-Deferral: 1282fb67a2760cbc severity=nit category=data-integrity
Review-Deferral: a947843f6d1dd466 severity=nit category=correctness
Review-Deferral: defde12cf7a0afc8 severity=nit category=correctness
Raised by the cross-model review of #1969 (#1968).
🤖 Generated by Anthropic Claude Code (Claude Opus 5.5); posted via @dawsontoth.
- Ngôn ngữ chính
- TypeScript
- Star
- 5
- Fork
- 4
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 60
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọ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 HarperFast/studio
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
HarperFast/studio#2111 ·
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 82/100
HarperFast/studio#2109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
rum
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
HarperFast/studio#2085 ·
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 78/100
HarperFast/studio#2070 ·
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 74/100
HarperFast/studio#2067 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của HarperFast/studio
Issue tương tự
-
area: batch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
inabagumi/shinju-date#7294 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
streaming-video-technology-alliance/common-media-library#700 ·
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 82/100
vercel-labs/ui#809 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
KrisCris/village-in-the-shade-guide#75 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bot:ai-assisted component:platform-js status:untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
midnightntwrk/platform-js#38 ·