Files
tessera/crates/tessera-hub/src/api/mod.rs
Adnan Zahir 648c8c6a2a
Some checks failed
ci / rust (push) Has been cancelled
ci / supply-chain (push) Has been cancelled
ci / web (push) Has been cancelled
feat: undo a restore from the safety copy it took
- POST /refresh-runs accepts undo_of: restores the safety copy of a completed restore back onto the same
  target through the normal run engine (checks, countdown, progress, and a new safety copy so the undo can be
  undone); refused when something was restored after it or the copy is gone
- a safety copy is accepted as a source only for the target it was taken from (hub and agent both check)
- run views carry undo and undo_available; audited as refresh.undo_started
- the modal offers Undo last restore and, after a restore, Undo this restore
- proven with a real agent and PostgreSQL: restore, undo back to the original contents, undo of the undo

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:47:02 +07:00

29 lines
480 B
Rust

mod access;
#[cfg(test)]
mod access_tests;
#[cfg(test)]
mod auth_contract;
mod catalog;
#[cfg(test)]
mod credentials_tests;
#[cfg(test)]
mod export_tests;
mod gate;
mod jobs;
mod oidc;
#[cfg(test)]
mod oidc_tests;
mod orbit;
mod refresh;
#[cfg(test)]
mod refresh_tests;
mod relations;
mod restore;
mod routes;
mod session;
pub use orbit::run_orbit_internal;
pub(crate) use relations::identity_facts;
pub(crate) use restore::{artifact, rollback_artifact};
pub use routes::router;