export: a dry run that predicts failures and exits as the real run would #11

Merged
jcoffey-dev merged 2 commits from feat/predictive-dry-run into main 2026-09-30 19:49:53 +00:00
Showing only changes of commit 1d63dfe25e - Show all commits
+5
View File
@@ -1,5 +1,6 @@
/* /*
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]> * SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
* SPDX-FileCopyrightText: 2026 John Coffey <[email protected]>
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0 OR MIT
*/ */
@@ -108,6 +109,10 @@ pub fn reconcile(
ty.jmap_name(), ty.jmap_name(),
id id
)); ));
} else if net.dry_run {
// The object only exists in the plan; claiming the
// default would be a write.
default_claimed = true;
} else { } else {
let mut req = crate::jmap::request::Request::new(); let mut req = crate::jmap::request::Request::new();
req.call( req.call(