ambari git commit: AMBARI-19419 : Save workflows via save mechanism instead of submission button configured (Venkata Sairam via nitirajrathore)
Repository: ambari Updated Branches: refs/heads/branch-2.5 f6b288f0d -> 490032f17 AMBARI-19419 : Save workflows via save mechanism instead of submission button configured (Venkata Sairam via nitirajrathore) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/490032f1 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/490032f1 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/490032f1 Branch: refs/heads/branch-2.5 Commit: 490032f17de1f792019e393221a5a93fa1cbfb50 Parents: f6b288f Author: Nitiraj Rathore Authored: Tue Jan 10 15:01:54 2017 +0530 Committer: Nitiraj Rathore Committed: Tue Jan 10 15:01:54 2017 +0530 -- .../ambari/view/OozieProxyImpersonator.java | 4 +- .../WorkflowsManagerResource.java | 2 +- .../resources/ui/app/adapters/application.js| 27 + .../app/components/design/proj-manager-tabs.js | 21 .../ui/app/components/designer-workspace.js | 35 +- .../resources/ui/app/components/drafts-wf.js| 69 +++ .../ui/app/helpers/format-unicode-date.js | 24 .../main/resources/ui/app/models/wfproject.js | 25 .../src/main/resources/ui/app/router.js | 1 + .../src/main/resources/ui/app/routes/design.js | 8 ++ .../ui/app/routes/design/proj-manager-tab.js| 29 + .../src/main/resources/ui/app/styles/app.less | 25 +++- .../components/design/proj-manager-tabs.hbs | 18 +++ .../templates/components/designer-workspace.hbs | 11 ++ .../ui/app/templates/components/drafts-wf.hbs | 121 +++ .../main/resources/ui/app/templates/design.hbs | 4 +- .../app/templates/design/proj-manager-tab.hbs | 19 +++ .../main/resources/ui/app/utils/constants.js| 1 + .../components/design/proj-manager-tabs-test.js | 41 +++ .../integration/components/drafts-wf-test.js| 41 +++ .../ui/tests/unit/adapters/application-test.js | 29 + .../unit/helpers/format-unicode-date-test.js| 27 + .../ui/tests/unit/models/wfproject-test.js | 29 + .../unit/routes/design/proj-manager-tab-test.js | 28 + 24 files changed, 631 insertions(+), 8 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ambari/blob/490032f1/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java -- diff --git a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java index df2e3d8..7596de0 100644 --- a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java +++ b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java @@ -76,7 +76,7 @@ public class OozieProxyImpersonator { private final HDFSFileUtils hdfsFileUtils; private final WorkflowFilesService workflowFilesService; private WorkflowManagerService workflowManagerService; - private static final boolean PROJ_MANAGER_ENABLED = false; + private static final boolean PROJ_MANAGER_ENABLED = true; private final OozieDelegate oozieDelegate; private final OozieUtils oozieUtils = new OozieUtils(); private final AssetResource assetResource; @@ -511,4 +511,4 @@ public class OozieProxyImpersonator { } return getErrorDetails(errorCode, errorMessage, ex); } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/ambari/blob/490032f1/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java -- diff --git a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java index 64e2060a..7513107 100644 --- a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java +++ b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java @@ -46,7 +46,7 @@ public class WorkflowsManagerResource { @DELETE - @Path("/projectId") + @Path("/{projectId}") public void deleteWorkflow( @PathParam("projectId") String id, @DefaultValue("false") @QueryParam("deleteDefinition") Boolean deleteDefinition){ workflowManagerService.deleteWorkflow(id,deleteDefinition); http://git-wip-us.apache.org/repos/asf/ambari/blob/490032f1/contrib/views/wfmanager/src/main/resources/ui/app/adapters/application.js --
ambari git commit: AMBARI-19419 : Save workflows via save mechanism instead of submission button configured (Venkata Sairam via nitirajrathore)
Repository: ambari Updated Branches: refs/heads/trunk 96aaf1dbb -> 21697822f AMBARI-19419 : Save workflows via save mechanism instead of submission button configured (Venkata Sairam via nitirajrathore) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/21697822 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/21697822 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/21697822 Branch: refs/heads/trunk Commit: 21697822f96c69b03eb6534b55f4fedabb311fd7 Parents: 96aaf1d Author: Nitiraj Rathore Authored: Tue Jan 10 15:01:54 2017 +0530 Committer: Nitiraj Rathore Committed: Tue Jan 10 15:05:19 2017 +0530 -- .../ambari/view/OozieProxyImpersonator.java | 4 +- .../WorkflowsManagerResource.java | 2 +- .../resources/ui/app/adapters/application.js| 27 + .../app/components/design/proj-manager-tabs.js | 21 .../ui/app/components/designer-workspace.js | 35 +- .../resources/ui/app/components/drafts-wf.js| 69 +++ .../ui/app/helpers/format-unicode-date.js | 24 .../main/resources/ui/app/models/wfproject.js | 25 .../src/main/resources/ui/app/router.js | 1 + .../src/main/resources/ui/app/routes/design.js | 8 ++ .../ui/app/routes/design/proj-manager-tab.js| 29 + .../src/main/resources/ui/app/styles/app.less | 25 +++- .../components/design/proj-manager-tabs.hbs | 18 +++ .../templates/components/designer-workspace.hbs | 11 ++ .../ui/app/templates/components/drafts-wf.hbs | 121 +++ .../main/resources/ui/app/templates/design.hbs | 4 +- .../app/templates/design/proj-manager-tab.hbs | 19 +++ .../main/resources/ui/app/utils/constants.js| 1 + .../components/design/proj-manager-tabs-test.js | 41 +++ .../integration/components/drafts-wf-test.js| 41 +++ .../ui/tests/unit/adapters/application-test.js | 29 + .../unit/helpers/format-unicode-date-test.js| 27 + .../ui/tests/unit/models/wfproject-test.js | 29 + .../unit/routes/design/proj-manager-tab-test.js | 28 + 24 files changed, 631 insertions(+), 8 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ambari/blob/21697822/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java -- diff --git a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java index df2e3d8..7596de0 100644 --- a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java +++ b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java @@ -76,7 +76,7 @@ public class OozieProxyImpersonator { private final HDFSFileUtils hdfsFileUtils; private final WorkflowFilesService workflowFilesService; private WorkflowManagerService workflowManagerService; - private static final boolean PROJ_MANAGER_ENABLED = false; + private static final boolean PROJ_MANAGER_ENABLED = true; private final OozieDelegate oozieDelegate; private final OozieUtils oozieUtils = new OozieUtils(); private final AssetResource assetResource; @@ -511,4 +511,4 @@ public class OozieProxyImpersonator { } return getErrorDetails(errorCode, errorMessage, ex); } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/ambari/blob/21697822/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java -- diff --git a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java index 64e2060a..7513107 100644 --- a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java +++ b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/workflowmanager/WorkflowsManagerResource.java @@ -46,7 +46,7 @@ public class WorkflowsManagerResource { @DELETE - @Path("/projectId") + @Path("/{projectId}") public void deleteWorkflow( @PathParam("projectId") String id, @DefaultValue("false") @QueryParam("deleteDefinition") Boolean deleteDefinition){ workflowManagerService.deleteWorkflow(id,deleteDefinition); http://git-wip-us.apache.org/repos/asf/ambari/blob/21697822/contrib/views/wfmanager/src/main/resources/ui/app/adapters/application.js