graflo.architecture.evolution.apply¶
Apply manifest evolution operations to a copy of a :class:~graflo.architecture.contract.manifest.GraphManifest.
apply_add_edge_properties(manifest, op)
¶
Append new edge properties to existing relations.
Source code in graflo/architecture/evolution/apply.py
apply_add_inverse_edges(manifest, op)
¶
Add inverse edges for mapped relations across schema and ingestion resources.
Source code in graflo/architecture/evolution/apply.py
1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 | |
apply_add_vertex_properties(manifest, op)
¶
Append new vertex properties to existing vertices.
Source code in graflo/architecture/evolution/apply.py
apply_evolution(manifest, ops, *, bump_version='minor', finish_init=True, strict_references=False, dynamic_edge_feedback=False)
¶
Return a deep copy of manifest with ops applied and optionally re-initialized.
Compare before/after contract identity with :func:graflo.migrate.io.manifest_hash
(stable hash over schema, ingestion_model, and bindings blocks).
ComposeManifestsOp is rejected at dispatch — use
:func:~graflo.architecture.evolution.compose.compose_manifests instead.
Source code in graflo/architecture/evolution/apply.py
apply_manifest_ops_inplace(manifest, ops)
¶
Apply each evolution op to manifest in place.
Does not copy the manifest, bump schema version, or call :meth:GraphManifest.finish_init.
Callers that need re-validation after mutation should invoke finish_init themselves.
ComposeManifestsOp is rejected at dispatch — use
:func:~graflo.architecture.evolution.compose.compose_manifests instead.
Source code in graflo/architecture/evolution/apply.py
apply_merge_edges(manifest, op)
¶
Merge edge relation names into one canonical relation.
Source code in graflo/architecture/evolution/apply.py
apply_merge_vertices(manifest, op)
¶
Mutate manifest in place: merge source vertices into into.
Source code in graflo/architecture/evolution/apply.py
apply_project_manifest(manifest, op)
¶
Project manifest to surviving vertices/edges with consistent cascade.
Source code in graflo/architecture/evolution/apply.py
apply_remove_edge_ids(manifest, removed_edge_ids)
¶
Remove edges by logical triple and prune related references.
Source code in graflo/architecture/evolution/apply.py
apply_remove_edge_properties(manifest, op)
¶
Remove edge properties by relation and clean references.
Source code in graflo/architecture/evolution/apply.py
apply_remove_edges(manifest, op)
¶
Remove edges by relation name and prune related references.
Source code in graflo/architecture/evolution/apply.py
apply_remove_vertex_properties(manifest, op)
¶
Remove vertex properties and clean up ingestion/db profile references.
Source code in graflo/architecture/evolution/apply.py
634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 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 | |
apply_remove_vertices(manifest, op)
¶
Mutate manifest in place: cascade-remove vertices (schema, ingestion, bindings).
Source code in graflo/architecture/evolution/apply.py
apply_rename_edge_properties(manifest, op)
¶
Rename edge properties by relation and propagate references.
Source code in graflo/architecture/evolution/apply.py
apply_rename_relations(manifest, op)
¶
Rename logical relation names across schema/ingestion/db profile.
Source code in graflo/architecture/evolution/apply.py
apply_rename_resources(manifest, op)
¶
Rename ingestion resources and bindings references.
Source code in graflo/architecture/evolution/apply.py
apply_rename_vertex_properties(manifest, op)
¶
Rename vertex properties (and their references) across the manifest.
Mutates manifest in place:
- Rewrites schema
Field.nameandvertex.identity. - Rewrites :class:
DatabaseProfilefield references (vertex_indexes, edge_specs.indexes, default_property_values). - Rewrites resource pipelines so that
VertexActor.fromcovers the rename andTransformActor.renameproduces the renamed property (see :func:rewrite_vertex_field_names_in_pipeline). - Rewrites
Resource.extra_weights/vertex_weights(and anyvertex_weightsembedded inedgepipeline steps).
Source code in graflo/architecture/evolution/apply.py
apply_rename_vertices(manifest, op)
¶
Rename logical vertex names across schema/ingestion/bindings.
Source code in graflo/architecture/evolution/apply.py
apply_sanitize(manifest, op)
¶
Apply DB-flavor-specific sanitization to manifest in place.
Composes:
- Storage-name sanitization on :class:
DatabaseProfile. - Reserved-word vertex field renames (via
apply_rename_vertex_properties). - TigerGraph identity normalization (cross-relation), propagated to ingestion via the same field-rename code path.