Display detailed view of image with ability to challenge
Summary
As an end user, I want to see a detailed view of an image with the ability to challenge the RHEL and OpenShift findings so that my reports will accurately report on Red Hat product usage.
The intent of this story is to add the expanded detail view when clicking on an image in the list. This may require an API call to the backend to get the additional information to show. The response from the backend should include some list of booleans indicating which of the RHEL-matching criteria were found as well as a boolean for "is RHEL detected" and "is OCP detected".
The act of changing either challenge state will be a PUT or PATCH update to /api/v1/image/213/
. This should have either or both attributes rhel_challenged
and/or openshift_challenged
After submitting the challenge/update, an additional API request should be made to the /api/v1/report/instances/
to refresh the data that powers the graphs.
After submitting the challenge/update, it might be valuable but not required to make an API request to refresh the list of images from /api/v1/report/images/
. @cdcabrera to make a judgment call on this.
Acceptance Criteria
-
Verify that upon clicking an image row in the list of images, the view expands to show the details for that image. -
Verify that the user can check a checkbox for challenging the findings of RHEL for an image. -
Verify that the user can check a checkbox for challenging the findings of OCP for an image. -
Verify that the user can uncheck a checkbox for removing the challenge of RHEL for an image. -
Verify that the user can uncheck a checkbox for removing the challenge of OCP for an image. - Verify that upon changing either challenge state of any image
-
the graphs at the top of the page are updated to reflect the latest data. -
the image data shown in the line is updated to reflect the RHEL/OCP presence. -
an asterisk indicator is added or removed in appropriate places -
the RHEL/OCP colored indicator box changes color -
if either RHEL or OCP is flagged, an appropriate label and asterisk should appear -
if the label is shown but is not being counted it should be grey
-
-
Verify that integration tests have been updated for this change (not tracked in a separate issue). -
Documentation additions/changes are complete/reviewed -
"Flagging results for review (and subtopics) link: https://docs.google.com/document/d/1O2vBNGkP8zRLRzdrbWb9C8RpkBDFGpmbImuipmo7HcA/edit#heading=h.ssmrrdjtgoyz
-