httpd: Add threshold to project info
This commit is contained in:
parent
c4d4ad7008
commit
d04d9d7d1f
|
|
@ -79,6 +79,7 @@ impl Context {
|
||||||
Ok(project::Info {
|
Ok(project::Info {
|
||||||
payload,
|
payload,
|
||||||
delegates,
|
delegates,
|
||||||
|
threshold: doc.threshold,
|
||||||
visibility: doc.visibility,
|
visibility: doc.visibility,
|
||||||
head,
|
head,
|
||||||
issues,
|
issues,
|
||||||
|
|
@ -238,6 +239,7 @@ mod project {
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub payload: Project,
|
pub payload: Project,
|
||||||
pub delegates: Vec<Value>,
|
pub delegates: Vec<Value>,
|
||||||
|
pub threshold: usize,
|
||||||
pub visibility: Visibility,
|
pub visibility: Visibility,
|
||||||
pub head: Oid,
|
pub head: Oid,
|
||||||
pub patches: cob::patch::PatchCounts,
|
pub patches: cob::patch::PatchCounts,
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ async fn delegates_projects_handler(
|
||||||
Some(Info {
|
Some(Info {
|
||||||
payload,
|
payload,
|
||||||
delegates,
|
delegates,
|
||||||
|
threshold: id.doc.threshold,
|
||||||
visibility: id.doc.visibility,
|
visibility: id.doc.visibility,
|
||||||
head,
|
head,
|
||||||
issues,
|
issues,
|
||||||
|
|
@ -150,6 +151,7 @@ mod routes {
|
||||||
"alias": "seed"
|
"alias": "seed"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"threshold": 1,
|
||||||
"visibility": {
|
"visibility": {
|
||||||
"type": "public"
|
"type": "public"
|
||||||
},
|
},
|
||||||
|
|
@ -199,6 +201,7 @@ mod routes {
|
||||||
"alias": "seed"
|
"alias": "seed"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"threshold": 1,
|
||||||
"visibility": {
|
"visibility": {
|
||||||
"type": "public"
|
"type": "public"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,7 @@ async fn project_root_handler(
|
||||||
payload,
|
payload,
|
||||||
delegates,
|
delegates,
|
||||||
head,
|
head,
|
||||||
|
threshold: info.doc.threshold,
|
||||||
visibility: info.doc.visibility,
|
visibility: info.doc.visibility,
|
||||||
issues,
|
issues,
|
||||||
patches,
|
patches,
|
||||||
|
|
@ -1015,6 +1016,7 @@ mod routes {
|
||||||
"alias": "seed"
|
"alias": "seed"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"threshold": 1,
|
||||||
"visibility": {
|
"visibility": {
|
||||||
"type": "public"
|
"type": "public"
|
||||||
},
|
},
|
||||||
|
|
@ -1055,6 +1057,7 @@ mod routes {
|
||||||
"alias": "seed"
|
"alias": "seed"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"threshold": 1,
|
||||||
"visibility": {
|
"visibility": {
|
||||||
"type": "public"
|
"type": "public"
|
||||||
},
|
},
|
||||||
|
|
@ -1095,6 +1098,7 @@ mod routes {
|
||||||
"alias": "seed"
|
"alias": "seed"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"threshold": 1,
|
||||||
"visibility": {
|
"visibility": {
|
||||||
"type": "public"
|
"type": "public"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue