Repository navigation
Commit b843d14
authored
feat(dr-egeria): default editing commands to forLineage=true; Solution Component deployment status (odpi#403)
* feat(dr-egeria): default editing commands to forLineage=true; Solution Component deployment status
Requested by Mandy Chessell.
forLineage defaults (Promise support)
- Egeria only returns Promise-classified elements (and Memento, logically
deleted, elements) to requests with forLineage=true. Setting For Lineage on
a command did not help: it only reached the request body, while the
existence check, name lookups and fetch-by-GUID always used false -- so
e.g. Update Solution Component on a promised component missed it and was
rewritten into a Create.
- pyegeria: new lineage_visible() context manager. Inside it, every JSON
request body sent by any client (both BasePlatformClient and
BaseServerClient request paths) goes out with forLineage=true, including
bodies SDK helpers build with it false.
- Dr.Egeria: editing commands run inside lineage_visible(True); report
commands (View/List/Run) default to false. An explicit For Lineage value
wins, except Declassify Promise, which always uses true. A Memento element
found by an editing command is treated as not found, so a Create for a
deleted element's name still creates rather than updating the deleted one.
Solution Component (0730)
- Create Solution Component gains Deployment Status / User Defined
Deployment Status, sent as deploymentStatus / userDefinedDeploymentStatus.
Shared attribute definitions kept identical in the Curation and Solution
Architect families (global attribute namespace).
- Fix "compoent(s)" typos in Link Solution Components / Link SubComponent.
Verified against a live server: a promised Solution Component was found and
updated in place by Update Solution Component with no For Lineage attribute
(same GUID, no duplicate), deploymentStatus stored, report-style find hid it
by default and showed it inside lineage_visible().
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
* test: don't depend on a live Egeria server in the AssetCatalog request-body tests
AssetCatalog's constructor calls check_connection(), so these tests only
passed on machines with an Egeria server at localhost:9443 -- CI has none,
and main has failed since odpi#402 added test_asset_lineage_for_lineage.py.
Stub check_connection and use a port nothing listens on, so any real
network call fails loudly instead of silently relying on a local server.
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
---------
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>1 parent 0e746f1 commit b843d14
22 files changed
Lines changed: 589 additions & 38 deletions
File tree
- docs
- md_processing
- data
- compact_commands
- v2
- pyegeria
- core
- view
- sample-data/templates
- advanced
- Curation
- Solution Architect
- basic
- Curation
- Solution Architect
- tests/micro-tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
229 | 245 | | |
230 | 246 | | |
231 | 247 | | |
| |||
242 | 258 | | |
243 | 259 | | |
244 | 260 | | |
| 261 | + | |
245 | 262 | | |
246 | 263 | | |
247 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2862 | 2862 | | |
2863 | 2863 | | |
2864 | 2864 | | |
2865 | | - | |
| 2865 | + | |
2866 | 2866 | | |
2867 | 2867 | | |
2868 | 2868 | | |
| |||
2871 | 2871 | | |
2872 | 2872 | | |
2873 | 2873 | | |
2874 | | - | |
| 2874 | + | |
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
| |||
2881 | 2881 | | |
2882 | 2882 | | |
2883 | 2883 | | |
2884 | | - | |
| 2884 | + | |
2885 | 2885 | | |
2886 | 2886 | | |
2887 | 2887 | | |
| |||
2890 | 2890 | | |
2891 | 2891 | | |
2892 | 2892 | | |
2893 | | - | |
| 2893 | + | |
2894 | 2894 | | |
2895 | 2895 | | |
2896 | 2896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3168 | 3168 | | |
3169 | 3169 | | |
3170 | 3170 | | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
3171 | 3220 | | |
3172 | 3221 | | |
3173 | 3222 | | |
| |||
3333 | 3382 | | |
3334 | 3383 | | |
3335 | 3384 | | |
3336 | | - | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
3337 | 3388 | | |
3338 | 3389 | | |
3339 | 3390 | | |
| |||
3478 | 3529 | | |
3479 | 3530 | | |
3480 | 3531 | | |
3481 | | - | |
| 3532 | + | |
3482 | 3533 | | |
3483 | 3534 | | |
3484 | 3535 | | |
| |||
3677 | 3728 | | |
3678 | 3729 | | |
3679 | 3730 | | |
3680 | | - | |
| 3731 | + | |
3681 | 3732 | | |
3682 | 3733 | | |
3683 | 3734 | | |
| |||
0 commit comments