MicroFish/backend/app
harshitanand 0fa41a906b
fix: add max_items limit to fetch_all_edges to prevent unbounded memory growth (#513)
fetch_all_nodes already had a max_items guard (default 2000) but
fetch_all_edges had no such safeguard, allowing unbounded memory growth
on graphs with large numbers of edges.

Add _MAX_EDGES = 5000 constant and mirror the same loop-guard pattern
from fetch_all_nodes: cap the result list, emit a warning log, and
break pagination once the limit is reached.
2026-04-10 13:51:52 +05:30
..
api feat(SimulationAPI): add function to retrieve latest report ID for a given simulation 2026-01-09 16:04:35 +08:00
models Enhance backend functionality with OASIS simulation features 2025-12-01 15:03:44 +08:00
services feat(graph): implement pagination for fetching nodes and edges; add utility functions for streamlined data retrieval 2026-02-27 15:53:29 +08:00
utils fix: add max_items limit to fetch_all_edges to prevent unbounded memory growth (#513) 2026-04-10 13:51:52 +05:30
__init__.py Implement Report Agent for automated report generation and interaction 2025-12-09 15:10:55 +08:00
config.py fix(config): enable overriding of environment variables when loading .env file 2026-01-23 16:20:24 +08:00