[
https://issues.apache.org/jira/browse/AMBARI-8959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14261175#comment-14261175
]
Andrii Babiichuk commented on AMBARI-8959:
------------------------------------------
+1 for the patch
> UI uses old sub-resource names for API requests to /stacks/
> -----------------------------------------------------------
>
> Key: AMBARI-8959
> URL: https://issues.apache.org/jira/browse/AMBARI-8959
> Project: Ambari
> Issue Type: Task
> Components: ambari-web
> Affects Versions: 2.0.0
> Reporter: Aleksandr Kovalenko
> Assignee: Aleksandr Kovalenko
> Fix For: 2.0.0
>
> Attachments: AMBARI-8959.patch
>
>
> BE contains a hotfix for renaming old-style subresource names to new ones:
> "stackServices" -> "services"
> "serviceComponents" -> "components"
> "operatingSystems" -> "operating_systems"
> The logic for the replacement is `if href contains /stacks/ and not contains
> _=`, so it returns `operating_systems` for regular requests and
> `operatingSystems` for requests from UI, as all of them contain cache busters.
> UI should use new names everywhere; after that it would be possible to remove
> the hotfix from BE.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)