Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78E4917F2F for ; Thu, 30 Oct 2014 04:17:34 +0000 (UTC) Received: (qmail 57482 invoked by uid 500); 30 Oct 2014 04:17:34 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 57442 invoked by uid 500); 30 Oct 2014 04:17:34 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 57428 invoked by uid 99); 30 Oct 2014 04:17:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2014 04:17:34 +0000 Date: Thu, 30 Oct 2014 04:17:34 +0000 (UTC) From: "Qian Xu (JIRA)" To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SQOOP-1643) Sqoop2: Add Requires/Optional attribute support for input names MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SQOOP-1643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189624#comment-14189624 ] Qian Xu commented on SQOOP-1643: -------------------------------- In order not to bring too much complexity, I'd suggest use an annotation. @Input(size = 255) @Optional("A filtering clause of the query") String filter; In user interactive mode, user will see {{> FILTER (A filtering clause of the query): }} Note that localization should be considered. > Sqoop2: Add Requires/Optional attribute support for input names > ---------------------------------------------------------------- > > Key: SQOOP-1643 > URL: https://issues.apache.org/jira/browse/SQOOP-1643 > Project: Sqoop > Issue Type: Sub-task > Reporter: Veena Basavaraj > Assignee: Veena Basavaraj > Fix For: 1.99.4 > > > The goal is to have much better user experience when user has to fill out the values for config inputs in the UI/ shell client. > Today there is no way to tell if a input is required or optional. Also the help labels should be more clear in explaining what each of them mean and when their value is not required. We can even group the required ones first and then the optional ones latter > Similar to > {code} > /** > * Sqoop will ensure that sensitive information will not be easily > * accessible. > * > * @return True if field is sensitive > */ > boolean sensitive() default false; > boolean required() default true; > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)