Candidate test cases persist across interviews for the same problem in the same tab
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- Rust
- スター
- 160
- フォーク
- 64
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 124
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sysprog21/codetrial のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
sysprog21/codetrial#318 · コメント 3 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
A correct C solution to Clone Graph does not compile対応中かも @Wu-1127 が 1 日前に担当しました。 オープン
sysprog21/codetrial#332 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Run the live interviewer on a local speech pipeline対応中かも @alanhc が今日担当しました。 オープン
sysprog21/codetrial#330 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Let the candidate undo Continue without camera in the preflight対応中かも @HALA1028 が 1 日前に担当しました。 オープン
sysprog21/codetrial#327 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Allow users to start an interview without GitHub sign-in対応中かも @TMQ0717 が 2 日前に担当しました。 オープン
sysprog21/codetrial#316 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
sysprog21/codetrial の issue をすべて見る
似ている issue
-
area:ecosystem documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Chelis-Lang/chelis#3866 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
metasequoiaime/msime#8620 ·
メンテナーはふだん 1 日以内に返信
-
agent-detection macos p2 triaged
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug documentation sev-0
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信