You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/02/16 13:15:03 UTC

[jira] [Commented] (AMBARI-20674) Able to hide the Delete menu item from UI for a given service

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

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

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8744 (See [https://builds.apache.org/job/Ambari-trunk-Commit/8744/])
AMBARI-20674 Able to hide the Delete menu item from UI for a given (aonishuk: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=784ceeaaffeca873be49ee80e38c7de3cdaea2dd])
* (edit) ambari-web/app/models/host_component.js
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java
* (edit) ambari-server/src/main/resources/properties.json
* (edit) ambari-web/test/mappers/stack_service_mapper_test.js
* (edit) ambari-web/test/views/main/service/item_test.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/models/stack_service.js
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackServiceResourceProvider.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/state/ServiceInfoTest.java
* (edit) ambari-web/app/app.js
* (edit) ambari-web/app/mappers/stack_service_mapper.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
>            Priority: Major
>             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
(v7.6.3#76005)