radicle: Return individual results for repo in `repositories_by_id`
Change repositories_by_id to return Vec<Result<RepositoryInfo, RepositoryError>>
instead of Result<Vec<RepositoryInfo>, RepositoryError>.
This allows callers to handle failures on a per-repository basis rather than having the
entire operation fail if a single repository lookup fails.
Previously, the method would stop processing and return an error as soon as any repository failed to load. Now it processes all repositories and returns individual results, making the API more resilient and giving callers more control over error handling.
2 files changed
+15
-8
c268e809
→
6d0c571e
modified crates/radicle/CHANGELOG.md
@@ -18,6 +18,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git.rs
@@ -236,11 +236,14 @@ impl Storage {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -248,15 +251,14 @@ impl Storage {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|