Return-Path: X-Original-To: apmail-aurora-commits-archive@minotaur.apache.org Delivered-To: apmail-aurora-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CECF11EA4 for ; Fri, 16 May 2014 19:40:22 +0000 (UTC) Received: (qmail 79303 invoked by uid 500); 16 May 2014 19:24:50 -0000 Delivered-To: apmail-aurora-commits-archive@aurora.apache.org Received: (qmail 61322 invoked by uid 500); 16 May 2014 19:03:30 -0000 Mailing-List: contact commits-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list commits@aurora.incubator.apache.org Received: (qmail 72408 invoked by uid 99); 16 May 2014 19:00:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 19:00:26 +0000 X-ASF-Spam-Status: No, hits=-1999.8 required=5.0 tests=ALL_TRUSTED,DATE_IN_PAST_12_24,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 16 May 2014 19:00:15 +0000 Received: (qmail 15052 invoked by uid 99); 16 May 2014 10:16:12 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 10:16:12 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 39B3A9214B7; Thu, 15 May 2014 21:12:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mansu@apache.org To: commits@aurora.incubator.apache.org Message-Id: <49f31cae76f34650981e6a4c46c19beb@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Removed cron jobs table from role and env page. Added cron job summary to job page. Date: Thu, 15 May 2014 21:12:56 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Repository: incubator-aurora Updated Branches: refs/heads/master e50ba7df1 -> 301617852 Removed cron jobs table from role and env page. Added cron job summary to job page. Updated getTasksQuery to not throw an exception when requesting a cron job with no tasks. Testing Done: Tested on local laptop. ./gradlew clean build. ./pants src/test/python:all -vxs Bugs closed: AURORA-384 Reviewed at https://reviews.apache.org/r/21250/ Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/30161785 Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/30161785 Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/30161785 Branch: refs/heads/master Commit: 301617852e0fffbad5bdd2b9c3a3a00314779cd0 Parents: e50ba7d Author: Suman Karumuri Authored: Thu May 15 14:11:58 2014 -0700 Committer: Suman Karumuri Committed: Thu May 15 14:11:58 2014 -0700 ---------------------------------------------------------------------- .../thrift/SchedulerThriftInterface.java | 19 +-- .../apache/aurora/scheduler/http/ui/job.html | 22 ++++ .../aurora/scheduler/http/ui/js/controllers.js | 122 ++++++------------- .../aurora/scheduler/http/ui/js/filters.js | 16 ++- .../aurora/scheduler/http/ui/js/services.js | 49 ++++++++ .../apache/aurora/scheduler/http/ui/role.html | 11 +- 6 files changed, 125 insertions(+), 114 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/30161785/src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java b/src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java index f101143..4386a86 100644 --- a/src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java +++ b/src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java @@ -337,18 +337,9 @@ class SchedulerThriftInterface implements AuroraAdmin.Iface { Set tasks = Storage.Util.weaklyConsistentFetchTasks(storage, Query.arbitrary(query)); - Response response = new Response(); - - if (tasks.isEmpty()) { - response.setResponseCode(INVALID_REQUEST) - .setMessage("No tasks found for query: " + query); - } else { - response.setResponseCode(OK) - .setResult(Result.scheduleStatusResult( - new ScheduleStatusResult().setTasks(IScheduledTask.toBuildersList(tasks)))); - } - - return response; + return new Response().setResponseCode(OK) + .setResult(Result.scheduleStatusResult( + new ScheduleStatusResult().setTasks(IScheduledTask.toBuildersList(tasks)))); } @Override @@ -403,8 +394,8 @@ class SchedulerThriftInterface implements AuroraAdmin.Iface { private Query.Builder maybeRoleScoped(Optional ownerRole) { return ownerRole.isPresent() - ? Query.roleScoped(ownerRole.get()) - : Query.unscoped(); + ? Query.roleScoped(ownerRole.get()) + : Query.unscoped(); } private Map getJobs( http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/30161785/src/main/resources/org/apache/aurora/scheduler/http/ui/job.html ---------------------------------------------------------------------- diff --git a/src/main/resources/org/apache/aurora/scheduler/http/ui/job.html b/src/main/resources/org/apache/aurora/scheduler/http/ui/job.html index cd78c20..284c2bc 100644 --- a/src/main/resources/org/apache/aurora/scheduler/http/ui/job.html +++ b/src/main/resources/org/apache/aurora/scheduler/http/ui/job.html @@ -22,6 +22,28 @@ +
+
+ +
+ +
+
+
+

Cron Job Summary

+ +
+ + +
+
+
+
+
+
-
+
@@ -47,15 +47,6 @@ class='table table-striped table-hover table-bordered table-condensed'>
- -
-

Cron jobs for role {{role}}

- - -