Skip to content

pyegeria 6.2.39: Dr.Egeria keeps one list item per bullet (includes the unpublished 6.2.38 fixes) - #591

Merged
dwolfson merged 4 commits into
odpi:mainfrom
dwolfson:release/6.2.39
Nov 12, 2026
Merged

dwolfson merged 4 commits into
odpi:mainfrom
dwolfson:release/6.2.39

Conversation

@dwolfson

Copy link
Copy Markdown
Member

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

  • A bullet containing a comma was split into two items. Dr.Egeria split every list attribute's value (Simple List, List, NameList, Reference Name List, in both the v2 parser and the older md_processing path) on
    commas, 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.
    • Now a bulleted or multi-line value is one item per bullet (or line), verbatim, with the leading - , * or
      + removed.
    • A single-line value is still split on commas and semicolons ("a, b" is two items), including an inline
      bulleted list on one line ("- a; - b, c" is three).
    • Behaviour change: a single bullet on its own line, such as "- a, b", is now one item (it used to be two).
    • In a block with bullets, an indented line, or a line starting in lower case after an unfinished bullet, is
      that bullet's wrapped continuation; an intro line before the first bullet, or a closing sentence after the
      bullets, is its own item.
    • A block without bullets is one item per line (a short line stands alone, even in lower case), unless it is
      clearly wrapped prose -- every line but the last at least 60 characters long and not ending a sentence --
      which is one item.
    • Spec metadata (labels, valid values) is parsed as before.
    • Write list values as bullets, one item per bullet: that is the form Dr.Egeria reads unambiguously.

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, so
the 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

…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
dwolfson merged commit 1817891 into odpi:main Nov 12, 2026
6 checks passed
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>
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