Add RenderOptions and RenderErrorBehavior to ensure auth UI still loads with missing variables

This commit is contained in:
Gregory Schier
2025-10-04 06:29:29 -07:00
parent b4deae6e8d
commit 998b5cf78a
11 changed files with 246 additions and 78 deletions

View File

@@ -1,7 +1,7 @@
use crate::error::Error::UnknownModel;
use crate::error::Result;
use chrono::NaiveDateTime;
use log::warn;
use log::{debug, warn};
use serde::{Deserialize, Deserializer, Serialize};
use serde_yaml::{Mapping, Value};
use sha1::{Digest, Sha1};
@@ -86,7 +86,7 @@ impl<'de> Deserialize<'de> for SyncModel {
fn migrate_environment(obj: &mut Mapping) {
match (obj.get("base"), obj.get("parentModel")) {
(Some(Value::Bool(base)), None) => {
println!("Migrating legacy environment {}", serde_yaml::to_string(obj).unwrap());
debug!("Migrating legacy environment {}", serde_yaml::to_string(obj).unwrap());
if *base {
obj.insert("parentModel".into(), "workspace".into());
} else {