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

mwa: Improve how MWA exposes errors #69

Merged

Conversation

elenzio9
Copy link
Contributor

@elenzio9 elenzio9 commented Mar 23, 2023

Currently, MWA doesn't properly expose the error state when errors occur in the underlying resources that the app is showing. Our goal it to further improve how the app exposes errors to better inform users what is happening. We want it to be clear to users when there's progress being made or when something unexpected has happened. So, in this PR:

Frontend

  1. Receive the raw YAML of each ISVC and:
    a. Check for a Ready condition with status: true and if exists, it shows a ✅.
    b. Check the .status.conditions and show the first condition of the ordered list, since it has the one-liner reason and a message.
    c. If there are no conditions, it shows a ⚠️ with a message that explains there is no status and urges users to take a look at the events.
  2. Show an admonition in the details page of each ISVC with a detailed message on the current status.
  3. Extend the details page by adding an EVENTS tab that shows the events emitted for the specific ISVC, like we do for the other apps.
  4. Remove status item from both the OVERVIEW and DETAILS tabs, as we've added the admonition to the details page.

Backend

  1. Extend the code to also fetch the events of an ISVC.
Screenshots

image

image

image

Related PR: kubeflow/kubeflow#6952

Update COMMIT file to include the latest changes.

Signed-off-by: Elena Zioga <elena@arrikto.com>
Signed-off-by: Elena Zioga <elena@arrikto.com>
Extend the backend to fetch the events of an ISVC.

Signed-off-by: Elena Zioga <elena@arrikto.com>
Add Events tab to show the available events of an ISVC.

Signed-off-by: Elena Zioga <elena@arrikto.com>
The frontend functions follow the logic:
- Check the .status.conditions, since they have the one-liner reason and
  a message and show the first condition in order.
- If there are no conditions, show a warning icon with a message that
  explains there is no status and urge users to take a look at the events.

Signed-off-by: Elena Zioga <elena@arrikto.com>
* Use the lib-status-icon component to display the status icon.
* Add an admonition with a detailed message on the current status bellow
  the ISVC's name.

Signed-off-by: Elena Zioga <elena@arrikto.com>
Remove status item from the Overview tab, since we've added an
admonition with a detailed message on the current status to the details
page.

Signed-off-by: Elena Zioga <elena@arrikto.com>
Remove status item from the Details tab, since we've added an admonition
with a detailed message on the current status to the details page.

Signed-off-by: Elena Zioga <elena@arrikto.com>
Signed-off-by: Elena Zioga <elena@arrikto.com>
@elenzio9 elenzio9 changed the title mwa: Improve how JWA exposes errors mwa: Improve how MWA exposes errors Mar 24, 2023
@kimwnasptd
Copy link
Contributor

/lgtm
/approve

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elenzio9, kimwnasptd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kserve-oss-bot kserve-oss-bot merged commit a5c28c7 into kserve:master Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants