You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by vi...@apache.org on 2013/03/18 18:54:54 UTC
svn commit: r1457895 - in /oozie/trunk: release-log.txt
webapp/src/main/webapp/oozie-console.js
Author: virag
Date: Mon Mar 18 17:54:54 2013
New Revision: 1457895
URL: http://svn.apache.org/r1457895
Log:
OOZIE-1270 Querying job directly does not pop correct information for coordinator and bundle (rohini via virag)
Modified:
oozie/trunk/release-log.txt
oozie/trunk/webapp/src/main/webapp/oozie-console.js
Modified: oozie/trunk/release-log.txt
URL: http://svn.apache.org/viewvc/oozie/trunk/release-log.txt?rev=1457895&r1=1457894&r2=1457895&view=diff
==============================================================================
--- oozie/trunk/release-log.txt (original)
+++ oozie/trunk/release-log.txt Mon Mar 18 17:54:54 2013
@@ -7,6 +7,7 @@ OOZIE-1239 Bump up trunk to 4.1.0-SNAPSH
-- Oozie 4.0.0 (unreleased)
+OOZIE-1270 Querying job directly does not pop correct information for coordinator and bundle (rohini via virag)
OOZIE-1208 Oozie web-console when displaying Coord Job Log for an action gives Format Error (rohini via mona)
OOZIE-1269 Exception in push dependency check when there is also a pull dependency leaves it in waiting till timeout (rohini via virag)
OOZIE-1267 Dryrun option for push missing deps (virag)
Modified: oozie/trunk/webapp/src/main/webapp/oozie-console.js
URL: http://svn.apache.org/viewvc/oozie/trunk/webapp/src/main/webapp/oozie-console.js?rev=1457895&r1=1457894&r2=1457895&view=diff
==============================================================================
--- oozie/trunk/webapp/src/main/webapp/oozie-console.js (original)
+++ oozie/trunk/webapp/src/main/webapp/oozie-console.js Mon Mar 18 17:54:54 2013
@@ -86,6 +86,13 @@ function getTimeZone() {
return Ext.state.Manager.get("TimezoneId","GMT");
}
+if ( !String.prototype.endsWith ) {
+ String.prototype.endsWith = function(pattern) {
+ var d = this.length - pattern.length;
+ return d >= 0 && this.lastIndexOf(pattern) === d;
+ };
+}
+
// Makes a tree node from an XML
function treeNodeFromXml(XmlEl) {
var t = ((XmlEl.nodeType == 3) ? XmlEl.nodeValue : XmlEl.tagName);
@@ -2188,7 +2195,17 @@ function initConsole() {
// viewCoordJobs.execute();
var jobId = getReqParam("job");
if (jobId != "") {
- jobDetailsGridWindow(jobId);
+ if (jobId.endsWith("-C")) {
+ coordJobDetailsGridWindow(jobId);
+ }
+ else if (jobId.endsWith("-B")) {
+ bundleJobDetailsGridWindow(jobId);
+ }
+ else
+ {
+ jobDetailsGridWindow(jobId);
+ }
+
}
}
// now the on ready function