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
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 | |
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).
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.
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
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 | |
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.
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.
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.