Repository navigation
Adopt Egeria 6.3 boxed properties; raise on failed bearer token requests - #498
Merged
Merged
Conversation
…quests Egeria 6.3 (odpi/egeria#9389) leaves unset numbers and flags out of responses and keeps them on a merge update, which fixes ISSUE-166. - Dr.Egeria: a Create rewritten to Update no longer sends the spec defaults the parser filled in, which would overwrite stored values. - Stop forcing 0 for GovernanceControlProperties.domainIdentifier, EmbeddedConnectionProperties.position, role headCount and Solution Role domainIdentifier. - Remove the ISSUE-166 workarounds: security finding rows now show a returned 0 / false, and SecurityFindingProcessor no longer copies the current values into a merge update. - create_egeria_bearer_token raised nothing on bad credentials and returned Egeria's 401 error text as the token (or "FAILED" on a connection error). It now raises PyegeriaUnauthorizedException, PyegeriaClientException, PyegeriaConnectionException or PyegeriaTimeoutException and leaves the headers unchanged. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
This was referenced Oct 27, 2026
dwolfson
added a commit
that referenced
this pull request
Oct 28, 2026
* docs(issues): re-sort the issue trackers, open items first PYEGERIA_ISSUES.md: - Released fixes still marked "not yet released" now name the PR and release: ISSUE-111/113/129/134/136 (#446) and ISSUE-135 (#445) in 6.2.2, ISSUE-153 (#460) 6.2.5, ISSUE-160 (#474/#475 6.2.8, #478 6.2.9), ISSUE-161 (#477) 6.2.9, ISSUE-162 (#482) and ISSUE-163/164 (#483) 6.2.10. ISSUE-166 notes the pyegeria side (#498, 6.2.13). - Moved the fixed entries (ISSUE-153, 160-166) from the open sections to the top of Fixed / Resolved. - Awaiting re-test is now a real section after the open ones, holding ISSUE-125, 124, 117, 112, 90, 95 and 89. Its old header sat in the middle of the Fixed list, where everything under it except ISSUE-95 and ISSUE-89 was already fixed. - The At-a-glance counts and lists are rebuilt from the section contents (14 open pyegeria items, 7 awaiting re-test, 5 open Egeria Server issues), and the re-test section notes the quickstart now runs Egeria main abe31272. EGERIA_OPEN_ISSUES.md: drop the fixed ISSUE-166 entry, and move ISSUE-79 (Egeria needs information) and ISSUE-38 (pending oak2026 merge) out of Awaiting re-test, matching their 2026-10-18 status. No entry text was removed: 166 entries before and after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015pdMuTg6FmqPWeapeXM54g Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> * docs(issues): ISSUE-165 released in 6.2.11 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015pdMuTg6FmqPWeapeXM54g Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> --------- Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dwolfson
added a commit
to dwolfson/egeria-python
that referenced
this pull request
Nov 12, 2026
…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>
dwolfson
added a commit
to dwolfson/egeria-python
that referenced
this pull request
Nov 12, 2026
…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>
dwolfson
added a commit
that referenced
this pull request
Nov 12, 2026
…ed, report-spec publish helper (#593) * Dr.Egeria: send Parent Relationship Attributes typed, never raw (F-A 1) 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> * Dr.Egeria: send template and classification dictionaries typed (F-A 2) 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> * Dr.Egeria: send Uncertainty as Egeria's Long, refuse non-integers (F-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> * Dr.Egeria: Create ToDo/Meeting/Review say "no personal profile" (F-A 4) 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> * Dr.Egeria: wire Create UC Server/Schema/Table Element; never "unrecognized" (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> * Dr.Egeria: a failed command always says why, on one line (F-A 6) 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> * Dr.Egeria: every spec'd Create runs or says why; no nameless success (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> * Dr.Egeria: treat Egeria GUIDs as opaque; accept type-prefixed GUIDs (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> * Dr.Egeria: a GUID reference is a whole UUID, one type prefix at most (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> * Dr.Egeria: Blog/Journal/Activity Entry creates report success (F-A 9) 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> * Dr.Egeria: don't send Default Value Override; report it (F-B 9) 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> * feat(view): report_spec_publish, the shared report-spec publish/withdraw 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> * Dr.Egeria: attach Search Keywords after every create/update (F-B 2) 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> * Dr.Egeria: apply or report the other Referenceable attributes (F-B 3) 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> * Dr.Egeria: send the bundle each type declares; report the rest (F-B 5) 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> * Dr.Egeria: Project attributes to their Egeria homes (F-B 7) 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> * Dr.Egeria: glossary-term flags as Egeria classifications (F-B 1) 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> * Dr.Egeria: Parent Relationship Attributes without a Parent ID say so (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> * Dr.Egeria: one-off attributes under Egeria's keys, or reported (F-B 6) 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> * Dr.Egeria: close the last silent drops the F-B gate run showed (F-B 5/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> * Dr.Egeria: schema attribute position/cardinality on its parent link (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> * Dr.Egeria: no spec defaults when a Create resolves to an existing element 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> * Dr.Egeria: schema link properties use the Architect's wording when not 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> * Revert "Dr.Egeria: no spec defaults when a Create resolves to an existing element" This reverts commit acf9cf8. Architect read-back of 408f26f: the existing _drop_create_defaults (#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> * Test that a resolved Create keeps Merge Update when dropping spec defaults _drop_create_defaults (#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> * pyegeria 6.2.40: Dr.Egeria round-trip fixes (F-A, F-B) and report_spec_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> * Release notes 6.2.40: exact Link command names; Known issues 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> --------- 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.
Summary
Egeria 6.3 now uses boxed types for the numbers and flags in its property beans (odpi/egeria#9389, merged as 12b1aaae). An unset value is left out of the response, and a merge update keeps a value it doesn't mention. This fixes ISSUE-166. This PR adapts pyegeria to that change and also fixes a bearer-token bug reported by a user.
Boxed properties
Createfinds the element already exists and becomes anUpdate, it no longer sends the spec defaults the parser filled in for the Create (e.g.isNullable: true,position: 0). On 6.3 those would overwrite stored values. OnlyMerge Updatekeeps its default. SeeAsyncBaseCommandProcessor._drop_create_defaults.GovernanceControlProperties.domain_identifier,EmbeddedConnectionProperties.position, Person/Team RoleheadCountand Solution RoledomainIdentifierare now left unset when not given.DataDiscovery._security_rowshows a returned 0.0 / false as a real answer.SecurityFindingProcessorno longer copies current values into a merge update.update_usage_activitydocstrings are updated to match.PYEGERIA_ISSUES.md/EGERIA_OPEN_ISSUES.md.Bearer token
create_egeria_bearer_tokendidn't check the HTTP status. With bad credentials it returned Egeria's 401 error text as the token and put it in the Authorization headers. On a connection error it returned"FAILED". Both base clients now share_post_for_bearer_token, which raises instead and leaves the headers unchanged:PyegeriaUnauthorizedExceptionPyegeriaClientExceptionPyegeriaConnectionException/PyegeriaTimeoutExceptionPyegeriaInvalidParameterExceptionNote for callers
Elements written by servers older than 6.3 still hold a stored 0 / false for values nobody set; #9389 doesn't migrate them. Code that compared the token result to
"FAILED"should catch the exception instead.Testing
test_create_bearer_token_errors.py(7 cases) andtest_upsert_drops_create_defaults.py.PyegeriaUnauthorizedException.VulnerabilityAnnotationcreated with only a severity came back withoutcvssScore/exploitAvailable/patchAvailable.🤖 Generated with Claude Code