@moh-sso/report-scheduler 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -10
- package/dist/_types/apps/report-scheduler/src/api/index.d.ts +179 -179
- package/dist/_types/packages/api/src/api/baseApi.d.ts +1 -1
- package/dist/_types/packages/auth/src/api/auth.api.d.ts +21 -21
- package/dist/_types/packages/auth/src/api/health-context.api.d.ts +19 -19
- package/dist/_types/packages/auth/src/auth/auth.selectors.d.ts +22 -22
- package/dist/_types/packages/state/src/clients/clients.selectors.d.ts +17 -17
- package/dist/_types/packages/state/src/index.d.ts +2 -2
- package/dist/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +2 -1
- package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +2 -1
- package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +3 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Portal module for scheduling reports that are defined and generated by Health BI.
|
|
4
4
|
|
|
5
5
|
- Frontend: `frontend/apps/report-scheduler`, mounted at `/apps/dwh/report-scheduler`.
|
|
6
|
-
- Backend: `backend/
|
|
6
|
+
- Backend: `backend/modules/report-scheduler`.
|
|
7
7
|
- Parent system: `data-statistics`.
|
|
8
8
|
- Access role: `data-statistics:report-scheduler_access`.
|
|
9
9
|
|
|
@@ -37,19 +37,22 @@ The current module supports:
|
|
|
37
37
|
- Server-backed schedule filtering by search and enabled/paused state.
|
|
38
38
|
- Server-backed execution filtering by report search and execution status.
|
|
39
39
|
- Bounded history/inbox queries to avoid unbounded scheduler UI loads.
|
|
40
|
-
- Admin scheduler metrics endpoint for operations tooling
|
|
40
|
+
- Admin scheduler metrics endpoint for operations tooling (`GET /api/v1/report-scheduler/metrics`,
|
|
41
|
+
which requires `metrics:read` or `report_scheduler:manage`).
|
|
41
42
|
|
|
42
43
|
## Health BI integration
|
|
43
44
|
|
|
44
|
-
The
|
|
45
|
-
`
|
|
46
|
-
|
|
47
|
-
portal session and module permissions. Background jobs
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
The backend Health BI client (`backend/modules/report-scheduler/health_bi.go`) calls the
|
|
46
|
+
base URL set by `HEALTH_BI_BASE_URL` (empty by default; `infra/env/prod.env.example` sets
|
|
47
|
+
`https://dashboards.health.go.ug/report-browser`), within the shared Integrated Health Portal
|
|
48
|
+
Keycloak realm. Users retain their portal session and module permissions. Background jobs
|
|
49
|
+
use a dedicated backend Keycloak service account (`HEALTH_BI_KEYCLOAK_CLIENT_ID`, default
|
|
50
|
+
`report-scheduler-worker`, and `HEALTH_BI_KEYCLOAK_CLIENT_SECRET`) with automatically
|
|
51
|
+
refreshed bearer tokens. See the
|
|
52
|
+
[backend configuration and contract](../../../docs/scheduler-backend.md).
|
|
50
53
|
|
|
51
54
|
The form loads report detail before saving and offers only supported periods and
|
|
52
|
-
formats. The current
|
|
55
|
+
formats. The current Health BI integration supports PDF/CSV and whole calendar periods in
|
|
53
56
|
`Africa/Kampala`; daily reporting periods are unsupported. Recurrence frequency
|
|
54
57
|
is independent of the period being exported. Nested report IDs use query
|
|
55
58
|
parameters so category paths survive routing. Additional filters without inline
|
|
@@ -80,7 +83,7 @@ The local microfrontend uses port 4115 and relies on the portal login session.
|
|
|
80
83
|
|
|
81
84
|
## Access
|
|
82
85
|
|
|
83
|
-
The backend requires the `data-statistics` parent system plus the relevant granular scheduler permission. Apply/sync the RBAC seed after permission changes:
|
|
86
|
+
The backend requires the `data-statistics` parent system plus the relevant granular scheduler permission. Apply/sync the RBAC seed after permission changes (run from `backend/`):
|
|
84
87
|
|
|
85
88
|
```sh
|
|
86
89
|
go run ./cmd/cli system-rbac validate --file config/system-rbac.seed.yaml
|