Candidate test cases persist across interviews for the same problem in the same tab
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Observed behavior
When a candidate adds custom test cases during an interview and ends the interview, entering the same problem again within the same browser tab restores the custom test cases from the previous session. Because custom cases are persisted under codetrial.candidateCases.${problem.page} in sessionStorage and are never removed upon concluding an interview, previous test cases unexpectedly bleed into subsequent interview sessions.
Expected behavior
Custom test cases should be scoped to a single interview session. When an interview ends or when the candidate leaves the room, any persisted custom test cases for that problem should be cleared from sessionStorage so that a new interview starts with an empty test case list. Active in-session reloads should continue to preserve candidate test cases.
Reproduction
- From the lobby, select any coding problem (e.g.,
chargeback-pair-matchorTwo Sum) and enter the interview. - Expand the "Add a cases" panel, enter valid inputs (e.g., Input:
[[-3,4,3,90],0], Excepted:[[0,2]]), and click "Add case". - Click "End interview" to conclude the interview.
- Navigate back to the lobby and start another interview on the same problem without closing the tab or restarting the browser.
- Expand "Add a cases" and observe that the case added in step 2 is still displayed.
CodeTrial version
Automated build of https://github.com/sysprog21/codetrial/commit/b491026dd2d779c4e8d82adcfb01ce49c6421a98.
Environment
OS: Windows 10
Broswer: Chrome
Sanitized evidence
Inspecting sessionStorage via the browser developer console after clicking "End interview" reveals that the key is retained:
// In browser console after clicking End interview:
window.sessionStorage.getItem("codetrial.candidateCases.chargeback-pair-match");
// Output: "[{"input":[[-3,4,3,90],0],"expected":[[0,2]]}]"
Public data confirmation
- I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
- Ngôn ngữ chính
- Rust
- Star
- 160
- Fork
- 64
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 124
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 sysprog21/codetrial
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
sysprog21/codetrial#318 · 3 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A correct C solution to Clone Graph does not compileCó thể đã có người làm @Wu-1127 đã nhận 1 ngày trước. Đang mở
sysprog21/codetrial#332 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Run the live interviewer on a local speech pipelineCó thể đã có người làm @alanhc đã nhận 1 ngày trước. Đang mở
sysprog21/codetrial#330 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Let the candidate undo Continue without camera in the preflightCó thể đã có người làm @HALA1028 đã nhận 2 ngày trước. Đang mở
sysprog21/codetrial#327 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Allow users to start an interview without GitHub sign-inCó thể đã có người làm @TMQ0717 đã nhận 3 ngày trước. Đang mở
sysprog21/codetrial#316 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sysprog21/codetrial
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nautechsystems/nautilus_trader#5365 ·
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 78/100
IntersectMBO/developer-experience#347 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
registrystack/registry-stack#2168 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug crate: 3d help wanted triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kornia/kornia-rs#1203 · 1 bình luận ·
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 76/100
Maintainer thường phản hồi trong vòng 1 ngày