Candidate test cases persist across interviews for the same problem in the same tab
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 160
- Fork
- 64
- Merge medio
- 1g 11h
- PR unite (30g)
- 132
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la 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 sysprog21/codetrial
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Add a Copy code button to the final reportForse già presa @yansawu l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
sysprog21/codetrial#318 · 5 commenti · 2 reazioni · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Show problem difficulty in past attempt labelsForse già presa @yuen0428 l’ha presa oggi. Aperta
sysprog21/codetrial#357 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Add keyboard undo and redo to whiteboard interviewsForse già presa @xuntla l’ha presa oggi. Aperta
sysprog21/codetrial#352 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Let the candidate restore the starter codeForse già presa @RWong04 l’ha presa oggi. Aperta
sysprog21/codetrial#348 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sysprog21/codetrial
Issue simili
-
documentation P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue priority:high
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Konfirm-xyz/konfirm-contracts#163 ·
I maintainer di solito rispondono entro 1 giorno
-
area:gc-repack-output bug factory:dogfood factory:triaged priority:p3 type:bug type:ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
gitbutlerapp/grit#1161 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
feature performance
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
lance-format/lance#10137 ·
I maintainer di solito rispondono entro 2 giorni