Bug 678033 - Missing export for job results
Summary: Missing export for job results
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: web UI
Version: 0.6
Hardware: All
OS: Linux
unspecified
high vote
Target Milestone: ---
Assignee: Raymond Mancy
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-16 15:04 UTC by Aleš Mareček
Modified: 2019-05-22 13:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-10 05:21:34 UTC


Attachments (Terms of Use)

Description Aleš Mareček 2011-02-16 15:04:18 UTC
Description of problem:
After schedule some job you'll get some results. It would be nice to have a possibility to export these results as csv / xml / ...

Version-Release number of selected component (if applicable):
Version - 0.6.4 

How reproducible:
Always

Steps to Reproduce:
1. Schedule some job
2. You have link to status but it's not exportable (javascript and so)
  
Actual results:
No export

Expected results:
Possible export job results to csv / xml / ...

Additional info:

Comment 1 Bill Peck 2011-02-16 15:23:25 UTC
you can use bkr job-results J:1234
to get the job results out via xml.  Does that do what you need?

Comment 2 Aleš Mareček 2011-02-16 16:18:07 UTC
Yes, that's what I need. I can do it in command line but I think it could be nice to have it implemented to web-ui.
Anyway, that command prints all data to stdout, which is not so nice. Is there any option for redirecting to file (like -f myresults.xml) or it could redirect these results automatically like job-results-<job_id>.xml (instead of bkr job-results ... > myresults.xml) .

Comment 3 Bill Peck 2011-02-16 16:45:40 UTC
Why is redirecting to a file so hard?  use a $var when you do the call

jobid=1234 && bkr job-results J:$jobid > job-results-$jobid.xml

Comment 4 Marian Csontos 2011-02-16 21:15:22 UTC
Are you happy enough with something like:

  https://beaker.engineering.redhat.com/jobs/to_xml?id=1

?

Use-Case:

1. click, click, click.
2. Want to save this: click, click.
3. continue with 1.

Can we change the format to xml by passing argument and provide a link somewhere for mouse addicted people?

Comment 5 Aleš Mareček 2011-02-17 08:36:31 UTC
Well, it's great but I have one more recommendation. If we have this function in web-ui now it would be great to have some button which do this job on job page. If there is something like this please navigate me because I can't see it.
Thanks.

Comment 6 Bill Peck 2011-02-17 14:02:24 UTC
(In reply to comment #5)
> Well, it's great but I have one more recommendation. If we have this function
> in web-ui now it would be great to have some button which do this job on job
> page. If there is something like this please navigate me because I can't see
> it.
> Thanks.

I agree, we should be able to add a link "download xml" or something on the job page.  Maybe it should be under the actions section.


Note You need to log in before you can comment on or make changes to this bug.