Skip to content

Commit eb470b8

Browse files
author
Mike Storey
committed
Fix: accurate collection failure reporting by excluding overall_status from error count
1 parent 69f6f3b commit eb470b8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stage0_mongodb_api/managers/config_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def process_all_collections(self) -> Dict[str, List[Dict]]:
223223
"collections_processed": len(self.collection_configs),
224224
"collections_failed": sum(1 for result in results.values()
225225
if any(isinstance(op, dict) and op.get("status") == "error"
226+
and op.get("operation") != "overall_status"
226227
for op in result))
227228
},
228229
"status": overall_status

0 commit comments

Comments
 (0)