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 6E6C31855A for ; Mon, 7 Dec 2015 13:28:11 +0000 (UTC) Received: (qmail 17000 invoked by uid 500); 7 Dec 2015 13:28:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 16966 invoked by uid 500); 7 Dec 2015 13:28:11 -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 16929 invoked by uid 99); 7 Dec 2015 13:28:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 13:28:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F001A2C14DC for ; Mon, 7 Dec 2015 13:28:10 +0000 (UTC) Date: Mon, 7 Dec 2015 13:28:10 +0000 (UTC) From: "Di Li (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-11268) Quick links for custom services 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-11268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Di Li updated AMBARI-11268: --------------------------- Attachment: AMBARI-11268.patch > Quick links for custom services > ------------------------------- > > Key: AMBARI-11268 > URL: https://issues.apache.org/jira/browse/AMBARI-11268 > Project: Ambari > Issue Type: Improvement > Components: ambari-server > Affects Versions: 2.1.0 > Reporter: Dmitry Vasilenko > Assignee: Di Li > Labels: feature_custom_service > Fix For: 2.2.0 > > Attachments: AMBARI-11268.patch, Stack Driven Quick Links.pdf > > > The existing version of the Ambari (2.0) does not have a declarative way to add "Quick Links" for the custom services. Currently, to add a "Quick Links" dropdown one has to do the following: > 1. Extract app.js file from /usr/lib/ambari-server/web/javascripts/app.js.gz to some directory. > 2. Add MY_CUSTOM_SERVICE entry to the quickLinks: > {noformat} > mapQuickLinks: function (finalJson, item){ > if(!(item && item.ServiceInfo)) return; > var quickLinks = { > OOZIE: [19], > GANGLIA: [20], > STORM: [31], > FALCON: [32], > RANGER: [33], > SPARK: [34], > MY_CUSTOM_SERVICE: [35] > }; > {noformat} > 3. Add an entry to > {noformat} > App.QuickLinks.FIXTURES = [ > { > id: 35, > label:'My Custom Service Admin UI', > url:'%@://%@:8090/my_custom_service/admin', > service_id: 'MY_CUSTOM_SERVICE', > template:'%@://%@:8090/my_custom_service/admin' > }, > {noformat} > 4. GZip the app.js and upload it to the Ambari server as /usr/lib/ambari-server/web/javascripts/app.js.gz. > Having a declarative way of adding "Quick Links" on the custom service level will be much more convenient. -- This message was sent by Atlassian JIRA (v6.3.4#6332)