Optimise patch list command
So we donβt materialize the whole list multiple times especially when paginating. Mostly written by Finto, I was just driving.
π Workflow runs π Branch on GitHub
8 files changed
+111
-10
82560dbb
β
5052f0a9
modified Cargo.lock
@@ -4245,6 +4245,7 @@ version = "0.0.0"
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-tauri/Cargo.toml
@@ -17,6 +17,7 @@ tauri-build = { version = "2.0.1", features = ["isolation"] }
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-tauri/src/commands/cob/patch.rs
@@ -15,6 +15,8 @@ use radicle_types::traits::Profile;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -28,18 +30,15 @@ pub async fn list_patches(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -50,10 +49,10 @@ pub async fn list_patches(
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
| - | |
|
|
|
|
|
modified crates/radicle-types/src/domain/patch/models/patch.rs
@@ -1,7 +1,9 @@
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -668,3 +670,52 @@ impl FromRadicleAction<radicle::patch::Action> for Action {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-types/src/domain/patch/service.rs
@@ -5,6 +5,8 @@ use radicle::patch::PatchId;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -42,4 +44,11 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
modified crates/radicle-types/src/domain/patch/traits.rs
@@ -16,6 +16,11 @@ pub trait PatchStorage {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -29,4 +34,9 @@ pub trait PatchService {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
modified crates/radicle-types/src/error.rs
@@ -49,6 +49,9 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/outbound/sqlite.rs
@@ -10,7 +10,7 @@ use sqlite as sql;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,6 +34,33 @@ impl Sqlite {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|