Skip to content

pyegeria 6.2.40: Dr.Egeria creates that break, attributes never applied, report-spec publish helper - #593

Merged
dwolfson merged 29 commits into
odpi:mainfrom
dwolfson:release/6.2.40
Nov 12, 2026
Merged

dwolfson merged 29 commits into
odpi:mainfrom
dwolfson:release/6.2.40

Conversation

@dwolfson

Copy link
Copy Markdown
Member

Release 6.2.40. Full notes: docs/release-notes/6.2.40.md.

Contents

  • F-A, creates that broke:
    • creates now succeed, or refuse in a sentence;
    • GUIDs are treated as opaque strings: type-prefixed GUIDs from some repositories were misread as failures;
    • Blog, Journal and Activity Entry render from the created element;
    • Schema Type, Subject Area and Data Sharing Request are registered.
  • F-B, attributes processors never applied:
    • the common builder sends every bundle attribute the type's Java class declares, and reports the rest as "not applied" instead of dropping them silently;
    • Search Keywords are written;
    • glossary term flags are written as classifications;
    • Project attributes use the ProjectClassification / identifier mapping;
    • schema link properties (position, min/max cardinality) go on the AttributeForSchema / NestedSchemaAttribute relationship;
    • orderedValues is fixed;
    • Default Value Override is not sent (an Egeria TypeDef gap).
  • New module pyegeria/view/report_spec_publish.py: the shared publish/withdraw document builder for report specs. It is byte-identical in output to the Egeria Advisor's, and is pure (no credentials or I/O).

Verification on the release commit (195434f)

  • 3.13 micro suite: 3450 passed, 0 failed, 3 skipped.
  • Dr.Egeria round-trip probe gate: run on a fresh scratch Egeria (Postgres repository, Core plus 4 technology content packs) against baseline 88cf76b. PASS, 0 regressions.

Not included: the spec metadata renames (F-C) and the MetadataExpert command family.

The release notes are getting two small additions as a follow-up commit on this branch: the exact Link Element->Rating/Like command names, and a known-issues section.

🤖 Generated with Claude Code

Egeria types NewElementRequestBody.parentRelationshipProperties and
TemplateRequestBody.parentRelationshipProperties as the polymorphic
RelationshipProperties (NewElementRequestBody.java:25, TemplateRequestBody.java:33,
RelationshipProperties.java:19-21 @JsonTypeInfo(property="class"),
ignoreUnknown=true; odpi/egeria origin/main 0b7ee0fb). Dr.Egeria sent the
dictionary raw, with no "class": a 400 InvalidTypeIdException that lost the
whole create. On the round-trip probe's run 1 (scratch 757a5df0) this alone
failed 108 of 110 creates.

- scripts/gen_properties_class_fields.py generates
  md_processing_utils/properties_class_fields.py from Egeria's Java (a git ref,
  read with git cat-file; the checkout is never modified): every framework
  Properties class, its kind (relationship/classification/entity, from its
  superclass chain, base classes followed) and the JSON names it reads.
- md_processing_utils/typed_properties.py, one helper for every call site:
  "<RelationshipType>Properties" with only the keys that class reads; every
  other key, a missing Parent Relationship Type Name, or a type with no
  properties class is reported as "not applied: <attribute>: <reason>".
- Used by set_create_body (common_md_utils), schema_maker._outer_body and the
  Asset Maker generic Create Element. _sync_parent_relationship (the
  update-time link through metadata-expert related-elements) sends the same
  keys as the NewElementProperties property-value map that endpoint reads
  (omf NewRelatedElementsRequestBody.java:28), not a raw dict.
- Body builders record notes on the attribute; the base processor turns every
  recorded note into a command warning (success or failure), so nothing is
  dropped silently and no caller changed.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
TemplateRequestBody.replacementProperties is the polymorphic EntityProperties,
and replacementClassifications / NewElementRequestBody.initialClassifications are
Map<String, ClassificationProperties> (TemplateRequestBody.java:30-31,
NewElementRequestBody.java:24, odpi/egeria origin/main 0b7ee0fb). Dr.Egeria sent
Template Properties and Generic Initial Classifications raw (no "class"): a 400
on the round-trip probe for Create Element and the two Schema Maker
From-Template commands.

Through the F-A 1 helper (typed_properties):
- Create Element: Template Properties -> "<Element Type Name>Properties" with
  only the keys that type reads; with no Element Type Name it is not sent
  ("the element type isn't known"). Generic Initial Classifications -> one
  "<Classification>Properties" per classification, sent as
  replacementClassifications (the Java name; the model already serialised
  initialClassifications to it).
- Create Schema Type/Attribute From Template: Template Properties typed by the
  command's OM_TYPE.
- Create Schema Type/Attribute: Initial Classifications typed the same way.
Every key, classification or type that can't be sent is a
"not applied: <attribute>: <reason>" warning.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…A 3)

DataValueSpecificationProperties declares absoluteUncertainty and
relativeUncertainty as Long (DataValueSpecificationProperties.java:42-43,
odpi/egeria origin/main 0b7ee0fb). The compact spec styles them Simple Float,
and Create Data Value Specification sent the probe's "7.5" as a string: a 400
("Cannot deserialize value of type java.lang.Long from String") that lost the
whole create.

Integral input ("7", "7.0", 7) now goes out as an int; anything else is not
sent and says "not applied: <attribute>: '7.5' isn't a whole number; Egeria
stores it as an integer". The spec style correction (Simple Float -> Simple
Int for these two) belongs to F-C. The other Simple Float attributes (Data
Scope/Lens latitude, longitude, height) are Java Float and unaffected.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
On the round-trip probe Create ToDo, Create Meeting and Create Review failed
with "Execution failed: string indices must be integers, not 'str'". Cause:
MyProfile._async_create_my_todo / _create_meeting / _create_review looked the
caller's profile up with the sync get_my_profile(), which returns the string
"No elements found" for a user with no personal profile (the scratch
platform's demo user has none), and indexed it as a dict.

A new _async_require_my_profile_guid() looks the profile up once (async) and,
when there is none, raises "User <id> has no personal profile in Egeria, so it
can't create a to-do/meeting/review; create the user's profile first" before
any request is sent. Dr.Egeria reports that sentence as the command's failure.
Re-classified: these three need a profile on the platform (phase 2 for the
probe), not a create bug, once the crash is gone. Regression test per method.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…nized" (F-A 5)

The compact spec, templates and help name these commands "UC Server Element",
"UC Schema Element" and "UC Table Element", but AssetMakerProcessor matched
only "Unity Catalog ... Element", so all three failed on the round-trip probe
with "AssetMakerProcessor: unrecognized command". Both spellings now reach
_async_create_uc_server/schema/table_element_from_template (every attribute
the branches read exists in the spec).

- A command with no mapping says "Create <X> is not supported yet by
  Dr.Egeria's Asset Maker (OM_TYPE ... has no create-from-template mapping)".
- _async_get_template_guid_for_technology_type returned None when the
  technology type itself was missing, so the create went out with
  "templateGUID": null and failed with no useful message. It now raises
  "No technology type '<name>' on this Egeria server, so there is no catalog
  template to create from." (a missing template on an existing type already
  named itself).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
str(PyegeriaException) is a multi-line report that starts with a newline, so
every summary row built from f"Execution failed: {str(e)}" read just
"Execution failed:" -- 16 creates on the round-trip probe (Schema Maker, Blog/
Journal/Activity Entry, the Asset Maker technology-type creates) failed with
no visible reason.

describe_exception() (md_processing/v2/processors.py) gives the exception type
and message on one line, preferring Egeria's own exceptionErrorMessage from the
response and appending its exceptionErrorMessageId when the message doesn't
already start with it. Used for the message and errors of both failure paths
in AsyncBaseCommandProcessor._execute, the dispatcher's two and the View
processor's. A plain exception with no text falls back to its repr, never "".

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…(F-A 7)

The five creates the round-trip probe found "successful" with nothing to read
back had never run: each summary row read "No processor registered for
'<command>'".

- Create Subject Area: SubjectAreaProperties extends CollectionProperties
  (odpi/egeria origin/main 0b7ee0fb), so it joins COLLECTION_SUBTYPES and goes
  through CollectionManagerProcessor like the other collection kinds.
- Create CSV File: the processor existed, registered as "Create CSV Element";
  "Create CSV File" (the Digital Product Manager spec's name) now reaches it.
  That spec has no File Name / File Type, so the file is named by its Display
  Name and typed "CSV Data File".
- Create Rating / Create Like: attachments in Egeria (AttachedRating,
  AttachedLike); Create Data Sharing Request: a ToDo subtype
  (DataSharingRequestProperties extends ToDoProperties), not the collection the
  spec describes, with no pyegeria create call. md_processing/v2/not_supported
  fails each with "<command> is not supported yet: <why, and what to use>.
  Nothing was sent to Egeria." The spec corrections belong to F-C.
- A Create that succeeds without returning a GUID now says "no element GUID
  was returned, so the created element can't be named" instead of a bare
  "Executed".

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…F-A 8)

Egeria GUIDs are opaque strings. A Postgres-backed server returns plain UUIDs,
but the in-memory repository (the probe's scratch simple-metadata-store,
InMemoryOMRSRepositoryConnectorProvider) returns "<TypeName>-<uuid>"
("Glossary-5d2a1857-..."). extract_guid_or_raise accepted only
^[a-fA-F0-9-]{8,}$, so on such a platform 213 of the probe's Create summary
rows read "Execution failed: ValueError: Create X did not return a GUID
string" for elements Egeria had created, and every post-create step (zones,
governance classifications, parent links, the element cache, journal
entries) was skipped. Platforms returning plain UUIDs, laz included, are not
affected (checked by the Coordinator, read-only).

pyegeria/core/utils.py:
- is_guid(): a non-empty string with no whitespace that isn't a descriptive
  answer ("No elements found", "GUIDResponse", ...) or a qualified name ("::").
  No hex or UUID shape assumed. Used by extract_guid_or_raise.
- is_guid_reference(): where a value may be a GUID or an element name (a
  qualified name has no spaces either), is_guid() plus a UUID at the end,
  plain or type-prefixed. Used by resolve_element_guid, action_author's GUID
  check and GovernanceLinkProcessor._normalize_guid (all three assumed a bare
  UUID).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…(F-A 8b)

Architect read-back of 22bdad7: is_guid_reference() was anchored only at the
end, so names that merely end in a UUID ("Run-Extract-<uuid>",
"My_Report_<uuid>") were taken for GUIDs at the GUID-or-name sites -- a
regression from the old uuid.UUID() check. It is now a full match:
^(?:[A-Za-z][A-Za-z0-9]*-)?<uuid>$ -- a UUID, plain or after one type-name
prefix ("Glossary-<uuid>"). Both counter-examples are tested as names, at the
helper and through resolve_element_guid. is_guid() (opaque, for responses) is
unchanged.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
On the PostgreSQL scratch (the probe user now has a profile) Create Blog Entry,
Create Journal Entry and Create Activity Entry created their entry and then
failed: the processor read it back with _async_get_note_by_guid, which asks
for type Note, and Egeria answered "OMAG-REPOSITORY-HANDLER-404-001 ... of
type BlogEntry rather than type Note". The result is now rendered from the
created element (render_result_markdown), like the other creates. Test per
command.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Create Schema Attribute, Create Display Data Container and Create Display
Data Field failed on the PostgreSQL scratch with OMAG-REPOSITORY-HANDLER-400-001
/ OMRS-REPOSITORY-400-028 ("A property called defaultValueOverride ... type
SchemaAttribute"). Egeria's SchemaAttributeProperties declares the field
(SchemaAttributeProperties.java:52) and its builder writes it
(OpenMetadataElementBuilder.java:2225), but the 757a5df0 repository TypeDef
doesn't (Egeria issue addendum section 4). Until Egeria declares it,
Dr.Egeria leaves it out and reports "not applied: Default Value Override: not
in this Egeria's type system", so the create succeeds. Test per type.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…raw helper

Stage 1a of BRIEF-SPEC-PUBLISH-STAGED-2026-11-12 (owner: "Yes, staged").
Lifted from Egeria Advisor's advisor/egeria_spec_publish.py (trellis, B6)
and made app-neutral, so the Portal and EA build and check the same
Dr.Egeria documents. No credentials, no web or app code, no cache I/O.

- build_publish_document(label, fs, *, folders, visibility, zones, held,
  restricted): Create Report Spec (Update when held), Add Member to
  Collection per consumer folder (the folders are the app's), Zone
  Membership for restricted, Declassify Zone Membership when a restricted
  spec is re-published as public. Never a Parent ID. Every attribute is
  one line (any Unicode line break refused; rules, '>' and '#' refused;
  list items without commas); the microflow is one ASCII line.
- build_withdraw_document(label, folders, *, allowed, allowed_words):
  Remove Member from Collection per folder.
- check_zones / restricted_publish_status(proof): EA's rules and words;
  the proof is the app's setting (EA: ADVISOR_RESTRICTED_PUBLISH_PROVEN),
  passed in, not read from an env var here.
- held_in_egeria(label, *, shared_tier, restricted_reader, app):
  {held, zones, how}; without a restricted reader, or when one fails,
  "how" says "not known: restricted specs not read", never "not held".
- document_digest / check_unchanged: the process step refuses, with
  EA's words, a document that differs from the previewed one.
- run_document(plan, *, step, run, confirmed, digest): preview /
  validate / process with an app-supplied runner (the app runs the
  document as the signed-in user); after a successful process it returns
  after_publish(plan), the cache instruction, and syncs nothing.

The builders return EA's plan dict (markdown, digest, steps, ...) rather
than a bare string, so EA (stage 1b) can delegate with no behaviour
change.

Tests (45): golden equality with EA's own output, captured from trellis
82340b58 for fixed inputs with this pyegeria: 6 publish documents
(create/update, one or two folders, restricted, declassify), 11 refusal
words, 2 withdraw documents and the withdraw refusal (documents, digests
and steps byte-identical); the digest refusal; confirm required; zone
rules; folders in the app's order; held_in_egeria's words; no Parent ID
in any document or code string; no credential parameters and no imports
beyond hashlib/json/re/typing/pyegeria. micro-tests on 3.13: 3325 passed.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The Referenceable bundle carries Search Keywords on nearly every command, and
no processor applied them (116 rows DROPPED on the round-trip probe's
PostgreSQL baseline). Solution Component's own sync passed the keyword string
where the request body goes.

AsyncBaseCommandProcessor._sync_search_keywords now runs with the other
post-create/update syncs: one SearchKeyword per entry, attached with
ClassificationExplorer._async_add_search_keyword_to_element
(elements/{guid}/search-keywords, NewAttachmentRequestBody). The keyword is
SearchKeywordProperties.displayName -- the Java bean has displayName and
description, no `keyword` field. Idempotent: keywords the as-is element
already has are skipped; additive: unlisted keywords stay. A refusal is a
failed related result with Egeria's message. Solution Component now relies on
it. Verified live on the PostgreSQL scratch: both keywords read back under
searchKeywords[].relatedElement.properties.displayName.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
No processor applied Classifications, Translation Details, User Defined
Status or Supplementary Properties (88 rows each on the round-trip probe's
PostgreSQL baseline). AsyncBaseCommandProcessor._sync_referenceable_extras
now runs after every create/update:

- Classifications (Named DICT: name -> properties): each typed
  "<Name>Properties" by typed_properties.classification_map and attached with
  MetadataExpert._async_classify_metadata_element; unknown names / keys are
  reported. A Named DICT reaches the processor as raw text in v2, so the
  helper now also parses "key: value" lines and bare names.
- Translation Details: TranslationDetailProperties (language, languageCode,
  locale, displayName, description, additionalTranslations) set through
  Egeria's generic multi-language service (MultiLanguageResource.java:32,
  POST elements/{guid}/translations), via a new thin
  ClassificationExplorer._async_set_translation / set_translation.
- User Defined Status: no Egeria property on an element (only the
  CollectionMembership relationship has userDefinedStatus): reported, for F-C.
- Supplementary Properties: Egeria keeps them on a separate glossary term
  linked by SupplementaryProperties
  (ClassificationExplorer._async_add_supplementary_properties_to_element);
  Dr.Egeria doesn't create that term yet: reported, for the Architect.

Verified live on the PostgreSQL scratch: Taxonomy classified, a French
translation set, the two reports shown. A processor that applies one of these
itself lists it in parsed_output["applied_attributes"] and is skipped.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Processors that build their own (partial) properties dropped the Referenceable
/ Authored / Asset bundle (round-trip probe, PostgreSQL baseline: Identifier,
Category, Legal, URL, Version Identifier, Authors, Content Status, Namespace
Path, Source, Effective From/To ... 4-11 rows each).

- common_md_utils.complete_bundle_properties(props, attributes): every bundle
  attribute given is sent when the properties class (properties_class_fields,
  from Egeria's Java) declares its key, and otherwise not sent and reported
  "not applied: <attribute>: <class> has no <key> property" -- a key Egeria
  would only ignore is stripped. Status fields via element_status_properties;
  a written status attribute the type has no field for is reported
  (report_status_not_applied). set_element_prop_body ends with it, so every
  processor using the common builder gets it once.
- Data Value Specification family (DVS, Measurement Spec, Data Class, Data
  Grain): data_designer._data_spec_fields adds dataType, units,
  matchPropertyNames, matchThreshold (Integer), specification(+Details),
  namespacePath and the Long uncertainties, then the bundle; Name Patterns has
  no Egeria property: reported.
- Schema Type: namespace -> namespacePath, author -> authors (list);
  isDeprecated has no SchemaTypeProperties field: reported.
- Solution Role: SolutionActorRoleProperties has scope but no domainIdentifier
  or title: those are reported instead of sent.
- Dashboard Sheet keeps only heading/description/family/aliases/owner: the
  bundle attributes given are reported.
- Blog/Journal/Activity Entry send a full typed body (situation, priority,
  effective dates, bundle); To-Do/Meeting/Review pass effective dates through a
  new my_profile extra_properties argument; Objective is reported where the
  type has none (only MeetingProperties does).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
PROJECT-ATTRIBUTES-MAPPING-2026-11-12 and the owner's decisions.
ProjectProperties (odpi/egeria origin/main 0b7ee0fb) has none of
projectIdentifier, purposes, projectType, projectScope, projectApproach,
projectManagementStyle, projectResultsUsage -- all were sent and silently
ignored (8 rows each on the round-trip probe's PostgreSQL baseline).

- Project Identifier -> identifier (ReferenceableProperties).
- Project Approach / Management Style / Results Usage -> the
  ProjectClassification classification (approach, managementStyle,
  resultsUsage): in initialClassifications on create,
  ProjectManager._async_add_project_classification on update.
- Project Type -> its named classification (CampaignProperties, Task, ...,
  checked against the generated class table); an unknown type is reported.
- Purposes: removed (owner, 2026-11-12) -- reported "not applied: Purposes:
  Project Purposes was removed" until F-C drops it from the spec.
- Project Scope: no Egeria property (owner, 2026-11-12: use relationships
  such as governedBy or assignedTo) -- reported.
Information Supply Chain: dataProcessingPurposes reads "Data Processing
Purposes" or "Purposes" (F-C renames it); integrationStyle and
estimatedVolumetrics, declared by InformationSupplyChainProperties, are now
sent.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
In Egeria 6 the term flags are classifications (OpenMetadataType.java ~3245-
3366, odpi/egeria origin/main 0b7ee0fb), not GlossaryTermProperties; sent as
properties they were silently ignored (round-trip probe, PostgreSQL baseline:
Is Abstract Concept / Is Activity Description / Is Context / Is Data Value /
Term Activity Type / Context Scope DROPPED; Context Description CHANGED, it
read back the term's own description).

glossary.term_properties_and_classifications, shared by Create/Update
Glossary Term and Create Question:
  Is Abstract Concept                          -> AbstractConcept
  Is Activity Description + Term Activity Type -> ActivityDescription(activityType)
  Is Context + Context Description / Scope     -> ContextDefinition(description, scope)
  Is Data Value                                -> DataValueMeaning
in initialClassifications on create, the generic metadata-expert classify call
on update. Aliases / Summary / Examples / Abbreviation / Usage
(GlossaryTermProperties) are now set for Question too (they were dropped).
The two ISSUE-162 tests now assert the classification behaviour; their intent
holds: a flag the document doesn't mention isn't sent. The Class Word /
Modifier / Prime Word naming classifications were already applied by
_sync_term_naming_classifications; their DROPPED rows are a probe read-back
location (fixed on the gate branch).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…(F-B 8)

Processors that build their own create body (Data Class, Data Value
Specification, Measurement Specification, Informal Tag, Solution Component)
never looked at Parent Relationship Attributes: 6 rows DROPPED on the
round-trip probe's PostgreSQL baseline. With a Parent ID, the base processor's
typed _sync_parent_relationship (F-A 1) applies them; with none there is
nothing to attach them to. AsyncBaseCommandProcessor._report_unapplied (run
after every apply_changes, success or failure) now records "not applied:
Parent Relationship Attributes: there is no Parent ID to attach them to" when
no builder reported them already, and turns every recorded note into a
command warning.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The one-off drops on the round-trip probe's PostgreSQL baseline, each checked
against the Java class (properties_class_fields, odpi/egeria origin/main
0b7ee0fb):
- filled where the class declares the key: Implementation Description (the
  governance types that have implementationDescription), Headcount ->
  headCount, Working Set Disposition, Digital Product productName / maturity /
  serviceLife / introductionDate, Member Ordinal -> ordinal (Reference Data
  Value), plus Scope / Usage / Purpose;
- renamed where a processor used a key the class doesn't declare:
  withdrawalDate -> withdrawDate, nextVersion -> nextVersionDate,
  headcount -> headCount;
- reported where the class has no such property: Current Version, Coverage
  Category, Minimum/Maximum Cardinality and Position on Data Field, Is
  Default Member / Default Member (a property of the ValidValueMember link).
The domain builders (collection manager, actor manager, solution architect,
product, data field, governance) now end with complete_bundle_properties, so
keys they add after the common builder are checked too. Status, Situation,
Objective, Units and the Uncertainties were covered by group 5.

Not changed here (probe read-back or spec metadata): Cited Document's
publication dates are sent as firstPublicationDate / publicationDate (the
spec's property_name says firstPubDate/pubDate: F-C); Report's analytic
parameters travel inside reportParameters; Glossary Is Canonical / Is
Taxonomy are classifications; Domain Identifier is sent as Egeria's number.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…/6/7)

From the F-B gate run (20261112T143304Z, PostgreSQL scratch):
- complete_bundle_properties: a Scope/Usage/Purpose key a processor put in a
  body whose class doesn't declare it is stripped and reported (Schema
  Attribute / Display Data Container / Field sent `usage`, which
  SchemaAttributeProperties lacks).
- Schema Maker: contentStatus comes from the status helper, so a written
  Status isn't overwritten by the parser's default Content Status.
- Reference Data Value / Set: bundle completion after the type's own
  properties (Member Ordinal -> ordinal).
- Create Informal Tag, the Asset Maker technology-type creates and Create CSV
  File take only a few arguments (a tag's name and description; a template's
  placeholders): every other bundle or status attribute given is reported
  (common_md_utils.report_unsent_bundle).
- Project: when Identifier and Project Identifier are both given, Identifier
  wins and Project Identifier is reported.
3.13 micro suite: 3402 passed.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…F-B)

Architect read-back of 428f297 (corrects the earlier "Egeria gap" reading):
in Egeria 6, position / minCardinality / maxCardinality are properties of the
AttributeForSchema / NestedSchemaAttribute relationships
(AttributeForSchemaProperties, NestedSchemaAttributeProperties; types archive
~8386/8436, written by OpenMetadataRelationshipBuilder), and the entity's
ordered flag is orderedValues (SchemaAttributeProperties). Dr.Egeria sent
elementPosition / minCardinality / maxCardinality / isOrderedValues on the
SchemaAttribute entity, where they were ignored.

- Is Ordered Values -> orderedValues on the entity.
- Element Position / Min / Max Cardinality (coerced to integers) go into the
  typed parentRelationshipProperties of the create when the attribute is
  linked by a Parent ID with Parent Relationship Type Name AttributeForSchema
  or NestedSchemaAttribute.
- Otherwise -- no such parent link, or an Update (which doesn't change the
  link) -- each is reported "not applied" with that reason.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ment

Architect read-back residual: the parser fills in spec defaults for create
verbs (Content Status ACTIVE, ...), and a Create that finds its element is
processed as an update -- so those defaults could overwrite stored values the
document never mentioned. AsyncBaseCommandProcessor now drops every attribute
whose value came only from a default ("is_default") before applying, when the
verb is a create-like one and the as-is element exists. Values the document
wrote are kept. 3.13 micro suite: 3405 passed.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…t applied

Read-back section 3(a), as amended: with no parent link, Element Position /
Min Cardinality / Max Cardinality report "not applied: <attribute>: belongs on
the link to the parent; give a Parent ID (...)". Behaviour unchanged from
1373365: the three go in the typed AttributeForSchema / NestedSchemaAttribute
parent-relationship properties as position / minCardinality / maxCardinality,
never in the entity body; isOrderedValues is orderedValues on the entity.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ting element"

This reverts commit acf9cf8.

Architect read-back of 408f26f: the existing _drop_create_defaults (odpi#498)
already handles a Create that resolves to an existing element, and keeps
Merge Update (_KEEP_DEFAULTS_ON_UPDATE). The reverted _drop_spec_defaults
dropped Merge Update too, so where reachable a processor that defaults it to
False (data_designer.py ~416) would send a replace update that could wipe a
Data Field. The "residual" it addressed didn't exist.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…aults

_drop_create_defaults (odpi#498) removes the parser's create-time defaults when a
Create resolves to an existing element, except Merge Update
(_KEEP_DEFAULTS_ON_UPDATE): a processor that defaults it to False would send a
replace update. Pins that, after the acf9cf8 revert.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ed (fix/fb-unapplied-attributes @c85528f8, on fix/fa-broken-creates @f0f0c805)

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…@2fdff9bc)

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…c_publish

Release candidate: upstream main d757cb2 + fix/fa-broken-creates @f0f0c805 +
fix/fb-unapplied-attributes @c85528f8 (acf9cf8 reverted) + Stage 1a
(feat/report-spec-publish @2fdff9bc). Version bump and uv lock; release
notes in docs/release-notes/6.2.40.md. F-C and MetadataExpert are not in
this release.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Read-back of RC 195434f (section 1): the rating/like commands are Link
Element->Rating / Link Element->Like; a Known issues section covers
additionalProperties replaced as a whole map on upsert / merge update, the
Egeria-side gaps (Regulators not stored, Authors lost on read for External
References / Design Models, entity effective dates not returned, Default
Value Override undeclared) and B5 on Egeria 8840035f (pageSize 1 find can miss
an element after a same-named delete). Docs only.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 5c06bc9 into odpi:main Nov 12, 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