Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-3942

Display a warning message from kube-apiserver when updating resources in Console UI

XMLWordPrintable

    • False
    • None
    • False

      Implement a notification feature in  the console UI  to notify the user that their action for updating a resource violated a warn policy though the request was allowed. 

       

      See the Configure OpenShift Console to display warnings from apiserver when creating/updating resources spike on how to reproduce the warn policy response in `oc` CLI

      A.C.

      • Display a warning notification after update a resource action
      • Add a unit test

      Additional info:

      • Add `response.headers.get('Warning')` to `consoleFetchCommon` function
      • Create a WarningPolicyNotifier component and get the warning response.
      • Get UX team input on how to display the message on the UI i.e. resource details page, toast or global  notification

      Open question:

      • Should the warning message alert on detail page and/or notification drawer be persisted?
      • Should the user be allowed to dismiss the alert?
      • Should the alert be display above or below the details page tab?

       

      Depends on : Add support for retrieving response.header in consoleFetchCommon function

        1. Screenshot 2024-02-27 at 8.51.17 AM-1.png
          Screenshot 2024-02-27 at 8.51.17 AM-1.png
          955 kB
        2. Screenshot 2024-02-27 at 8.51.17 AM.png
          Screenshot 2024-02-27 at 8.51.17 AM.png
          955 kB
        3. Screenshot 2024-02-27 at 8.23.49 AM-1.png
          Screenshot 2024-02-27 at 8.23.49 AM-1.png
          261 kB
        4. Screenshot 2024-02-27 at 8.23.49 AM.png
          Screenshot 2024-02-27 at 8.23.49 AM.png
          261 kB
        5. Screenshot 2024-02-27 at 5.44.41 PM.png
          Screenshot 2024-02-27 at 5.44.41 PM.png
          257 kB
        6. Screenshot 2024-02-22 at 7.02.56 AM.png
          Screenshot 2024-02-22 at 7.02.56 AM.png
          456 kB
        7. Screenshot 2024-02-21 at 4.02.36 PM.png
          Screenshot 2024-02-21 at 4.02.36 PM.png
          1.16 MB
        8. Frame 3.png
          Frame 3.png
          172 kB
        9. Frame 2.png
          Frame 2.png
          127 kB
        10. Frame 1.png
          Frame 1.png
          116 kB

            Unassigned Unassigned
            cajieh Cyril Ajieh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: