chore: checkpoint turso and ai runtime work
This commit is contained in:
@@ -3287,7 +3287,7 @@ fn annotate_local_attachment_refs_authorization(
|
||||
.control_plane()
|
||||
.resolve_access(&context.auth.actor_id, resolved_uri)
|
||||
.map_err(|error| {
|
||||
WebError::internal(format!("SQLite 控制面附件授权解析失败: {error}"))
|
||||
WebError::internal(format!("control-plane 附件授权解析失败: {error}"))
|
||||
})?;
|
||||
object.insert(
|
||||
"authorized".to_string(),
|
||||
@@ -3816,7 +3816,7 @@ mod tests {
|
||||
role: None,
|
||||
password_hash: None,
|
||||
})
|
||||
.expect("upsert sqlite reader");
|
||||
.expect("upsert control-plane reader");
|
||||
state
|
||||
.control_plane()
|
||||
.grant_directory_access(DirectoryGrantInput {
|
||||
@@ -3834,7 +3834,7 @@ mod tests {
|
||||
source: "unit-test".into(),
|
||||
created_by: None,
|
||||
})
|
||||
.expect("grant sqlite read");
|
||||
.expect("grant control-plane read");
|
||||
}
|
||||
|
||||
fn app_with_unreachable_convex_without_fixture() -> axum::Router {
|
||||
@@ -4706,7 +4706,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn page_aggregate_endpoint_allows_sqlite_granted_local_folder_read_access() {
|
||||
async fn page_aggregate_endpoint_allows_control_plane_granted_local_folder_read_access() {
|
||||
let root = std::env::temp_dir().join(format!(
|
||||
"mnote-local-page-aggregate-grant-{}",
|
||||
std::process::id()
|
||||
@@ -4753,7 +4753,7 @@ mod tests {
|
||||
Some(&root_uri),
|
||||
)
|
||||
.await
|
||||
.expect("sqlite read grant can open local page aggregate");
|
||||
.expect("control-plane read grant can open local page aggregate");
|
||||
|
||||
let _ = std::fs::remove_dir_all(&root);
|
||||
|
||||
@@ -4766,7 +4766,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn local_page_aggregate_marks_attachment_refs_authorization_from_sqlite_grants() {
|
||||
async fn local_page_aggregate_marks_attachment_refs_authorization_from_control_plane_grants() {
|
||||
let root = temp_root("mnote-local-page-aggregate-attachment-auth-root");
|
||||
let allowed_external_root = temp_root("mnote-local-page-aggregate-attachment-auth-allowed");
|
||||
let denied_external_root = temp_root("mnote-local-page-aggregate-attachment-auth-denied");
|
||||
@@ -4935,7 +4935,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn local_folder_page_aggregate_prefers_sqlite_ui_preference_over_default_title_header() {
|
||||
async fn local_folder_page_aggregate_prefers_control_plane_ui_preference_over_default_title_header() {
|
||||
let root = std::env::temp_dir().join(format!(
|
||||
"mnote-local-page-aggregate-ui-pref-{}",
|
||||
std::process::id()
|
||||
@@ -5118,7 +5118,7 @@ mod tests {
|
||||
.await
|
||||
.expect("body");
|
||||
let get_payload: Value = serde_json::from_slice(&get_body).expect("json");
|
||||
assert_eq!(get_payload["result"]["source"], "sqlite");
|
||||
assert_eq!(get_payload["result"]["source"], "control-plane");
|
||||
assert_eq!(
|
||||
get_payload["result"]["state"]["expandedRelativePaths"][0],
|
||||
"design/05-editor-mainline"
|
||||
|
||||
Reference in New Issue
Block a user