chef / automate

Chef Automate provides a full suite of enterprise capabilities for maintaining continuous visibility into application, infrastructure, and security automation.
https://automate.chef.io/
Apache License 2.0
227 stars 113 forks source link

[Desktop UI] Download individual desktop historical data as JSON or CSV #3545

Closed apriofrost closed 4 years ago

apriofrost commented 4 years ago

User story

Allow users to download the individual desktop historical data, including all the run happened in the selected time span and the attributes data, in a JSON or CSV format

Solution

Add a download button, same as https://github.com/chef/automate/issues/3503, using the new API in https://github.com/chef/automate/issues/3544 image

Mockup

sm: https://chef.invisionapp.com/share/7ZWRC1GNQ2P#/415174051_Desktop_Dashboard-Daily_Unknown-Desktop_Detail-2-Sm Half screen - xlg: https://chef.invisionapp.com/share/7ZWRC1GNQ2P#/414257682_Desktop_Dashboard-Daily_Unknown-Desktop_Detail-2 Full screen - xlg: https://chef.invisionapp.com/share/7ZWRC1GNQ2P#/415415417_Desktop_Dashboard-Daily_Unknown-Desktop_Detail-2-Enlarged

vjeffrey commented 4 years ago

this isn't actually blocked on the api work, so i'm moving it to prioritized

vjeffrey commented 4 years ago

endpoint sample is:

curl 'https://a2-local-inplace-upgrade-dev.cd.chef.co/api/v0/cfgmgmt/reports/export' \
-d '{"output_type":"csv","sorting":{},"node_id":"43589d3e-f1bb-45b5-8789-03508ed37891","filter":[],"start":{"seconds":1591488000},"end":{"seconds":1591660799}}' 

you can see it implemented in the ui here: Screen Shot 2020-06-08 at 14 33 43 (the button that is a cloud with a down arrow in it, all the way at the right)