WEB-929: Keep edited datatable column values on save - #4042
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository: openMF/web-app/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note
|
| Layer / File(s) | Summary |
|---|---|
Column replacement and regression test src/app/system/manage-data-tables/create-data-table/create-data-table.component.ts, src/app/system/manage-data-tables/create-data-table/create-data-table.component.spec.ts |
editColumn now matches the edited row by columnName. The new spec verifies that the column length changes to '50' and the array retains one entry. |
Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: gkbishnoi07
Merge Risk: ⚪ Minimal · up to 63a26
Edited column values can replace the existing row; no actionable merge-blocking risk remains after normal checks.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly identifies the main change: preserving edited datatable column values when saving. It matches the implementation change and the added regression test. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2… |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Description
editColumnincreate-data-table.component.tscomparedcolumn.nameagainstnewColumn.columnName. Rows storecolumnName, notname, socolumn.namewas alwaysundefined.findIndexreturned -1, and assignment went to index -1 instead of the row. Column edits, including length changes, never reachedcolumnData, and submit sent the original values.Fix compares
newColumn.columnNameagainstcolumn.columnName.Added a spec for
editColumn. It opens the edit dialog, closes it with a longer column length, and checks the stored row for the new length.Related issues and discussion
https://mifosforge.jira.com/browse/WEB-929
Screenshots, if any
No visual effect.
Checklist
web-app/.github/CONTRIBUTING.md.Summary by CodeRabbit