feat: repo list search, header sort, pagination (stage 6)
- list_repos: Pulp next 페이지 끝까지 순회 (첫-페이지-only 누락 수정) - BFF 메모리 검색(이름)·정렬(이름/검증/버전/패키지/동기화)·페이지네이션(20/페이지) - GET /repos/table 조각: 검색창은 표 밖(포커스 유지), 정렬헤더/페이저는 표 안, hx-include 로 검색어·정렬상태 상호 전송 - 폰트 재조정: 데이터 셀 14px, 헤더 13px, 배지/액션버튼 14px (동기화 버튼 대비 균형) - 버전 페이지 제목↔검증상세 마진, 데모 저장소 26개로 확장 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -62,9 +62,14 @@ class PulpClient:
|
||||
return self.get(f"{API_PREFIX}/status/")
|
||||
|
||||
def list_repos(self) -> list[dict[str, Any]]:
|
||||
"""RPM 저장소 목록: GET /pulp/api/v3/repositories/rpm/rpm/ → results."""
|
||||
data = self.get(f"{API_PREFIX}/repositories/rpm/rpm/")
|
||||
return data.get("results", [])
|
||||
"""RPM 저장소 전체 목록. Pulp 페이지네이션(next)을 끝까지 따라가 모두 모은다."""
|
||||
results: list[dict[str, Any]] = []
|
||||
path: str | None = f"{API_PREFIX}/repositories/rpm/rpm/?limit=100"
|
||||
while path:
|
||||
data = self.get(path)
|
||||
results.extend(data.get("results", []))
|
||||
path = data.get("next") # 절대 URL/상대경로 모두 httpx가 처리
|
||||
return results
|
||||
|
||||
def get_version(self, version_href: str) -> dict[str, Any]:
|
||||
"""RepositoryVersion 단건 조회 (href 기준). content_summary 등 포함."""
|
||||
|
||||
Reference in New Issue
Block a user