Coverage for app / services / dashboards / __init__.py: 100%
2 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-10-31 11:21 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-10-31 11:21 +0000
1"""Dashboards — user-composed boards of widgets.
3``widgets`` holds the per-type strategy registry (what a widget accepts and,
4for dynamic types, how its cached result is produced); ``refresh`` owns the
5staleness rules and cache writes that turn those strategies into a tile's
6current value. Two callers share those rules: the scheduler's
7``dashboard_refresh`` job, and the API's refresh-on-view path.
8"""
10from .widgets import ( # noqa: F401
11 WidgetRenderer,
12 WidgetConfigError,
13 catalogue,
14 get_renderer,
15 register_widget,
16 validate_widget,
17)
18from .refresh import ( # noqa: F401
19 is_stale,
20 mark_refreshing,
21 refresh_widget,
22 refresh_widget_task,
23 stale_widgets,
24)