Repository navigation
pyegeria 6.2.39: Dr.Egeria keeps one list item per bullet (includes the unpublished 6.2.38 fixes) - #591
Merged
Conversation
…all (6.2.39)
Dr.Egeria split every list attribute value (Simple List, List, NameList,
Reference Name List) on commas, semicolons and newlines, in both the v2 parser
(md_processing/v2/parsing.py) and the older path (common_md_proc_utils:
Simple List in both attribute parsers, and reference name lists). A bullet
with a comma became two items: the CDO workbook metric "Recovery Test Coverage"
(it-governance-program.md:636-639) is stored in Egeria with 6 implications
instead of 4, and line 53's "... depending domain, not set by IT alone" splits
the same way.
- New common_md_utils.split_list_value(): a bulleted or multi-line value is one
item per bullet/line, verbatim (bullet marker stripped); a single line is
split on commas and semicolons, including an inline bulleted list
("- a; - b, c"); a lone bullet line is one item. Spec metadata (labels, valid
values) keeps split_tb_string.
- Tests: the two real workbook commands (copied verbatim) give 4 implications
each with the commas kept; single-line "a, b" gives 2; one bullet with a
comma gives 1; the laz capture shows the 6-item value stored today. The two
workbook tests fail on 70da8d5.
- Update replaces, not appends: Dr.Egeria sends the whole list with
mergeUpdate true, and Egeria's merge update sets each supplied property whole
(OpenMetadataAPIGenericHandler.setUpNewProperties,
OMRSRepositoryContentHelper.mergeInstanceProperties), so re-running the
documents corrects the data. Release notes: docs/release-notes/6.2.39.md.
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…in list values (6.2.39 n1) Read-back n1 on 78ff098. split_list_value's multi-line rule (_split_multiline): - With bullets: each bullet is an item. A non-bullet line after a bullet joins it only when it is a wrapped continuation -- indented, or starting in lower case after a bullet that did not end its sentence. Lines before the first bullet (an intro) and a closing sentence after the bullets are their own items (joining every non-bullet line would glue a closing sentence onto the last bullet, as in the Dr.Egeria samples' Examples block). - Without bullets: clearly wrapped prose -- every line break inside a sentence (the line before does not end in . ! ? ; : and is at least 60 characters, or the next line starts in lower case) -- is one item, lines joined with spaces; otherwise one item per line (a line list). - Commas are never split inside a multi-line value. Tests from real blocks copied verbatim from egeria-workspaces: the data-field- naming glossary Usage (wrapped prose -> 1 item), the dr-egeria-samples Examples line list (4 items), and the samples' mixed Examples block (intro + 4 bullets + closing sentence -> 6 items), plus continuation cases. Over 9,051 multi-line list-attribute blocks in egeria-workspaces-fs the result is the same as 78ff098's. Release notes: the rule and "write list values as bullets". Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…value (6.2.39 n2) Read-back n2 on ae03c75: in a block without bullets, "the next line starts in lower case" alone counted as a wrap, so a short lower-case keyword list (crm / erp / data quality) became one item. Wrapped prose now needs every line but the last to be at least 60 characters long AND not end a sentence; a short line always stands alone. Tests: the three-line keyword list gives 3 items; the short "first line, with comma / second" case is a line list again; _continues is pinned -- inside a bulleted block, a lower-case line after a bullet that did not end its sentence continues it however short, and stands alone after a finished bullet or when capitalised. The real glossary Usage prose is still one item. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
dwolfson
added a commit
to odpi/egeria-trellis
that referenced
this pull request
Nov 18, 2026
pyegeria 6.2.39 (odpi/egeria-python#591): Dr.Egeria keeps one list item per bullet, and it carries the unpublished 6.2.38 fixes (DCAT search-mode file names; My Egeria domain GUID). The lock moves pyegeria only. 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.39
pyegeria 6.2.39 fixes how Dr.Egeria reads list attributes. It also carries the two 6.2.38 fixes (the DCAT Catalog spec runs with a search string; My Egeria's domain selection passes the GUID): 6.2.38 was tagged but not published to PyPI, so 6.2.39 follows 6.2.37 there. See 6.2.38.md.
Fixed
Simple List,List,NameList,Reference Name List, in both the v2 parser and the older md_processing path) oncommas, semicolons and newlines. A bullet such as "Results go to the Service Owner and the depending domain, not
only to IT" became two items. The CDO workbook's IT governance metric "Recovery Test Coverage" was stored with 6
implications instead of 4.
-,*or+removed.bulleted list on one line ("- a; - b, c" is three).
that bullet's wrapped continuation; an intro line before the first bullet, or a closing sentence after the
bullets, is its own item.
clearly wrapped prose -- every line but the last at least 60 characters long and not ending a sentence --
which is one item.
Correcting stored data: re-run the affected Dr.Egeria documents. An Update (or a Create that becomes an Update)
sends the whole list with
mergeUpdate: true, and Egeria's merge update replaces a property's value as a whole, sothe list is replaced, not appended. A list attribute left out of the document is not changed.
Release branch
release/6.2.39@ ae625e5 (signed): the 6.2.39 fix (e2e7856) plus the version bump, on 6.2.38 (70da8d5). 6.2.38 was tagged but not published, so this release carries its two fixes too. Micro-tests on 3.13, run independently on laz: 3283 passed, 0 failed, 3 skipped. Architect read-back: PASS.Merge order note: the queued 6.2.38 publish run should be cancelled or rejected when Actions recover, so PyPI goes 6.2.37 → 6.2.39.
🤖 Generated with Claude Code