radicle: implement caching for issues and patches
modified radicle-httpd/src/api.rs
@@ -9,6 +9,8 @@ use axum::http::Method;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -60,8 +62,8 @@ impl Context {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/error.rs
@@ -30,6 +30,14 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -38,6 +46,10 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -123,6 +135,7 @@ impl IntoResponse for Error {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/delegates.rs
@@ -5,10 +5,10 @@ use axum::response::IntoResponse;
|
|
|
|
|
|
| - | |
| - | |
|
|
| + | |
|
|
| + | |
|
|
|
|
|
@@ -44,7 +44,6 @@ async fn delegates_projects_handler(
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -73,13 +72,13 @@ async fn delegates_projects_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/projects.rs
@@ -14,7 +14,10 @@ use serde::{Deserialize, Serialize};
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -126,13 +129,13 @@ async fn project_root_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -587,9 +590,9 @@ async fn issues_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -639,7 +642,7 @@ async fn issue_create_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -672,7 +675,7 @@ async fn issue_update_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -723,7 +726,9 @@ async fn issue_handler(
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -756,7 +761,7 @@ async fn patch_create_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -795,7 +800,7 @@ async fn patch_update_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -940,9 +945,9 @@ async fn patches_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -968,9 +973,8 @@ async fn patch_handler(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/test.rs
@@ -11,18 +11,16 @@ use serde_json::Value;
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -231,7 +229,7 @@ fn seed_with_signer<G: Signer>(dir: &Path, profile: radicle::Profile, signer: &G
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -245,7 +243,7 @@ fn seed_with_signer<G: Signer>(dir: &Path, profile: radicle::Profile, signer: &G
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|