Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle: Return individual results for repo in `repositories_by_id`
Merged did:key:z6MkkfM3...sVz5 opened 5 months ago

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.

did:key:z6MkkfM3...sVz5 opened with revision 300d7279 on base c268e809 +7 -7 5 months ago

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.

fintohaps pushed revision 2 6b17bdff on base c268e809 +10 -8 5 months ago

REVIEW: return an Iterator

Instead of collecting into a Vec, we should give the caller more power by allowing them to manipulate the returned Iterator. This can allow them to filter by the Result type, or partition, etc.

did:key:z6MkkfM3...sVz5 pushed revision 3 3732be97 on base c268e809 +16 -9 5 months ago

Add changelog entry

did:key:z6MkkfM3...sVz5 pushed revision 4 37108c2a on base c268e809 +15 -8 5 months ago

Revert markdown change in changelog

fintohaps merged revision 37108c2a at 6d0c571e 5 months ago