Repository navigation
pyegeria 6.3.3 follow-up: preview page size, of: end-type checks, release notes - #610
Merged
Merged
Conversation
format_set_executor._full_read (page_to=N, the preview) always asked for pages of DEFAULT_FETCH_PAGE_SIZE (100), so a 25-row preview sent pageSize 100. The first request is now min(N, 100), and with the new page_all/async_page_all option trim_to_want the last request is the remainder, so no page is read past N. Paging is otherwise unchanged: a short or empty (filtered) page does not end the read, only a null does, a run that stops at N ends 'capped' with 'stopped at the N rows asked for', and a read without page_to is untouched. /api/about: read once per run in async_paging_for and cached per platform URL for GATE_TTL_SECONDS (3600), not per request. Edited an existing test: test_page_to_pages_fully_up_to_the_rows_asked_for asserted every request was size 100 (the old behaviour); it now expects sizes [2, 2, 1]. _after_first_page (the page-on after an empty first page of a non-preview run, at least 100, bounded to 10 pages) is unchanged. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> (cherry picked from commit dc00c18)
…ionship end check_source accepted of:<list>.<attribute> if ANY entity type had the attribute, which caught typos but not an attribute on the wrong end. The generator now also writes, from the 6.4 typedefs (not the Java classes), ENTITY_SUPERTYPES (getDefaultEntityDef's 2nd argument) and END_ENTITY_TYPES (the entity type at each relationship end, keyed by the end attribute name, which is also the list's name: serverEndpoints -> Endpoint). An of: source is checked against that type and its supertypes; a wrong-end attribute is refused naming the relationship, the end, its type and the attribute. A list whose end type is not in the tables (14 of 307) falls back to the union check and the validator warns; it never passes silently. check_source keeps returning errors; check_source_with_warnings gives (errors, warnings). All 452 report specs re-run: 1783 sourced columns, 3 distinct of: sources, 0 errors, 0 warnings. gen_properties_class_fields.py's docstring now says to re-run test_py59 with EGERIA_6_4_SRC/EGERIA_6_4_REF when regenerating from another ref. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> (cherry picked from commit 639a11e)
…dy in) One user-facing line each for PY-21 (FOR_INFO), PY-23, PY-54, PY-55, PY-59, PY-60, PY-66, PY-67, PY-68, PY-69 and PY-70, under Changed or Fixes. PY-54 and PY-55 had no entry. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> (cherry picked from commit 204a1af)
…ge_to trim_to_want sized each request to want - len(items), which becomes one-row requests when the rows near the end are filtered out (zone-filtered empty pages are normal): with want=25, size 25, 24 visible rows then 500 filtered positions it made 501 requests (21 without it), and with 3000 filtered it hit max_pages at 1000 (81, ending at the empty-run cap, without it). The option is removed from page_all/async_page_all altogether. min(page_to, 100) already does the job; the over-read is at most one page. Tests: the two filtered cases stay bounded and end at the empty-run cap; a 250-row preview is 100/100/100; test_page_to_pages_fully_up_to_the_rows_asked_for now expects sizes [2, 2, 2]. The PY-19 release note no longer mentions trimming. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> (cherry picked from commit 55c15e3)
type_name_constants dropped 11 of the 682 enum entries because the GUID pattern was 36 lowercase hex characters, and Egeria wrote some in upper or mixed case or 35 or 37 characters long (PORT, PORT_ALIAS, PORT_IMPLEMENTATION, PORT_DELEGATION_RELATIONSHIP, PROCESS_PORT_RELATIONSHIP, INCIDENT_REPORT, RESOURCE_MEASURE_ANNOTATION, RECENT_ACCESS_COLLECTION, LINEAGE_MAPPING_RELATIONSHIP, CLOUD_PROVIDER_CLASSIFICATION, CLOUD_SERVICE_CLASSIFICATION). The pattern now takes any hex-and-dash string of 20 or more characters. Regenerated from 90232870b2: ENTITY_SUPERTYPES 364 -> 372, END_ENTITY_TYPES 413 -> 417 (incidentReports, ports, portDelegatingFrom, portDelegatingTo), CLASSIFICATION_SUPERTYPES unchanged (23). 10 relationship lists still have no end type (bean list names the typedefs do not know) and keep the warned fallback. Tests: odd GUID shapes parse; the four ends have types; with EGERIA_6_4_SRC set the parser finds exactly the enum entries counted from the source. The PY-59 equality test still passes with EGERIA_6_4_SRC; all 452 specs re-run clean. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> (cherry picked from commit db5b5cd)
dwolfson
added a commit
that referenced
this pull request
Nov 23, 2026
pyegeria 6.3.3: #609 and #610. The 6.3.x release notes gain a 6.3.3 section; next.md gets four wording fixes from the A8 read-back (PY-60's example values, PY-68's empty Status set, PY-70's entry still being pruned, PY-69 noting Data Scope already sent the three fields). uv.lock regenerated with current uv: the only change is the version. Micro-tests on Python 3.13: 6057 run, 0 failed, 14 skipped. 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.
The rest of the pyegeria 6.3.3 bundle. #609 was merged at its head 6da79b9, before these five commits landed on the bundle branch. They're cherry-picked unchanged onto
main(761af03): every one is SSH-signed with Signed-off-by only, and each carries acherry picked fromline. The resulting tree is identical to the bundle tip that was read back, db5b5cd. This PR doesn't bump the version or add a tag; that's the release step after merge.Each change was read back independently against Egeria 6.4. Tests ran in two environment modes (no
EGERIA_*set, and dummyEGERIA_*set), and showed 0 new failures by name againstmain. Each change's new tests fail on the commit before it.What's in it
page_to=Nnow asks for min(N, 100) rows per request, so a 25-row preview no longer requests 100. Paging still continues past a short or filtered (empty) page, and only a null page ends it. A preview that stops at its limit says "there may be more", so it can't be mistaken for "that's everything". It reads at most one page pastpage_to. Runs withoutpage_toare unchanged.of:report columns are checked against the entity type at their relationship end (PY-61). The validator used to accept any attribute of any entity type. It now checks the attribute against the type at that end and its supertypes, so an attribute on the wrong end is refused, naming the relationship, the end and its type. Two new tables generated from the Egeria 6.4 type definitions support this:ENTITY_SUPERTYPES(372 entries) andEND_ENTITY_TYPES(417 entries). Ten relationship lists have no end type in the type definitions, so they keep the looser check with a warning. All 452 shipped report specs pass unchanged.OpenMetadataTypeconstant (PY-61 F4). It missed 11 of 682 because some Egeria GUIDs are mixed-case or 35 or 37 characters long. A test now checks the parser against the enum, counted from the source.Commits
page_to🤖 Generated with Claude Code