Repository navigation
pyegeria 6.2.36: collection members page; folder walks page every folder (ISSUE-185) - #588
Merged
Merged
Conversation
…e is never a count (ISSUE-185) get_collection_members took start_from and page_size but never passed them on (they are its own parameters, so not in **kwargs): every call read the first page. saved_query's reader, paging until an empty page, re-read the same members until its bound, and a 3-member Results Set read as "at least 60" on the Portal and in EA (the Architect's live Route B read-back). - get_collection_members passes start_from / page_size to the request. - Both request helpers (results-body and name) add the call's paging to a caller's body when the body sets none (_with_paging); the body's own paging wins. Paging given as arguments used to be dropped with a body. - saved_query._read_pages counts distinct elements; a page that brings nothing new stops the read with "paging did not advance" in the answer's note, and is not capped. A genuinely long read is still capped. - Audit of paged-to-empty loops: dashboards._dashboard_elements and the two in md_processing's dashboard sheet writer had no bound; each now stops (with a warning) when a page brings nothing new. overview_metrics, md_processing's processors and base_report_formats are bounded. Of 101 list methods taking start_from/page_size, get_collection_members was the only one not forwarding them. - Tests: two pages differ through the real request path; the request body carries the paging; a caller's body gets it unless it sets its own; the real call read by _read_pages; a repeating page; the Architect's tile reads 3, not at least 60. Without the fix, four of them fail. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Version bump, uv lock and release notes: get_collection_members honours start_from and page_size, paging arguments reach a caller's body, a repeated page is never a count, and no paging loop can run forever (ISSUE-185). Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…LD-3 note N2) egeria_folders.walk_folder (and the consumer-tree read) made one unpaged get_collection_members per folder, so a folder larger than the server's default page was silently truncated. Each folder is now read with _members: paged until an EMPTY page, deduplicated by GUID, stopped when a page brings nothing new, and over MEMBERS_MAX_PAGES x MEMBERS_PAGE it raises FolderTooLarge, which the walk reports like any failed read (a folder not fully read, never a short one). Tests: the folder fakes now page the way Egeria does (start_from / page_size); the cycle guard counts each folder's first-page read. New: a folder over one page is read to the end; a tree over the bound is "not read" with the reason, never empty; a server that ignores paging ends the walk. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…Architect N1) Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
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.
pyegeria 6.2.36: release branch
release/6.2.36@ a11a402, off main 854079d. All commits are signed and carry DCO.ISSUE-185, paging
get_collection_memberspasses its ownstart_from/page_sizeagain. Before this fix every call read page 1, so a saved-query tile showed "≥60" when the true count is 3.body=that has none. The body's own paging still wins.saved_query._read_pagescounts distinct elements. A page that brings nothing new stops the read with a note, not a capped count.egeria_folders.walk_folderand the consumer-tree read page every folder until they get an empty page, dedupe by GUID, and stop when a page brings nothing new. A folder with more than 10,000 members is reported as not fully read, never as a short count.Behaviour change. When a method is called with
body=and the body has no paging, the method's ownpage_sizedefault now applies. This affects 19 methods, listed in the release notes.Tests
test_collection_members_paging.py(11 tests) and 3 folder-paging tests.🤖 Generated with Claude Code