[ 
https://issues.apache.org/jira/browse/AMBARI-20674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15959804#comment-15959804
 ] 

Hudson commented on AMBARI-20674:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7252 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/7252/])
AMBARI-20674 Able to hide the Delete menu item from UI for a given (dili: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=301896a12d7bb3b3a1402138ebf10667fc54a369])
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackServiceResourceProvider.java
* (edit) ambari-web/app/models/stack_service.js
* (edit) ambari-server/src/main/resources/properties.json
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java
* (edit) ambari-web/app/app.js
* (edit) ambari-web/app/models/host_component.js
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/controller/StackServiceResponse.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/stack/ServiceModule.java
* (edit) ambari-web/app/mappers/stack_service_mapper.js
* (edit) ambari-web/test/mappers/stack_service_mapper_test.js
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/state/ServiceInfoTest.java
* (edit) ambari-web/test/views/main/service/item_test.js


> 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)

Reply via email to