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_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_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
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 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 | |
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.