Persist publish jobs (publish_jobs table) like bDS2 #86
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: Audit section 2.16.
bDS2: has a
publish_jobsDB table (../bDS2/priv/repo/migrations/20260424100817_add_backend_spec_compliance_persistence.exs~line 5, indexed by project_id) with aget_job/1API (../bDS2/lib/bds/publishing.ex:77) — publish jobs survive as queryable records.Current behaviour (RuDS):
crates/bds-core/src/engine/publishing.rsmodels PublishJob in memory only; nothing is persisted.specs/publishing.alliummodels the PublishJob entity but is silent on persistence, andspecs/schema.alliumomits the table (see companion spec-update issue).Task: Decide with the maintainer whether job persistence/history is wanted in RuDS. If yes: create the table with a proper Diesel migration (use the migration tooling, sqlite semantics, no hand-hacked SQL per AGENTS.md), matching bDS2's columns; write job rows through the upload lifecycle (pending→running→completed/failed with error); expose history where the UI shows publish state (functionality must be tied to UI). If no: close this and note the intentional divergence in specs/publishing.allium.
Acceptance: Either persisted jobs matching bDS2's shape + migration + UI surfacing, or documented decision in the spec.
Decision by maintainer: persisted jobs bring no value, follow the spec and current implementation and do not implement that feature, just clarify the spec that no persistence of jobs is needed.
decided this is not relevant.