You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Di Li (JIRA)" <ji...@apache.org> on 2017/04/04 18:27:42 UTC
[jira] [Created] (AMBARI-20674) About to hide the Delete menu item
from UI for a given service
Di Li created AMBARI-20674:
------------------------------
Summary: About to hide the Delete menu item from UI for a given service
Key: AMBARI-20674
URL: https://issues.apache.org/jira/browse/AMBARI-20674
Project: Ambari
Issue Type: Improvement
Components: ambari-server, ambari-web
Affects Versions: trunk
Reporter: Di Li
Assignee: Di Li
Fix For: trunk
Stack driven approach to have UI show/hide Delete service menu item for a given service.
A service's metainfo.xml can have
<supportDeleteViaUI>false</supportDeleteViaUI> set at the service level to indicate UI should hide the menu item. Directly going thru REST API calls are always supported and non-restricted.
If the section is missing, it will be treated as "support" UI delete service operation. In other words, UI only hides the menu item if metainfo.xml has explicitly set the flag to false.
Example.
"<metainfo>" +
" <schemaVersion>2.0</schemaVersion>" +
" <services>" +
" <service>" +
" <name>HDFS</name>" +
" <displayName>HDFS</displayName>" +
" <supportDeleteViaUI>false</supportDeleteViaUI>" +
" </service>" +
" </services>" +
"</metainfo>";
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)