ara-web icon indicating copy to clipboard operation
ara-web copied to clipboard

Implement detailed result view

Open dmsimard opened this issue 6 years ago • 4 comments

When browsing a list of results, it should be possible to click on it to view details about a specific result. Doing a query on a result provides useful context in addition to the content of the results which are not available in list view.

Example:

{
    "id": 1,
    "playbook": {
        "id": 1,
        "duration": "38.40244",
        "started": "2019-04-17T13:17:18.334437",
        "ended": "2019-04-17T13:17:56.736877",
        "name": null,
        "status": "failed",
        "path": "/home/dmsimard/dev/sandbox/update-packages.yaml"
    },
    "play": {
        "id": 1,
        "duration": "35.40684",
        "started": "2019-04-17T13:17:18.568601",
        "ended": "2019-04-17T13:17:53.975441",
        "name": "Update packages on all servers",
        "status": "completed",
        "playbook": 1
    },
    "task": {
        "id": 1,
        "duration": "6.309328",
        "started": "2019-04-17T13:17:18.791752",
        "ended": "2019-04-17T13:17:25.101080",
        "name": "Gathering Facts",
        "action": "setup",
        "lineno": 1,
        "handler": false,
        "status": "completed",
        "play": 1,
        "file": 1,
        "playbook": 1
    },
    "host": {
        "id": 2,
        "name": "live-demo-17",
        "alias": null,
        "changed": 0,
        "failed": 0,
        "ok": 0,
        "skipped": 0,
        "unreachable": 1,
        "playbook": 1
    },
    "content": {
        "changed": false,
        "msg": "SSH Error: data could not be sent to remote host \"172.29.239.7\". Make sure this host can be reached over ssh",
        "unreachable": true
    },
    "created": "2019-04-17T13:17:19.720117",
    "updated": "2019-04-17T13:17:19.720153",
    "started": "2019-04-17T13:17:18.791752",
    "ended": "2019-04-17T13:17:19.706423",
    "status": "unreachable"
}

dmsimard avatar Apr 17 '19 18:04 dmsimard

@gvincent did you have an idea of what this might look like in practice ? Should we go with a modal or something else ?

Worth keeping in mind that we have three different "detailed" views that needs to be implemented:

  • detailed results
  • host facts
  • file contents

In 0.x, these were presented inside modals but it was more as a necessity to defer loading of that content after everything else had loaded. I am not against another implementation but it should be possible to link directly to the object so users can share things.

dmsimard avatar Jun 25 '19 16:06 dmsimard

WIP: https://review.opendev.org/#/c/669221/

Screenshot_2019-07-04 ARA Records Ansible

dmsimard avatar Jul 04 '19 20:07 dmsimard

WIP: https://review.opendev.org/#/c/669221/

Screenshot_2019-07-04 ARA Records Ansible

Hi,

Still in progress ?

jbarascut avatar Aug 26 '19 09:08 jbarascut

Hi @jbarascut !

I'm not actively working on this right now and I won't be able to come back to it for a while still. If someone else wants to pick up where I left off, I can help or point them in the right direction.

dmsimard avatar Sep 03 '19 15:09 dmsimard