Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic: Program Registries Phase 2 #7231

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

tcaiger
Copy link
Contributor

@tcaiger tcaiger commented Feb 17, 2025

Epic: Program Registries Phase 2

  • Deploy to Tamanu Internal

* Update programRegistry.stories.jsx

* update form stories

* refactor program registry fetch

* Update forms.stories.jsx

* feat(tamanuWeb): SAV-869: Condition category field model (#7196)

* add condition category field

* remove white space changes

* feat(tamanuWeb): SAV-869: Add program registry condition category field (#7189)

* Update PatientProgramRegistryForm.jsx

* Update PatientInfoPane.jsx

* update form data state

* data migration

* mobile migration

* docs

* Update patient_program_registration_conditions.md

* refactor for usability

* Update patient_program_registration_conditions.md

* Update PatientProgramRegistration.test.js

* clear category on condition clear

* remove console log

* Update programRegistry.stories.jsx

* add missing translations

* Update PatientProgramRegistryForm.jsx

* fix up queries
Copy link

github-actions bot commented Feb 18, 2025

Android builds 📱

Copy link

github-actions bot commented Feb 18, 2025

🍹 up on tamanu-on-k8s/bes/tamanu-on-k8s/epic-program-registries

Pulumi report
   Updating (bes/epic-program-registries)

View Live: https://app.pulumi.com/bes/tamanu-on-k8s/epic-program-registries/updates/5

@ Updating....

@ Updating......
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read pulumi:pulumi:StackReference bes/k8s-core/tamanu-internal-main
@ Updating....
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read pulumi:pulumi:StackReference bes/k8s-core/tamanu-internal-main
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Using tailscale proxy https://k8s-operator-tamanu-internal-main.tail53aef.ts.net
@ Updating....
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read pulumi:pulumi:StackReference bes/core/tamanu-internal
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Waiting for central-db...
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Waiting for facility-1-db...
~  kubernetes:apps/v1:Deployment facility-2-web updating (0s) [diff: ~spec]
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Waiting for facility-2-db...
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read pulumi:pulumi:StackReference bes/core/tamanu-internal
~  kubernetes:apps/v1:Deployment central-web updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-1-web updating (0s) [diff: ~spec]
@ Updating....
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read kubernetes:core/v1:ConfigMap actual-provisioning
++ kubernetes:batch/v1:Job central-migrator creating replacement (0s) [diff: ~spec]
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Secret facility-1-db-superuser not found or not ready: Error: HTTP-Code: 404
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Message: Unknown API Status Code!
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Body: "{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"secrets \\\"facility-1-db-superuser\\\" not found\",\"reason\":\"NotFound\",\"details\":{\"name\":\"facility-1-db-superuser\",\"kind\":\"secrets\"},\"code\":404}
"
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Headers: {"audit-id":"dfad319a-3d32-491a-9b37-cba2121d74a1","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Fri, 21 Feb 2025 06:10:53 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Secret central-db-superuser not found or not ready: Error: HTTP-Code: 404
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Message: Unknown API Status Code!
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Body: "{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"secrets \\\"central-db-superuser\\\" not found\",\"reason\":\"NotFound\",\"details\":{\"name\":\"central-db-superuser\",\"kind\":\"secrets\"},\"code\":404}
"
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Headers: {"audit-id":"fbe82970-002e-4c9d-8320-26f9f493ff7b","cache-control":"no-cache, private","connection":"close","content-length":"214","content-type":"application/json","date":"Fri, 21 Feb 2025 06:10:53 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Secret facility-2-db-superuser not found or not ready: Error: HTTP-Code: 404
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Message: Unknown API Status Code!
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Body: "{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"secrets \\\"facility-2-db-superuser\\\" not found\",\"reason\":\"NotFound\",\"details\":{\"name\":\"facility-2-db-superuser\",\"kind\":\"secrets\"},\"code\":404}
"
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Headers: {"audit-id":"72026c97-49d0-42a5-ad7a-8db9d6c498d2","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Fri, 21 Feb 2025 06:10:53 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read kubernetes:core/v1:ConfigMap actual-provisioning
++ kubernetes:batch/v1:Job central-migrator creating replacement (0s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-web updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
@ Updating....
++ kubernetes:batch/v1:Job central-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-93c952a9" to start
++ kubernetes:batch/v1:Job central-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-93c952a9" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
~  kubernetes:apps/v1:Deployment central-web updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (0s) [diff: ~spec]
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-1-web updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (0s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (0s) [diff: ~spec]; 
@ Updating....
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-ff33bd35" to start
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-ff33bd35" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-461c6037" to start
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-461c6037" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
@ Updating...........
~  kubernetes:apps/v1:Deployment central-web updating (11s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-web-9c584157-75fb5ddbf-r74xb]: containers with unready status: [http]
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-web updating (11s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-web-cf57038c-5897ffc655-hxl9q]: containers with unready status: [http]
@ Updating....
++ kubernetes:batch/v1:Job central-migrator creating replacement (11s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-migrator-93c952a9-tf24q]: Container "migrator" completed with exit code 0
@ Updating.....
++ kubernetes:batch/v1:Job central-migrator creating replacement (13s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-93c952a9" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
++ kubernetes:batch/v1:Job central-migrator creating replacement (14s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-93c952a9" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job central-migrator creating replacement (14s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-migrator created replacement (14s) [diff: ~spec]; 
+- kubernetes:batch/v1:Job central-migrator replacing (0s) [diff: ~spec]; 
+- kubernetes:batch/v1:Job central-migrator replaced (0.00s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-provisioner creating replacement (0s) [diff: ~spec]
@ Updating....
++ kubernetes:batch/v1:Job central-provisioner creating replacement (0s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-web updating (15s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
++ kubernetes:batch/v1:Job central-provisioner creating replacement (1s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-49765706" to start
++ kubernetes:batch/v1:Job central-provisioner creating replacement (1s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-49765706" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-web updating (17s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
@ Updating......
~  kubernetes:apps/v1:Deployment facility-1-web updating (19s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
@ Updating....
~  kubernetes:apps/v1:Deployment central-web updating (21s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-web-9c584157-75fb5ddbf-rwqvj]: containers with unready status: [http]
@ Updating......
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (21s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-migrator-461c6037-57xng]: Container "migrator" completed with exit code 0
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (21s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-2-migrator-ff33bd35-tspk8]: Container "migrator" completed with exit code 0
@ Updating....
++ kubernetes:batch/v1:Job central-provisioner creating replacement (9s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-provisioner-49765706-rgftt]: Container "provisioner" completed with exit code 0
@ Updating....
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (23s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-461c6037" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (24s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-ff33bd35" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (24s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-ff33bd35" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (24s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (24s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-461c6037" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (24s) [diff: ~spec]; 
@ Updating....
++ kubernetes:batch/v1:Job facility-2-migrator created replacement (24s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job facility-1-migrator created replacement (24s) [diff: ~spec]; 
+- kubernetes:batch/v1:Job facility-2-migrator replacing (0s) [diff: ~spec]; 
+- kubernetes:batch/v1:Job facility-2-migrator replaced (0.00s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-sync updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-2-api updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (0s) [diff: ~spec]
+- kubernetes:batch/v1:Job facility-1-migrator replacing (0s) [diff: ~spec]; 
+- kubernetes:batch/v1:Job facility-1-migrator replaced (0.00s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-provisioner creating replacement (11s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-49765706" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-1-api updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-1-sync updating (0s) [diff: ~spec]
++ kubernetes:batch/v1:Job central-provisioner creating replacement (11s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-49765706" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job central-provisioner creating replacement (11s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-provisioner created replacement (11s) [diff: ~spec]; 
@ Updating....
+- kubernetes:batch/v1:Job central-provisioner replacing (0s) [diff: ~spec]; 
+- kubernetes:batch/v1:Job central-provisioner replaced (0.00s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-tasks updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment central-fhir-resolver updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment central-api updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-2-sync updating (1s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment facility-2-sync updating (1s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "facility-2-sync"
@ Updating......
~  kubernetes:apps/v1:Deployment facility-2-web updating (30s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-2-web-d0b15768-67d4df66c6-g2gqp]: containers with unready status: [http]
~  kubernetes:apps/v1:Deployment facility-2-api updating (4s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment facility-1-api updating (4s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment central-web updating (31s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-web-9c584157-75fb5ddbf-rwqvj]: containers with unready status: [http]Container "http" terminated at 2025-02-21T06:11:20Z (StartError: exit code 128)
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (4s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (4s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "facility-1-tasks-240e7e0a"
@ Updating....
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (3s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment central-tasks updating (4s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment central-tasks updating (4s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
@ Updating....
~  kubernetes:apps/v1:Deployment central-fhir-resolver updating (5s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (6s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
@ Updating....
~  kubernetes:apps/v1:Deployment central-api updating (6s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (7s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (7s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "facility-2-tasks-22435e65"
@ Updating.....
~  kubernetes:apps/v1:Deployment facility-2-api updating (8s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (9s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment facility-1-sync updating (9s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment facility-1-sync updating (9s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "facility-1-sync"
@ Updating.....
~  kubernetes:apps/v1:Deployment facility-2-sync updating (10s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-sync updating (10s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-sync updated (11s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (11s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (11s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (11s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (11s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment central-tasks updating (10s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-tasks updating (10s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-tasks updated (11s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-sync updating (12s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-sync updating (12s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-tasks updated (12s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-tasks updated (11s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-sync updated (12s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-web updating (39s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-web updating (39s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-web updating (39s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-web updating (39s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-web updated (40s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-web updated (39s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-api updating (13s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-api-59d65cb8f-k8z5h]: containers with unready status: [server]
@ Updating....
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (13s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-fhir-refresh-d515616a-7dbcc945d5-r75fb]: containers with unready status: [fhir-refresh]
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-web updating (41s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-web-cf57038c-5897ffc655-rwcxn]: containers with unready status: [http]
@ Updating......
~  kubernetes:apps/v1:Deployment facility-1-web updating (44s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-web updating (44s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-web updated (44s) [diff: ~spec]; 
@ Updating......
~  kubernetes:apps/v1:Deployment central-fhir-resolver updating (20s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-fhir-resolver updating (20s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment central-fhir-resolver updated (21s) [diff: ~spec]; 
@ Updating............
~  kubernetes:apps/v1:Deployment facility-2-api updating (30s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-2-api-5958fb5486-mgnfh]: containers with unready status: [server]
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-api updating (31s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
@ Updating....
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (32s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (32s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-api updating (33s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-api-59d65cb8f-ltccr]: containers with unready status: [server]
~  kubernetes:apps/v1:Deployment central-fhir-refresh updated (32s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-api updating (33s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-api updating (33s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-api updated (34s) [diff: ~spec]; 
@ Updating..........
~  kubernetes:apps/v1:Deployment facility-1-api updating (40s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-api updating (40s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-api updated (40s) [diff: ~spec]; 
@ Updating.................
~  kubernetes:apps/v1:Deployment central-api updating (54s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-api-42e7a0b7-6f5587bc45-z9x9z]: containers with unready status: [server]
@ Updating....
~  kubernetes:apps/v1:Deployment central-api updating (54s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
@ Updating............
~  kubernetes:apps/v1:Deployment central-api updating (64s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-api-42e7a0b7-6f5587bc45-m7x24]: containers with unready status: [server]
@ Updating......
~  kubernetes:apps/v1:Deployment central-api updating (67s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-api updating (67s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-api updated (67s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-provisioner deleting original (0s) [diff: ~spec]; 
@ Updating....
-- kubernetes:batch/v1:Job central-provisioner deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-provisioner deleted original (0.47s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job facility-1-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job facility-2-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-migrator deleting original (0s) [diff: ~spec]; 
@ Updating....
-- kubernetes:batch/v1:Job facility-1-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job facility-1-migrator deleted original (0.44s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job facility-2-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job facility-2-migrator deleted original (0.69s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-migrator deleting original (1s) [diff: ~spec]; Resource scheduled for deletion
@ Updating....
-- kubernetes:batch/v1:Job central-migrator deleting original (1s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-migrator deleted original (1s) [diff: ~spec]; 
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries  16 messages
Diagnostics:
 pulumi:pulumi:Stack (tamanu-on-k8s-epic-program-registries):
   Secret facility-1-db-superuser not found or not ready: Error: HTTP-Code: 404
   Message: Unknown API Status Code!
   Body: "{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"secrets \\\"facility-1-db-superuser\\\" not found\",\"reason\":\"NotFound\",\"details\":{\"name\":\"facility-1-db-superuser\",\"kind\":\"secrets\"},\"code\":404}
"
   Headers: {"audit-id":"dfad319a-3d32-491a-9b37-cba2121d74a1","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Fri, 21 Feb 2025 06:10:53 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}
   Secret central-db-superuser not found or not ready: Error: HTTP-Code: 404
   Message: Unknown API Status Code!
   Body: "{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"secrets \\\"central-db-superuser\\\" not found\",\"reason\":\"NotFound\",\"details\":{\"name\":\"central-db-superuser\",\"kind\":\"secrets\"},\"code\":404}
"
   Headers: {"audit-id":"fbe82970-002e-4c9d-8320-26f9f493ff7b","cache-control":"no-cache, private","connection":"close","content-length":"214","content-type":"application/json","date":"Fri, 21 Feb 2025 06:10:53 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}
   Secret facility-2-db-superuser not found or not ready: Error: HTTP-Code: 404
   Message: Unknown API Status Code!
   Body: "{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"secrets \\\"facility-2-db-superuser\\\" not found\",\"reason\":\"NotFound\",\"details\":{\"name\":\"facility-2-db-superuser\",\"kind\":\"secrets\"},\"code\":404}
"
   Headers: {"audit-id":"72026c97-49d0-42a5-ad7a-8db9d6c498d2","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Fri, 21 Feb 2025 06:10:53 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}

   Waiting for central-db...
   Waiting for facility-1-db...
   Waiting for facility-2-db...

   Using tailscale proxy https://k8s-operator-tamanu-internal-main.tail53aef.ts.net

Outputs:
   urls: {
       Central    : "https://central.epic-program-registries.internal.tamanu.io"
       Facility- 1: "https://facility-1.epic-program-registries.internal.tamanu.io"
       Facility- 2: "https://facility-2.epic-program-registries.internal.tamanu.io"
   }

Resources:
   ~ 13 updated
   +-4 replaced
   17 changes. 36 unchanged

Duration: 1m43s

   

Comment on lines 28 to 36
Suspected: 'Suspected',
'Under investigation': 'Under investigation',
Confirmed: 'Confirmed',
Unknown: 'Unknown',
Disproven: 'Disproven',
Resolved: 'Resolved',
'In remission': 'In remission',
'Not applicable': 'Not applicable',
'Recorded in error': 'Recorded in error',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure about these keys?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree - as discussed, let's change them to camelCase keys

conditions: [
{
conditionId: programRegistryCondition.id,
category: PROGRAM_REGISTRY_CONDITION_CATEGORIES.CONFIRMED,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this working?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh okay I see why, this is a POST, we're sending undefined, it probably saves it as 'Unknown' and we never check for this value later 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants