[ui, websocket-api] New data shape for node testing statuses

Bug #1846348 reported by Caleb Ellis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Lee Trager

Bug Description

There's been an update to how the test statuses are surfaced on the summary page for each test type. Instead of a string, it's a traffic light with a number beside each:

https://user-images.githubusercontent.com/25733845/66046216-981b7e00-e525-11e9-8aa8-166952b5dcf5.png

The websocket api currently returns tooltips for each test type, which is a string that contains the number of each hardware type result e.g. "3 tests have passed, 1 has failed installing dependencies, 4 have failed."

For the new design to work without a ton of calculation on the front end we just need the number for each "combined" script status on that node, e.g:

test_status_display: {
  'failed': 3,
  'pending': 2,
  'success': 4
}

Or to keep it more flexible we could just have the number of all 12 script statuses and do the collating on the front end.

Related branches

Revision history for this message
Caleb Ellis (caleb-ellis) wrote :
Revision history for this message
Lee Trager (ltrager) wrote :

Can you clarify if you need just one test_status for all types or if it should be broken down by type? e.g should we have cpu_test_status, memory_test_status, storage_test_status, interface_test_status, and other_test_status? Will design be using the tool tip from the region any more? If not can I remove it as part of this work?

Changed in maas:
status: New → Incomplete
Revision history for this message
Caleb Ellis (caleb-ellis) wrote :

Broken down by type would be ideal, similar to the tooltips. Speaking of which I think it’s safe to remove them. If we ever need to implement them again we could do so on the front end using this new version.

Lee Trager (ltrager)
Changed in maas:
status: Incomplete → In Progress
assignee: nobody → Lee Trager (ltrager)
Revision history for this message
Lee Trager (ltrager) wrote :

See the related branch. I grouped all failure statuses together. I tried to update the UI but its breaking the cards on the node-details page

https://imgur.com/9wrMOgh

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.