issues
search
hawtio
/
hawtio-online
Hawtio on Kubernetes/OpenShift
Apache License 2.0
23
stars
25
forks
source link
fix: Sorts out the updating of the Discover component (#397)
#398
Closed
phantomjinx
closed
6 months ago
phantomjinx
commented
6 months ago
managed-pod.ts
Adds the fingerprint functions from management-service so that the fingerprint can be cached on the pod.
Important!! fingerprints the management properties and the original kube pod so that changes to the actual pod can be picked up
management-service.ts
Adds the fireUpdate property to the updateQueue so that the queue knows to fire an update if ANY of the pods need to fire an update.
Therefore if the QUEUE not just the last pod needs to fire an update then it should be fired.
context.ts
Merges the 2 useEffects into 1 that both organises pods immediately & upon a management update
Use Cases:
Discover is correctly populated on startup
Discover is correctly populated when re-clicked on
Discover is correctly updated if a change on a pod occurs in cluster
Filter toolbar is retained even if a filter is added that filters out all pods
Filter can be removed and all pods correctly updated
Filters can be cleared and all pods correctly updated
Error properly displayed
managed-pod.ts
management-service.ts
context.ts
Use Cases: