Skip to content

pyegeria 6.3.3 follow-up: preview page size, of: end-type checks, release notes - #610

Merged
dwolfson merged 5 commits into
odpi:mainfrom
dwolfson:claude/pyegeria-6.3.3-followup
Nov 23, 2026
Merged

dwolfson merged 5 commits into
odpi:mainfrom
dwolfson:claude/pyegeria-6.3.3-followup

Conversation

@dwolfson

Copy link
Copy Markdown
Member

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 a cherry picked from line. 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 dummy EGERIA_* set), and showed 0 new failures by name against main. Each change's new tests fail on the commit before it.

What's in it

  • A preview asks Egeria only for the rows it shows (PY-19). A report run with page_to=N now 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 past page_to. Runs without page_to are 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) and END_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.
  • The generator reads every OpenMetadataType constant (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.
  • Release notes for the remaining 6.3.3 fixes: PY-21 (Activity Status offers FOR_INFO), PY-23, PY-54, PY-55, PY-59, PY-60, PY-66, PY-67, PY-68, PY-69 and PY-70.

Commits

Here On the bundle Change
a9a3fa3 dc00c18 PY-19
9d95d28 639a11e PY-61
0de69fe 204a1af release notes
12a4106 55c15e3 PY-19 F3: no request trimming; at most one page past page_to
92e7fe3 db5b5cd PY-61 F4: every type constant parsed

🤖 Generated with Claude Code

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
dwolfson merged commit 5aaa9f3 into odpi:main Nov 23, 2026
7 checks passed
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>
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