-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.15
-
No
-
False
-
Description of problem:
Once the annotation or labels modals are opened, any changes to the underlying resources will not be reflected in the modal.
Version-Release number of selected component (if applicable):
4.15
How reproducible:
Always
Steps to Reproduce:
1. Log into a cluter as kubeadmin via cli and console 2. Create a project named test 3. Vist the namespaces list page in the console (Administration > Namespaces) 4. Click "Edit annotations" via the kebab menu for namespace "foo" 5. From the cli, run the command: oc annotate namespace test foo=bar 6. Observe that the annotation modal did not update 7. Click cancel to close the annoatation modal 8. Open the annoation modal again and observe that the annoation added from the cli is now shown. 9. Repeat 5 - 8 using the labels modal and the command: oc label namespace test baz=qux
Actual results:
Annotation and labels modals do not update when the underlying resource labels or annotations change.
Expected results:
We should handle this case in some way
Additional info:
We can't necessarily just update the currently displayed data, as this could cause data loss or conflicts. The current behavior can also cause data loss in this situation: - user opens modal - a background update to annotations/modals occur - user makes their own change and saves - The annotations/labels from the background update are lost/squashed