feat(silo): push DAG on save and commit (#216) #224

Merged
forbes merged 2 commits from feat/silo-dag-on-save into main 2026-02-14 21:14:03 +00:00
Owner

Wires the DAG extraction engine into save and commit workflows.

Changes

Adds _push_dag_after_upload(doc, part_number, revision_number) helper in silo_commands.py that:

  1. Imports extract_dag from dag.py (#214)
  2. Extracts nodes + edges from the active document
  3. Calls _client.push_dag() (#215) to sync to the server
  4. Logs node/edge counts on success
  5. Logs a warning on failure — never blocks the save

Hooked into:

  • Silo_Save.Activated() — after successful MinIO upload
  • Silo_Commit.Activated() — after successful revision creation

Depends On

  • #214 (DAG extraction engine) — merged
  • #215 (client DAG API methods) — PR #223

Closes #216

Wires the DAG extraction engine into save and commit workflows. ## Changes Adds `_push_dag_after_upload(doc, part_number, revision_number)` helper in `silo_commands.py` that: 1. Imports `extract_dag` from `dag.py` (#214) 2. Extracts nodes + edges from the active document 3. Calls `_client.push_dag()` (#215) to sync to the server 4. Logs node/edge counts on success 5. Logs a warning on failure — **never blocks the save** Hooked into: - **`Silo_Save.Activated()`** — after successful MinIO upload - **`Silo_Commit.Activated()`** — after successful revision creation ## Depends On - #214 (DAG extraction engine) — merged - #215 (client DAG API methods) — PR #223 Closes #216
forbes added 2 commits 2026-02-14 21:11:23 +00:00
feat(silo): update silo submodule — DAG API methods (#215)
Some checks failed
Build and Test / build (pull_request) Has been cancelled
4a54e9b7cd
Adds push_dag() and get_dag() to SiloClient:
- push_dag: PUT /api/items/{pn}/dag with nodes + edges
- get_dag: GET /api/items/{pn}/dag with optional revision filter

Closes #215
feat(silo): update silo submodule — push DAG on save/commit (#216)
Some checks failed
Build and Test / build (pull_request) Has been cancelled
fa92f5a4d9
Wires DAG extraction into Silo_Save and Silo_Commit commands.
After successful file upload, extracts the feature DAG and pushes
it to the server. Failures warn but never block the save.

Closes #216
forbes merged commit 4cb8a3a1ec into main 2026-02-14 21:14:03 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#224