diff options
| author | soryu <soryu@soryu.co> | 2026-01-16 12:23:49 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-16 12:23:49 +0000 |
| commit | 205ab8a223ddf6591a3e8bfc9108506502977c11 (patch) | |
| tree | d768063acff233dbeea223d7b6ea69d7e3038300 /makima/src/server/handlers | |
| parent | 05931d19bc0c161d0177c3f983d0cd903d5e8ae3 (diff) | |
| download | soryu-205ab8a223ddf6591a3e8bfc9108506502977c11.tar.gz soryu-205ab8a223ddf6591a3e8bfc9108506502977c11.zip | |
Fixup: use default api.makima.jp URL and fix default branch detection
Also add checkpointing/history
Diffstat (limited to 'makima/src/server/handlers')
| -rw-r--r-- | makima/src/server/handlers/repository_history.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/makima/src/server/handlers/repository_history.rs b/makima/src/server/handlers/repository_history.rs index c788d84..9c309c0 100644 --- a/makima/src/server/handlers/repository_history.rs +++ b/makima/src/server/handlers/repository_history.rs @@ -97,6 +97,14 @@ pub async fn get_repository_suggestions( let limit = params.limit.unwrap_or(10).min(50); // Cap at 50 for safety + tracing::debug!( + owner_id = %auth.owner_id, + source_type = ?params.source_type, + query = ?params.query, + limit = limit, + "Fetching repository suggestions" + ); + match repository::get_repository_suggestions( pool, auth.owner_id, @@ -107,6 +115,17 @@ pub async fn get_repository_suggestions( .await { Ok(entries) => { + // Debug log to help diagnose filtering issues + for entry in &entries { + tracing::debug!( + id = %entry.id, + name = %entry.name, + source_type = %entry.source_type, + has_url = entry.repository_url.is_some(), + has_path = entry.local_path.is_some(), + "Repository suggestion entry" + ); + } let total = entries.len() as i64; Json(RepositoryHistoryListResponse { entries, total }).into_response() } |
