Repository navigation
fix(detail): normalize the three section caps to one DETAIL_SECTION_CAP = 200 - #79
Merged
Merged
Conversation
…AP = 200 The detail-view had three caps gating the same concept — "rows in one detail section" — with an unprincipled 4× gap: DEVICE_CAP=200 (a device's interfaces/IPs/services), SECTION_CAP=50 (a prefix's child prefixes/member IPs, a VLAN's referencing prefixes), and VRF_SECTION_CAP=200 (a VRF's scoped prefixes/addresses). A VRF's addresses showed 200 but a prefix's child IPs — the same kind of data — showed 50, truncating common /24 prefixes (254 hosts) at 50 rows. Collapse all three into a single DETAIL_SECTION_CAP = 200. The cap is a rendering concern (rows in one detail section), so it's named at that layer, not the dcim/ipam domain layer the old doc comments drew. This fixes the one cap that genuinely bit (prefix/VLAN children 50→200, covering the vast majority) and ends the three-names-one-concept inconsistency. BROWSE_CAP = 1000 (whole-kind browse, a different concept) is unchanged. A full /24 (254 hosts) still truncates at 200; closing that fully is a targeted --all/fetch-all toggle, not a cap bump. Verified: gate green (1107 all-features / 1012 no-default-features, clippy -D warnings, fmt); live prefix/device/vlan detail paths return 200. No test asserts 50-row truncation and no mock pins limit=50, so the bump is behaviorally invisible to the suite. ROADMAP: load-more-on-scroll reframed — the 50 outlier it was meant to patch is fixed by this normalization; the residual (>200 rows) wants a toggle, not scroll-paging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The detail-view had three caps gating the same concept — "rows in one detail section" — with an unprincipled 4× gap:
DEVICE_CAPSECTION_CAPVRF_SECTION_CAPA VRF's addresses showed 200, but a prefix's child IPs — the same kind of data — showed 50, truncating common
/24prefixes (254 hosts) at 50 rows.Change
Collapse all three into a single
DETAIL_SECTION_CAP = 200(src/domain/detail.rs).BROWSE_CAP = 1000(whole-kind browse, a genuinely different concept) is unchanged. The other unrelated caps (PREFIX_TREE_CAP,CIRCUIT_PATH_CAP,PANEL_FRONT_PORT_CAP,RECENT_CAP,JOURNAL_INLINE_MAX) are untouched.Scope note (residual)
A full
/24(254 hosts) still truncates at 200. Closing that fully is a targeted--all/fetch-all toggle — deliberately not a cap bump (200 covers the vast majority and ends the inconsistency, which is the win here). The ROADMAP load-more item is reframed accordingly: the 50 outlier it was meant to patch is fixed by this; the residual wants a toggle, not scroll-paging.Verification
cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings,cargo test --all-features(1107 pass),cargo test --no-default-features(1012 pass) — all green, unchanged counts (the bump is behaviorally invisible to the suite: no test asserts 50-row truncation, and no mock pinslimit=50).ltuller).detail.rs(no test referenced them by name);query_tests.rspasses a literal50to the client methods (testing filter behavior withcount: 1mocks), isolated from the const.Docs
ROADMAP.md: load-more-on-scroll reframed (50 outlier fixed by normalization; residual =--alltoggle).CHANGELOG.md:## [Unreleased]→### Changedentry.Files
src/domain/detail.rs— 3 caps → 1 (DETAIL_SECTION_CAP), all 21 call-sites + 3 doc comments updated.ROADMAP.md,CHANGELOG.md— doc updates.A small, principled normalization PR. Next real chunk (per the plan): fixture-migration pass to pay down the 0.12.0 surface expansion, with the MCP prompts catalog as the differentiator follow-up.