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

HDDS-11781. Add last task status information to Recon UI #7472

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

devabhishekpal
Copy link
Contributor

@devabhishekpal devabhishekpal commented Nov 22, 2024

What changes were proposed in this pull request?

HDDS-11781. Add last task status information to Recon UI.

In the current code, Recon doesn't have a marker to store if the last task run was completed successfully or not.
As a part of this PR we are targeting two main things:

  • Have a record of the last task status i.e successful or failed
  • Display that information in the UI

The current code already calls the /task/status API endpoint to fetch the Om sync last updated timestamp. We are adding an extra column to the RECON_TASK_STATUS table to store the last run success, and returning that as a part of the API response to use in the UI.

The last task status stores values as true, false or null where:

  • true: The last task was completed successfully - Display green check in UI
  • false: The last task failed. - Display red check in UI
  • null: The last task didn't take place (first time task run). - Display yellow check in UI

In the UI the following changes are added:

  • Add a notification style panel to allow showing task status
  • Tasks can be:
    • Last task was Successful - Shows a green tick icon
    • First run didn't happen yet - Shows yellow warning icon
    • Last task run has failed - Shows a red cross icon
  • The notification message count is based on the following conditions:
    • If a failed run is present, that takes precedence over warning and that count will be displayed as a red circle on the status
    • If only warning run is present, the count of the warning will be shown with a yellow dot
    • If all tasks successful, no count is displayed

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-11781

How was this patch tested?

Manually
Screenshot 2024-11-23 at 02 06 08
Screenshot 2024-11-23 at 02 06 24
Screenshot 2024-11-24 at 19 47 52

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.

2 participants