Indexed Repositories
+Monitored Repositories
{{ summary.repo_count }}
diff --git a/backend/app/api/v1/endpoint_modules/ogm.py b/backend/app/api/v1/endpoint_modules/ogm.py index 9b986d6..f5724d6 100644 --- a/backend/app/api/v1/endpoint_modules/ogm.py +++ b/backend/app/api/v1/endpoint_modules/ogm.py @@ -59,9 +59,15 @@ async def ogm_repo_dashboard(request: Request): catalog = {r["ogm_repo_name"]: r for r in await ogm_repo.list_public_repo_summaries()} dashboard_repos = [] enabled_repos = 0 - for name, count in sorted(index_status["repo_counts"].items()): - if count <= 0: - continue + indexed_counts = index_status["repo_counts"] + visible_names = {name for name, count in indexed_counts.items() if count > 0} + visible_names.update( + name + for name, repo in catalog.items() + if repo.get("ogm_enabled") and not repo.get("ogm_archived", False) + ) + for name in sorted(visible_names): + count = indexed_counts.get(name, 0) repo = catalog.get(name, {"ogm_repo_name": name}) enabled = bool(repo.get("ogm_enabled")) and not repo.get("ogm_archived", False) scheduled = enabled and repo.get("ogm_watch_mode") in { @@ -89,6 +95,15 @@ async def ogm_repo_dashboard(request: Request): "thumbnail_refresh": "Refreshing thumbnails", "dumps": "Saving harvest files", }.get(repo.get("last_run_stage"), "Processing"), + "display_harvest_status": repo.get("last_crawl_status") + or ( + "Awaiting first harvest" + if enabled + and not repo.get("last_crawl_started_at") + and not repo.get("last_successful_harvest_at") + and count == 0 + else "Unknown" + ), "source_status": "Nightly" if scheduled else "Not scheduled", "indexed_record_count": count, } @@ -112,7 +127,7 @@ async def ogm_repo_dashboard(request: Request): "
OpenGeoMetadata Harvest Monitor
-- Repositories with records in the live search index. Each nightly sync fetches the latest + Enabled collections appear here as soon as they are discovered, including those awaiting their first harvest. Each nightly sync fetches the latest metadata, imports it, and updates the index. Use Search API to browse a repository’s records.
@@ -43,7 +43,7 @@Indexed Repositories
+Monitored Repositories
{{ summary.repo_count }}
Started {{ repo.display_harvest_started_at }}
@@ -120,7 +120,7 @@