Skip to content

Simple jQuery plugin providing an overview of all scheduled manifoldcf jobs.

License

Notifications You must be signed in to change notification settings

oehmiche/manifoldcf-jobs-timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ManifoldCF Jobs Timeline

This jQuery Plugin provides an easy way to create an overview of all scheduled jobs of a ManifoldCF using the already existing simpleTime jQuery Plugin from eScience-Center.

The ManifoldCF UI does not provide an aggregated view of all jobs configured. - For this you have to select each job and check the scheduling tab:

ManifoldCF UI

The ManifoldCF Jobs Timeline fills this gap using the servlet-based JSON API, which is available under /mcf-api-service/json/ on default installation, and making it possible to integrate the job overview whereever you want: manifoldcf timeline

Currently only times and no weekday or dates are considered for the timeline creation.

Usage

Requirements

Important Note You need to adjust the CORS headers of your ManifoldCF json api (provided by the mcf-api-service webapp) when using this plugin on a different domain.

Example

<head>
	<link rel="stylesheet" href="css/simpleTimeline.css" />
	<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
	<script src="js/resize.js"></script>
	<script src="js/simpleTimeline.js"></script>
	<script src="js/manifoldcfJobsTimeline.js"></script>
	...
</head>
<body>		
	<div id="timeline"></div>
	
	<script>
		$(document).ready(function() {
			var options = {
				baseUrl: "http://localhost:8345"
			};
			$('#timeline').manifoldCfJobsTimeline(options);
		});
	</script>
</body>

Set the baseUrl pointing to your ManifoldCF server.

See example.html for a working example using static json-data.

Features

  • generates an overview of all jobs
  • considers jobs schedules crossing midnight
  • jobs without duration get a default length and will be marked special (border in dotted style)
  • provides job detail on click
  • direct linking to the manifoldcf job's detail page

Open Issues

  • no support for weekday/date specific job schedules
  • different colouring for each job
  • more actions in the detail view

License

ManifoldCF Jobs Timeline Plugin is released under the MIT license. See LICENSE for details.

About

Simple jQuery plugin providing an overview of all scheduled manifoldcf jobs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published