[
https://issues.apache.org/jira/browse/AMBARI-20674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15959738#comment-15959738
]
Di Li commented on AMBARI-20674:
--------------------------------
pushed to trunk as
https://git-wip-us.apache.org/repos/asf?p=ambari.git;a=commit;h=301896a12d7bb3b3a1402138ebf10667fc54a369
> Able 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
>
> Attachments: AMBARI-20674.patch
>
>
> 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)