mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
httpd: Add threshold to project info
This commit is contained in:
committed by
cloudhead
parent
a736c5975f
commit
a2189cabe4
@@ -79,6 +79,7 @@ impl Context {
|
||||
Ok(project::Info {
|
||||
payload,
|
||||
delegates,
|
||||
threshold: doc.threshold,
|
||||
visibility: doc.visibility,
|
||||
head,
|
||||
issues,
|
||||
@@ -238,6 +239,7 @@ mod project {
|
||||
#[serde(flatten)]
|
||||
pub payload: Project,
|
||||
pub delegates: Vec<Value>,
|
||||
pub threshold: usize,
|
||||
pub visibility: Visibility,
|
||||
pub head: Oid,
|
||||
pub patches: cob::patch::PatchCounts,
|
||||
|
||||
@@ -94,6 +94,7 @@ async fn delegates_projects_handler(
|
||||
Some(Info {
|
||||
payload,
|
||||
delegates,
|
||||
threshold: id.doc.threshold,
|
||||
visibility: id.doc.visibility,
|
||||
head,
|
||||
issues,
|
||||
@@ -150,6 +151,7 @@ mod routes {
|
||||
"alias": "seed"
|
||||
}
|
||||
],
|
||||
"threshold": 1,
|
||||
"visibility": {
|
||||
"type": "public"
|
||||
},
|
||||
@@ -199,6 +201,7 @@ mod routes {
|
||||
"alias": "seed"
|
||||
}
|
||||
],
|
||||
"threshold": 1,
|
||||
"visibility": {
|
||||
"type": "public"
|
||||
},
|
||||
|
||||
@@ -154,6 +154,7 @@ async fn project_root_handler(
|
||||
payload,
|
||||
delegates,
|
||||
head,
|
||||
threshold: info.doc.threshold,
|
||||
visibility: info.doc.visibility,
|
||||
issues,
|
||||
patches,
|
||||
@@ -1015,6 +1016,7 @@ mod routes {
|
||||
"alias": "seed"
|
||||
}
|
||||
],
|
||||
"threshold": 1,
|
||||
"visibility": {
|
||||
"type": "public"
|
||||
},
|
||||
@@ -1055,6 +1057,7 @@ mod routes {
|
||||
"alias": "seed"
|
||||
}
|
||||
],
|
||||
"threshold": 1,
|
||||
"visibility": {
|
||||
"type": "public"
|
||||
},
|
||||
@@ -1095,6 +1098,7 @@ mod routes {
|
||||
"alias": "seed"
|
||||
}
|
||||
],
|
||||
"threshold": 1,
|
||||
"visibility": {
|
||||
"type": "public"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user