NAICNO/Jobanalyzer

Job query shared link does not work

Closed this issue · 0 comments

The solution with the link sharing in the job query is elegant but the resulting link does not work. I get this:

https://naic-monitor.uio.no/jobQuery?cluster=fox&user=-&from=5d&to=&min-runtime=1d&some-gpu=xxxxxtruexxxxx&fmt=json,job,user,host,duration,start,end,cpu-peak,res-peak,mem-peak,gpu-peak,gpumem-peak,cmd

from the new dashboard but this:

https://naic-monitor.uio.no/jobquery.html?cluster=fox&user=-&from=5d&to=1d&some-gpu=xxxxxtruexxxxx&fmt=json%2Cjob%2Cuser%2Chost%2Cduration%2Cstart%2Cend%2Ccpu-peak%2Cres-peak%2Cmem-peak%2Cgpu-peak%2Cgpumem-peak%2Ccmd

from the old. The key here is that jobquery.html is an actual page (and it is case-sensitive, jobQuery.html does not exist either).

Also, there is a recommendation that ,, which is a reserved character, be encoded using %XX and not represented literally. Are you using some react/js library here or have you hand-coded this? I believe my original code used the JS library.