http: Only count publicly seeded repositories
Previously the /api/v1/stats endpoint would count any repository that is in the storage regardless of whether the repository is publicly seeded or not.
5 files changed
+59
-19
6f134ca6
→
13850510
modified radicle-httpd/src/api/v1/delegates.rs
@@ -167,7 +167,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -195,7 +195,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -245,7 +245,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -273,7 +273,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/node.rs
@@ -112,7 +112,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -206,6 +206,21 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
modified radicle-httpd/src/api/v1/projects.rs
@@ -760,7 +760,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -788,7 +788,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -829,7 +829,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -857,7 +857,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -898,7 +898,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -924,7 +924,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -937,7 +937,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -964,7 +964,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/stats.rs
@@ -4,7 +4,7 @@ use axum::routing::get;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -18,9 +18,12 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -37,6 +40,6 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
modified radicle-httpd/src/test.rs
@@ -7,6 +7,7 @@ use std::sync::Arc;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -17,8 +18,8 @@ use radicle::git::{raw as git2, RefString};
|
|
|
|
|
|
| - | |
|
|
| + | |
|
|
|
|
|
@@ -52,6 +53,18 @@ pub fn profile(home: &Path, seed: [u8; 32]) -> radicle::Profile {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -216,6 +229,11 @@ fn seed_with_signer<G: Signer>(dir: &Path, profile: radicle::Profile, signer: &G
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -291,6 +309,10 @@ fn seed_with_signer<G: Signer>(dir: &Path, profile: radicle::Profile, signer: &G
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|