Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-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 4FDED113BD for ; Tue, 19 Aug 2014 20:19:20 +0000 (UTC) Received: (qmail 69283 invoked by uid 500); 19 Aug 2014 20:19:20 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 69229 invoked by uid 500); 19 Aug 2014 20:19:20 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 68930 invoked by uid 99); 19 Aug 2014 20:19:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2014 20:19:20 +0000 Date: Tue, 19 Aug 2014 20:19:20 +0000 (UTC) From: "Srimanth Gunturi (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-6923) Views: add property to know if the view instance is xml defined or not 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/AMBARI-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14102765#comment-14102765 ] Srimanth Gunturi commented on AMBARI-6923: ------------------------------------------ +1 for patch. > Views: add property to know if the view instance is xml defined or not > ---------------------------------------------------------------------- > > Key: AMBARI-6923 > URL: https://issues.apache.org/jira/browse/AMBARI-6923 > Project: Ambari > Issue Type: Bug > Components: controller > Affects Versions: 1.7.0 > Reporter: Siddharth Wagle > Assignee: Siddharth Wagle > Fix For: 1.7.0 > > Attachments: AMBARI-6923.patch > > > /api/v1/views/ADMIN_VIEW/versions/1.0.0/ > If a view instance is defined in the XML (i.e. a "static view instance"), that means we cannot modify the display label, or visible flag (among other things). > We should expose a property in the API with the ViewInstanceInfo to know if "is_xml = true/false" so that we can use that in the Admin UI to disable the fields that are not editable. We can then also put an icon next to the instances that are static. -- This message was sent by Atlassian JIRA (v6.2#6252)