Skip to content
This repository has been archived by the owner on Jan 6, 2018. It is now read-only.

Commit

Permalink
OOZIE-6 Custom filters and User Column for Coordinator jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kirann authored and Mohammad Kamrul Islam committed Aug 5, 2011
1 parent 31586bb commit 1d19a90
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 5 deletions.
1 change: 1 addition & 0 deletions release-log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- Oozie 3.1.0 release

OOZIE-6 Custom filters option and User information column added to Coordinator jobs section of Oozie Web Console
OOZIE-124 Update documentation for job-type in WS API
OOZIE-81 Add an email action to Oozie
OOZIE-113 merge changes for OOZIE-101 to ActionEndXCommand
Expand Down
51 changes: 46 additions & 5 deletions webapp/src/main/webapp/oozie-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,12 @@ function coordJobDetailsPopup(response, request) {
width: 200,
value: jobDetails["status"]
}, {
fieldLabel: 'User',
editable: false,
name: 'status',
width: 200,
value: jobDetails["user"]
}, {
fieldLabel: 'Frequency',
editable: false,
name: 'frequency',
Expand Down Expand Up @@ -873,7 +879,7 @@ function bundleJobDetailsPopup(response, request) {
var bundleJobName = jobDetails["bundleJobName"];
var jobActionStatus = new Ext.data.JsonStore({
data: jobDetails["bundleCoordJobs"],
fields: ['coordJobId', 'coordJobName', 'coordJobPath', 'frequency', 'timeUnit', 'nextMaterializedTime', 'status', 'startTime', 'endTime', 'pauseTime']
fields: ['coordJobId', 'coordJobName', 'coordJobPath', 'frequency', 'timeUnit', 'nextMaterializedTime', 'status', 'startTime', 'endTime', 'pauseTime','user']
});

var formFieldSet = new Ext.form.FieldSet({
Expand Down Expand Up @@ -967,6 +973,11 @@ function bundleJobDetailsPopup(response, request) {
width: 80,
sortable: true,
dataIndex: 'status'
}, {
header: "User",
width: 80,
sortable: true,
dataIndex: 'user'
}, {
header: "Frequency",
width: 80,
Expand Down Expand Up @@ -1123,7 +1134,7 @@ var coord_jobs_store = new Ext.data.JsonStore({
totalProperty: 'total',
autoLoad: true,
root: 'coordinatorjobs',
fields: ['coordJobId', 'coordJobName', 'status', 'frequency', 'timeUnit', 'startTime', 'nextMaterializedTime'],
fields: ['coordJobId', 'coordJobName', 'status', 'user', 'frequency', 'timeUnit', 'startTime', 'nextMaterializedTime'],
proxy: new Ext.data.HttpProxy({
url: getOozieBase() + 'jobs'
})
Expand Down Expand Up @@ -1225,6 +1236,15 @@ var refreshDoneJobsAction = new Ext.Action({
}
});

var refreshCoordCustomJobsAction = new Ext.Action({
text: 'status=KILLED',
handler: function() {
coord_jobs_store.baseParams.filter = this.text;
coord_jobs_store.reload();
}
});


var refreshCoordActiveJobsAction = new Ext.Action({
text: 'Active Jobs',
handler: function() {
Expand Down Expand Up @@ -1325,6 +1345,20 @@ var changeFilterAction = new Ext.Action({
}
});

var changeCoordFilterAction = new Ext.Action({
text: 'Custom Filter',
handler: function() {
Ext.Msg.prompt('Filter Criteria', 'Filter text:', function(btn, text) {
if (btn == 'ok' && text) {
refreshCoordCustomJobsAction.setText(text);
coord_jobs_store.baseParams.filter = text;
coord_jobs_store.reload();
}
});
}
});


var getSupportedVersions = new Ext.Action({
text: 'Checking server for supported versions...',
handler: function() {
Expand Down Expand Up @@ -1651,7 +1685,12 @@ function initConsole() {
header: "Status",
width: 80,
sortable: true,
dataIndex: 'status'
dataIndex: 'status'
}, {
header: "User",
width: 80,
sortable: true,
dataIndex: 'user'
}, {
header: "frequency",
width: 70,
Expand Down Expand Up @@ -1684,8 +1723,10 @@ function initConsole() {
handler: function() {
coord_jobs_store.reload();
}
}, refreshCoordAllJobsAction, refreshCoordActiveJobsAction, refreshCoordDoneJobsAction,
{
}, refreshCoordAllJobsAction, refreshCoordActiveJobsAction, refreshCoordDoneJobsAction,{
text: 'Custom Filter',
menu: [refreshCoordCustomJobsAction, changeCoordFilterAction, helpFilterAction ]
}, {
xtype: 'tbfill'
}, checkStatus, serverVersion],
title: 'Coordinator Jobs',
Expand Down

0 comments on commit 1d19a90

Please sign in to comment.