Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 582F41197E for ; Mon, 11 Aug 2014 22:22:43 +0000 (UTC) Received: (qmail 28426 invoked by uid 500); 11 Aug 2014 22:22:38 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 28382 invoked by uid 500); 11 Aug 2014 22:22:38 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 28370 invoked by uid 99); 11 Aug 2014 22:22:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 22:22:38 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,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; Mon, 11 Aug 2014 22:22:16 +0000 Received: (qmail 26701 invoked by uid 99); 11 Aug 2014 22:22:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 22:22:13 +0000 Date: Mon, 11 Aug 2014 22:22:13 +0000 (UTC) From: "Venkatesh Seetharam (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-470) Add support for pagination to list API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14093443#comment-14093443 ] Venkatesh Seetharam commented on FALCON-470: -------------------------------------------- A lot of issues with the code and it wont compile. FalconCLI * lot of repetitive code, can refactor into a method {code} if (commandLine.getOptionValue(OFFSET_OPT) != null) { try { offset = Integer.parseInt(commandLine.getOptionValue(OFFSET_OPT)); } catch (NumberFormatException e) { throw new FalconCLIException("Input value provided for queryParam \"offset\" is not a valid Integer"); } } {code} * refactor this into a method {code} if (fields == null) { fields = ""; } else if (!fields.equalsIgnoreCase("status")) { throw new FalconCLIException("Invalid value for queryParam \"fields\" : "+fields); } {code} * CLI is getting too unweildy, we could may be add enums and construct options from 'em, may be another jira FalconClient * why have you removed SUSPEND CHECKSTYLE CHECK ParameterNumberCheck * Formatting is incorrect in ResourceList.twiki. Did you verify the generated HTML? * You have disabled a test: org/apache/falcon/resource/EntityManagerJerseyIT.testProcessInputUpdate * ProcessInstanceManagerIT is disabled, how did you verify? AbstractEntityManager * why do you have ugi as an instance variable? {code}protected UserGroupInformation currentUgi{code} * getEntityList is quite long, bad practice, pls refactor into methods. filterByField init is a easy candidate * There are 2 duplicate methods for isEntityAuthorized AbstractInstanceManager * method getInstanceResultSubset is too long, refactor * I see a log of repetitive code which can be factored into the base class. pls apply DRY principle > Add support for pagination to list API > -------------------------------------- > > Key: FALCON-470 > URL: https://issues.apache.org/jira/browse/FALCON-470 > Project: Falcon > Issue Type: Sub-task > Components: webapp > Affects Versions: 0.6 > Reporter: Venkatesh Seetharam > Assignee: Balu Vellanki > Labels: rest_api > Fix For: 0.6 > > Attachments: Falcon-Jira-470-471-472-473-v1.patch > > -- This message was sent by Atlassian JIRA (v6.2#6252)