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 8 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/6

@ 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
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read pulumi:pulumi:StackReference bes/core/tamanu-internal
@ Updating....
   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...
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running Waiting for facility-2-db...
~  kubernetes:apps/v1:Deployment facility-2-web updating (0s) [diff: ~spec]
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read pulumi:pulumi:StackReference bes/core/tamanu-internal
~  kubernetes:apps/v1:Deployment facility-1-web updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment central-web updating (0s) [diff: ~spec]
@ Updating....
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries running read kubernetes:core/v1:ConfigMap actual-provisioning
   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":"150328c0-b3e9-41eb-858e-742433eb15c1","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Tue, 25 Feb 2025 02:23:58 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-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":"f3715be5-7f46-457f-8949-0789c28474aa","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Tue, 25 Feb 2025 02:23:58 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":"c9bedd6f-6378-4a98-9960-28d849676c64","cache-control":"no-cache, private","connection":"close","content-length":"214","content-type":"application/json","date":"Tue, 25 Feb 2025 02:23:58 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}
++ kubernetes:batch/v1:Job central-migrator creating replacement (0s) [diff: ~spec]
   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)
++ kubernetes:batch/v1:Job central-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-51074a54" to start
++ kubernetes:batch/v1:Job central-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-51074a54" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
@ Updating....
~  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-1-migrator creating replacement (0s) [diff: ~spec]
++ 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 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]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-c60aab1f" to start
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-c60aab1f" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
@ Updating....
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-8163dded" to start
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-8163dded" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
@ Updating...........
~  kubernetes:apps/v1:Deployment facility-1-web updating (11s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-web-cf57038c-756cf574f8-5kwh2]: containers with unready status: [http]
@ Updating...........
~  kubernetes:apps/v1:Deployment central-web updating (19s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
~  kubernetes:apps/v1:Deployment facility-2-web updating (19s) [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 facility-2-web updating (21s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-2-web-d0b15768-84c9996c57-qnjlq]: containers with unready status: [http]
~  kubernetes:apps/v1:Deployment facility-1-web updating (21s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-web-cf57038c-756cf574f8-sfglc]: containers with unready status: [http]
~  kubernetes:apps/v1:Deployment central-web updating (21s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-web-9c584157-5dcd46f8fb-c4w2f]: containers with unready status: [http]
@ Updating....
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (20s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-2-migrator-8163dded-lmxt7]: Container "migrator" completed with exit code 0
@ Updating......
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (22s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-8163dded" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (23s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-2-migrator-8163dded" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job facility-2-migrator creating replacement (23s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job facility-2-migrator created replacement (23s) [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-tasks updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-2-api updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-2-sync updating (0s) [diff: ~spec]
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (1s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (1s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "facility-2-tasks-22435e65"
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment facility-2-api updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
@ Updating....
~  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"
~  kubernetes:apps/v1:Deployment facility-2-sync updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
@ Updating....
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (26s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-migrator-c60aab1f-gxj2z]: Container "migrator" completed with exit code 0
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (4s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-tasks updating (4s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-tasks updated (4s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (28s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-c60aab1f" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (28s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/facility-1-migrator-c60aab1f" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job facility-1-migrator creating replacement (28s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job facility-1-migrator created replacement (28s) [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:apps/v1:Deployment facility-1-api updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-1-sync updating (0s) [diff: ~spec]
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (0s) [diff: ~spec]
++ kubernetes:batch/v1:Job central-migrator creating replacement (29s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-migrator-51074a54-n8t9g]: Container "migrator" completed with exit code 0
@ Updating.....
~  kubernetes:apps/v1:Deployment facility-1-api updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment facility-1-sync updating (1s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment facility-1-sync updating (1s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "facility-1-sync"
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (1s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (1s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "facility-1-tasks-240e7e0a"
~  kubernetes:apps/v1:Deployment facility-1-sync updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment central-web updating (32s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-web updating (32s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-migrator creating replacement (31s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-51074a54" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
++ kubernetes:batch/v1:Job central-migrator creating replacement (31s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-migrator-51074a54" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job central-migrator creating replacement (31s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-api updating (7s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
~  kubernetes:apps/v1:Deployment central-web updated (32s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (2s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
++ kubernetes:batch/v1:Job central-migrator created replacement (32s) [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]
++ kubernetes:batch/v1:Job central-provisioner creating replacement (0s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-provisioner creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-ff002020" to start
++ kubernetes:batch/v1:Job central-provisioner creating replacement (0s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-ff002020" to succeed (Active: 1 | Succeeded: 0 | Failed: 0)
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-sync updating (8s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-sync updating (8s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-sync updated (9s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (5s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-tasks updating (5s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-tasks updated (5s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-api updating (10s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-2-api-854ffd4485-x6vsp]: containers with unready status: [server]
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-web updating (37s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-web updating (37s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-2-web updated (37s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-web updating (38s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-web updating (38s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-web updated (38s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-api updating (14s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-2-api updating (14s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-sync updating (9s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-sync updating (9s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-2-api updated (14s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-sync updated (9s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-provisioner creating replacement (7s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-provisioner-ff002020-qgrgk]: Container "provisioner" completed with exit code 0
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-api updating (10s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-api-5949649b98-lwzbc]: containers with unready status: [server][ErrImagePull] failed to pull and unpack image "ghcr.io/beyondessential/tamanu-facility:sha-8aab76713762e4eb12bda9cc59ace26bf855ac68": failed to copy: read tcp [2406:da1c:5e2:ef03::50f2]:46772->[2606:50c0:8001::154]:443: read: connection reset by peer
@ Updating....
++ kubernetes:batch/v1:Job central-provisioner creating replacement (9s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-ff002020" to succeed (Active: 0 | Succeeded: 0 | Failed: 0)
@ Updating....
++ kubernetes:batch/v1:Job central-provisioner creating replacement (9s) [diff: ~spec]; Waiting for Job "tamanu-epic-program-registries/central-provisioner-ff002020" to succeed (Active: 0 | Succeeded: 1 | Failed: 0)
++ kubernetes:batch/v1:Job central-provisioner creating replacement (9s) [diff: ~spec]; 
++ kubernetes:batch/v1:Job central-provisioner created replacement (9s) [diff: ~spec]; 
+- 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-api updating (0s) [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-fhir-refresh updating (0s) [diff: ~spec]
@ Updating....
~  kubernetes:apps/v1:Deployment central-api updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment central-tasks updating (1s) [diff: ~spec]; warning: [MinimumReplicasUnavailable] Deployment does not have minimum availability.
~  kubernetes:apps/v1:Deployment central-tasks updating (1s) [diff: ~spec]; warning: Replicas scaled to 0 for Deployment "central-tasks-c129f2dd"
@ Updating....
~  kubernetes:apps/v1:Deployment central-fhir-resolver updating (1s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment central-tasks updating (2s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (2s) [diff: ~spec]; Waiting for app ReplicaSet to be available (0/1 Pods available)
@ Updating......
~  kubernetes:apps/v1:Deployment central-tasks updating (5s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-tasks updating (5s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-fhir-resolver updating (5s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-fhir-resolver updating (5s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-tasks updated (5s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-fhir-resolver updated (5s) [diff: ~spec]; 
@ Updating........
~  kubernetes:apps/v1:Deployment central-api updating (10s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
@ Updating....
~  kubernetes:apps/v1:Deployment central-api updating (10s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/central-api-42e7a0b7-5d94664c5b-92jtm]: containers with unready status: [server]
@ Updating..........
~  kubernetes:apps/v1:Deployment facility-1-api updating (30s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-api-5949649b98-lwzbc]: containers with unready status: [server][ImagePullBackOff] Back-off pulling image "ghcr.io/beyondessential/tamanu-facility:sha-8aab76713762e4eb12bda9cc59ace26bf855ac68"
@ Updating.........
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (23s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-fhir-refresh updating (23s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment central-fhir-refresh updated (24s) [diff: ~spec]; 
@ Updating......
~  kubernetes:apps/v1:Deployment facility-1-api updating (39s) [diff: ~spec]; Waiting for app ReplicaSet to be available (1/2 Pods available)
@ Updating....
~  kubernetes:apps/v1:Deployment facility-1-api updating (40s) [diff: ~spec]; warning: [Pod tamanu-epic-program-registries/facility-1-api-5949649b98-dmwvq]: containers with unready status: [server]
@ Updating......
~  kubernetes:apps/v1:Deployment central-api updating (31s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment central-api updating (31s) [diff: ~spec]; 
@ Updating....
~  kubernetes:apps/v1:Deployment central-api updated (31s) [diff: ~spec]; 
@ Updating.....................
~  kubernetes:apps/v1:Deployment facility-1-api updating (62s) [diff: ~spec]; Deployment initialization complete
~  kubernetes:apps/v1:Deployment facility-1-api updating (62s) [diff: ~spec]; 
~  kubernetes:apps/v1:Deployment facility-1-api updated (62s) [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.44s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job facility-2-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job facility-1-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-migrator deleting original (0s) [diff: ~spec]; 
-- kubernetes:batch/v1:Job central-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.74s) [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.82s) [diff: ~spec]; 
   pulumi:pulumi:Stack tamanu-on-k8s-epic-program-registries  16 messages
Diagnostics:
 pulumi:pulumi:Stack (tamanu-on-k8s-epic-program-registries):
   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

   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":"150328c0-b3e9-41eb-858e-742433eb15c1","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Tue, 25 Feb 2025 02:23:58 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}
   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":"f3715be5-7f46-457f-8949-0789c28474aa","cache-control":"no-cache, private","connection":"close","content-length":"220","content-type":"application/json","date":"Tue, 25 Feb 2025 02:23:58 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":"c9bedd6f-6378-4a98-9960-28d849676c64","cache-control":"no-cache, private","connection":"close","content-length":"214","content-type":"application/json","date":"Tue, 25 Feb 2025 02:23:58 GMT","x-kubernetes-pf-flowschema-uid":"7d46608e-fb55-48cf-90aa-981c856b1d54","x-kubernetes-pf-prioritylevel-uid":"ed197318-138c-44ea-825e-1d4df495928e"}

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: 1m40s

   

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 🤔

tcaiger and others added 6 commits February 21, 2025 09:55
* update program view layout

* fix query keys

* translations

* pr fixes

* Update PatientProgramRegistryForm.jsx
)

update PROGRAM_REGISTRY_CONDITION_CATEGORIES
…7254)

* Make span as big as possible as we no longer need that padding effect

* Wrap button with tooltip to avoid weird display issues

* Update outline color to match figma

* Include the condition category on the list

* Increase length check for tooltip visibility

* No point ordering by date in backend

* Create two groups of conditions

* Set overflow behavior

* Use constant

* Add TODO, this will be followed up on another PR if needed

* Replace mapper function for a component for readability

Co-authored-by: Tom Caiger <caigertom@gmail.com>

* Whoops, prop syntax needed destructuring

* Add translation for condition category

Co-authored-by: Tom Caiger <caigertom@gmail.com>

* Add translation to condition name

* Display translated title and always show tooltip

* Only display tooltip if element overflows

* Properly style

* Translate content and sort by it, plus refactor display component

---------

Co-authored-by: Tom Caiger <caigertom@gmail.com>
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