Repository navigation
Commit d52f394
committed
fix(automated-curation): ISSUE-83 skipClassifiedElements empty-string bug
get_technology_type_elements(get_templates=True) built
skipClassifiedElements as [skip_templates] where skip_templates was ""
when get_templates=True -- sending a one-element list containing an
empty string, not an empty list. Egeria correctly rejects the empty
classification name (OMAG-COMMON-400-018 "The type name ... is not
recognized"), so every call with get_templates=True fails outright.
Found via a user report: a known live RelationalDatabase asset didn't
appear browsing Technology Types -> Postgres Relational Databases in
egeria-workspaces' Tech Catalog, even though it was directly
retrievable by GUID and correctly tagged
(deployedImplementationType: "PostgreSQL Relational Database"). The
failure is masked downstream -- egeria-workspaces' tech_catalog_handler.py
calls this with get_templates=True unconditionally and treats any "400"
in the error message as "no elements found," so the whole listing
silently renders empty instead of erroring.
Fix: skip_classified_elements = [] if get_templates else ["Template"].
Also corrected the method's docstring sample body, which showed the
same [""] value as if it were correct usage.
Live-verified end-to-end, not just unit-tested: live-patched into
quickstart-pyegeria-web's installed pyegeria (docker cp + restart,
diff-confirmed), then curled the actual production route -- it now
returns the previously-missing asset correctly (15 items with
templates included vs. 14 without, consistent).
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>1 parent d1b7aac commit d52f394
2 files changed
Lines changed: 66 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
684 | 737 | | |
685 | 738 | | |
686 | 739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5350 | 5350 | | |
5351 | 5351 | | |
5352 | 5352 | | |
5353 | | - | |
| 5353 | + | |
5354 | 5354 | | |
5355 | 5355 | | |
5356 | 5356 | | |
5357 | 5357 | | |
5358 | 5358 | | |
5359 | 5359 | | |
5360 | | - | |
| 5360 | + | |
| 5361 | + | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
| 5366 | + | |
| 5367 | + | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
5361 | 5371 | | |
5362 | 5372 | | |
5363 | 5373 | | |
| |||
5368 | 5378 | | |
5369 | 5379 | | |
5370 | 5380 | | |
5371 | | - | |
| 5381 | + | |
5372 | 5382 | | |
5373 | 5383 | | |
5374 | 5384 | | |
| |||
0 commit comments