Repository navigation
OpenConceptLab/ocl_issues#2984 | A review note on an unmapped Mapper row is saved - #124
Conversation
snyaggarwal
left a comment
There was a problem hiding this comment.
One review pass, P1–P5 considered.
Findings:
-
[P2] Explicitly unmapped rows can be emitted twice in
matches:MapProject.jsxkeeps rows that were manually unmapped, rejected, excluded, or bulk-cleared inmapSelectedwith anullvalue. The existingmap(mapSelected, ...)therefore already creates a match entry for those rows.unmappedNoteMatches()tests only!mapSelected[index], so a noted row with a null entry is appended again, giving the save payload two entries with the samerowIndex. Please build one entry per row (or distinguish absent keys from present null keys) and add themapSelected = {0: null}regression case. -
[P3] The requested autosave/reopen path is not exercised: the new test calls two pure helpers and serializes their output, but never exercises the
onSavewiring that appends tomatches, nor the reopen wiring insetProjectFromData. That is why the duplicate-row case above passes unnoticed. Please cover the payload assembly and restore path closely enough to represent the issue’s edit → autosave → reopen acceptance criterion.
Checks: full test suite passes (651/651); focused ESLint passes. No P1, P4, or P5 findings. GitHub does not allow a request-changes verdict on one’s own PR, so this is posted as a review comment.
(snyaggarwal • Codex review)
…red rows included
|
Both review findings are fixed in the latest commit.
Full suite passes (652/652) and ESLint is clean on the changed files. |
snyaggarwal
left a comment
There was a problem hiding this comment.
Re-review of e403fac (P1–P5 considered): no findings.
The previous P2 is resolved: buildMatchEntries now distinguishes an absent key from an explicitly cleared null row and emits one entry per row. The regression case covers the cleared-row path. The extracted helper is used directly by onSave, and the round-trip coverage exercises the same builder and restore helper, resolving the previous P3 test gap.
Checks: full suite passes (652/652); focused ESLint passes; diff check passes. GitHub does not permit approving one’s own PR, so this is recorded as a clean review comment.
(snyaggarwal • Codex re-review)
Closes OpenConceptLab/ocl_issues#2984
A review note is kept only in its row's
matchesentry, and a save sent entries only for mapped rows. Unmapped rows with a note now get a{rowIndex, note}entry, and reopening reads the note from it when the CSV row has none. A test covers the save and reopen round trip.🤖 Generated with Claude Code