massdosage / citrine-scheduler

Java web application which can be used to configure, manage and monitor the running of various tasks
Apache License 2.0
4 stars 4 forks source link

Add HTML id attributes to job rows in Citrine #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[moved from internal Last.fm feature request]

For the purposes of documentation it would be nice to be able to link directly 
to configured jobs in Citrine. For example, in my [project X] documentation I'd 
like to add a convenience link to the [project X] job in Citrine.

To do this we need some HTML anchors in the jobs list. I think that this can be 
achieved simply by adding id attributes the the link tags for each job:

<a href="task_edit.do?id=123&amp;selectedGroupName=-">Pellegrino Data 
Extractor</a>

becomes:

<a id="job-123" href="task_edit.do?id=123&amp;selectedGroupName=-">Pellegrino 
Data Extractor</a>

Then on the wiki I can simply link to:

http://HOST/citrinetasks.do#job-123

Group name can be used to filter it somewhat:

Oh, I see that group name can filter it somewhat:

http://HOST/citrine/tasks.do?selectedGroupName=pellegrino

but it would be nice to be able to be more specific

Original issue reported on code.google.com by massdosage on 22 Jun 2012 at 5:45

GoogleCodeExporter commented 9 years ago
Fixed as suggested in ticket, except id is "task-${task.id} not 
"job-${task.id}". Minor annoyance is that when page meta refreshes 
automatically the #part of the url is lost, couldn't find a quick fix for this. 
Proper fix is to probably do the refreshing of just the tasks table using AJAX 
which is out of scope for this.

Committed to trunk, will go live in next release (>4.1.0)

Original comment by massdosage on 13 Jul 2012 at 2:37