Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Table dropdown body missing output for ara_record actions. #17

@ahtee

Description

@ahtee

Would like to see a component added to the ara_record action showing the output from the API call on the records endpoint. Ideally, when the ara_record action is used in a play, one should be able to visualize the value that is recorded through the web UI under the table dropdown.

referring to this block:

<table
className="pf-c-table pf-m-compact pf-m-no-border-rows"
role="grid"
>
<caption>Task results</caption>
<thead>
<tr>
<th className="pf-u-text-align-center">Status</th>
<th className="pf-u-text-align-center">Host</th>
<th className="pf-u-text-align-center">Started</th>
<th className="pf-u-text-align-center">Ended</th>
<th className="pf-u-text-align-center">Duration</th>
</tr>
</thead>
<tbody>
{task.results.map(result => (
<tr>
<td
data-label="Status"
className="pf-u-text-align-center"
>
<Status status={result.status}>{result.status}</Status>
</td>
<td data-label="Host" className="pf-u-text-align-center">
{result.host.name}
</td>
<td
data-label="Started"
className="pf-u-text-align-center"
>
{new Date(result.started).toUTCString()}
</td>
<td data-label="Ended" className="pf-u-text-align-center">
{new Date(result.ended).toUTCString()}
</td>
<td
data-label="Duration"
className="pf-u-text-align-center"
>
{result.duration} sec
</td>
</tr>
))}
</tbody>
</table>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions