@moh-sso/report-scheduler 0.6.1 → 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 CHANGED
@@ -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 `dwh_visualization` scheduler adapter uses the application base
45
- `https://dashboards.health.go.ug/report-browser`, within the shared Integrated
46
- Health Portal Keycloak realm. Users retain their
47
- portal session and module permissions. Background jobs use a dedicated backend
48
- Keycloak service account with automatically refreshed bearer tokens. See the
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
49
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 adapter supports PDF/CSV and whole calendar periods in
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