ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-8959) UI uses old sub-resource names for API requests to /stacks/
Date Tue, 30 Dec 2014 18:06:13 GMT

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

Hudson commented on AMBARI-8959:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit-docker #633 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/633/])
AMBARI-8959. UI uses old sub-resource names for API requests to /stacks/. (akovalenko) (akovalenko:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f1e86c999f3bf2075feb2b7207d29b84e4c4c11d)
* ambari-web/test/service_components.js
* ambari-web/app/assets/data/wizard/stack/stacks.json
* ambari-web/app/mappers/stack_mapper.js
* ambari-web/app/models/stack_service.js
* ambari-web/app/controllers/main/admin/stack_versions/repo_version_management_controller.js
* ambari-web/app/assets/data/stacks/HDP-2.1/service_components.json
* ambari-web/app/mappers/stack_service_mapper.js
* ambari-web/app/utils/ajax/ajax.js
* ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
* ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsEditCtrl.js
* ambari-web/app/mappers/repository_version_mapper.js
* ambari-web/test/mappers/stack_mapper_test.js
* ambari-web/test/stack.js
* ambari-web/app/assets/data/wizard/stack/HDP_versions.json


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

Mime
View raw message