Skip to content

pyegeria 6.2.36: collection members page; folder walks page every folder (ISSUE-185) - #588

Merged
dwolfson merged 7 commits into
odpi:mainfrom
dwolfson:release/6.2.36
Nov 11, 2026
Merged

dwolfson merged 7 commits into
odpi:mainfrom
dwolfson:release/6.2.36

Conversation

@dwolfson

Copy link
Copy Markdown
Member

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_members passes its own start_from/page_size again. Before this fix every call read page 1, so a saved-query tile showed "≥60" when the true count is 3.
  • Both request helpers add the call's paging to a body= that has none. The body's own paging still wins.
  • saved_query._read_pages counts distinct elements. A page that brings nothing new stops the read with a note, not a capped count.
  • egeria_folders.walk_folder and 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.
  • The while-True paging loops in dashboards now stop on no progress.

Behaviour change. When a method is called with body= and the body has no paging, the method's own page_size default now applies. This affects 19 methods, listed in the release notes.

Tests

  • New: test_collection_members_paging.py (11 tests) and 3 folder-paging tests.
  • 3.13 micro-tests on laz: 3014 tests, 0 failures, 3 skipped.
  • Live read-back: the tile reads 3.

🤖 Generated with Claude Code

…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>
@dwolfson
dwolfson merged commit e2f048d into odpi:main Nov 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant