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

Table dropdown body missing output for ara_record actions. #17

Open
ahtee opened this issue Sep 4, 2019 · 0 comments
Open

Table dropdown body missing output for ara_record actions. #17

ahtee opened this issue Sep 4, 2019 · 0 comments

Comments

@ahtee
Copy link

ahtee commented Sep 4, 2019

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>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant