MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sandbox_visible

Method sandbox_visible

atomic-repository/src/repository/remote_cache.rs:434–445  ·  view source on GitHub ↗

The visible change ids of `view`, sorted.

(
        &self,
        txn: &atomic_core::pristine::ReadTxn,
        view: &atomic_core::pristine::ViewState,
    )

Source from the content-addressed store, hash-verified

432impl Repository {
433 /// The visible change ids of `view`, sorted.
434 fn sandbox_visible(
435 &self,
436 txn: &atomic_core::pristine::ReadTxn,
437 view: &atomic_core::pristine::ViewState,
438 ) -> Result<Vec<u64>, RepositoryError> {
439 let mut ids: Vec<u64> = super::graph_visibility_closure(txn, view)?
440 .iter_dependency_first()
441 .map(|id| id.get())
442 .collect();
443 ids.sort_unstable();
444 Ok(ids)
445 }
446
447 /// `view`'s effective state: what a change recorded against the view is
448 /// fenced on, and what [`Repository::insert_submitted_change`] compares

Callers 2

export_sandbox_sliceMethod · 0.80

Calls 4

graph_visibility_closureFunction · 0.85
iter_dependency_firstMethod · 0.80
getMethod · 0.65
collectMethod · 0.45

Tested by

no test coverage detected