Repository navigation
Conversation
A changed list (resource monitor triggers, network policy IPs, hybrid table indexes) rendered as one table cell. Past 60 characters the cell collapsed to '<1 line, N chars>', so the plan hid what changed. Show one item per row, before and after side by side, with dict items as key: value pairs.
|
Reviewed this PR. Checked out the branch, read the surrounding plan-rendering code and the The computation is correct for the cases it targets and the new test is sound. My three findings are all about what the change removed rather than what it computes.
|
|
@GClunies checking in, quiet since my Oct 18 review. The computation is correct and the test is sound, so this is close. All three findings are about the caps the change removed rather than anything it computes: no per-item width cap (a View Are you planning to make those updates? |
Address review on datacoves#87: - Wrap a list item longer than 60 chars onto continuation rows, so each cell stays within the value width. - Match items with difflib, so an inserted item does not shift the rows after it. - Collapse a run of more than 3 unchanged items to its count, and collapse the rows after the first 20 to their count. - Read each side separately, so a string before a list is one item, not one row per character. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dXsGKEWRyMmCh5dZHtQVU
|
@noel thanks for the review. All three findings are fixed in 15312c6.
I collapsed unchanged runs instead of a plain "first N rows" cap. A plain cap can hide the one changed item, for example a CIDR at position 250. The 20-row cap is only a backstop for a list where most items change. Tests: |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dXsGKEWRyMmCh5dZHtQVU
|
@GClunies thanks, re-reviewed at One thing to fix before merge:
Low, fine as follow-ups:
Simplification, optional: |
Summary
snowcap planshows a changed list property one item per row, with the before and after values side by side. Before this change, a list longer than 60 chars collapsed to<1 line, N chars>, so a reviewer could not see what changed (#86).A dict item shows as
key: valuepairs. A multiline item still collapses, because the table cannot show a newline. A non-list side is one item, so a string before a list does not split into characters.A resource monitor trigger change now reads:
A 300-entry
allowed_ip_listwith one changed CIDR reads:Evidence
The size of the plan for the cases in the review, rendered with
dump_plan:maincolumnsdelta, table width_plan_value_rows("x", "abc", ["a"])TestPlanValueRowsandtest_plan_text_shows_each_item_of_a_changed_list(intests/test_blueprint.py): 7 of 9 fail on the first commit of this PR.After: 9 of 9 pass.
pytest tests --ignore=tests/integration: 2236 passed, 1 skipped, 1 xfailed. On currentmainmerged in: 2325 passed.make lintandmake typecheck: clean. CIbuildpasses on Python 3.10, 3.11, and 3.12.Merge Danger
Door: two-way
The change affects only the text that
snowcap planprints. The JSON plan and the SQL thatapplyruns do not change.Blast Radius: cosmetic
A script that parses the text plan table sees more rows for a list property.
🤖 Generated with Claude Code
https://claude.ai/code/session_011dXsGKEWRyMmCh5dZHtQVU