[
https://issues.apache.org/jira/browse/SOLR-18120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Pugh updated SOLR-18120:
-----------------------------
Description:
I was looking for werid use of "$.parseJSON(data)" in the solr webapp, and
noticed that in services.js we have a set of resources defined:
{{{
return $resource('admin/zookeeper', \{wt:'json', _:Date.now()}, {
"simple": {},
"liveNodes": \{params: {path: '/live_nodes'}},
"clusterState": \{params: {detail: "true", path: "/clusterstate.json"}},
"detail": \{params: {detail: "true", path: "@path"}},
"configs": \{params: {detail:false, path: "/configs/"}},
"aliases": \{params: {detail: "true", path: "/aliases.json"},
transformResponse:function(data) {
var znode = $.parseJSON(data).znode;
if (znode.data) {
return \{aliases: $.parseJSON(znode.data).collection};
} else {
return \{aliases: {}};
}
}}
}}}
I think "aliases" no longer is used. I want to check the others.
> Remove remnant Aliases code from Solr Admin Webapp
> --------------------------------------------------
>
> Key: SOLR-18120
> URL: https://issues.apache.org/jira/browse/SOLR-18120
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 10.0
> Reporter: Eric Pugh
> Priority: Major
>
> I was looking for werid use of "$.parseJSON(data)" in the solr webapp, and
> noticed that in services.js we have a set of resources defined:
> {{{
> return $resource('admin/zookeeper', \{wt:'json', _:Date.now()}, {
> "simple": {},
> "liveNodes": \{params: {path: '/live_nodes'}},
> "clusterState": \{params: {detail: "true", path: "/clusterstate.json"}},
> "detail": \{params: {detail: "true", path: "@path"}},
> "configs": \{params: {detail:false, path: "/configs/"}},
> "aliases": \{params: {detail: "true", path: "/aliases.json"},
> transformResponse:function(data) {
> var znode = $.parseJSON(data).znode;
> if (znode.data) {
> return \{aliases: $.parseJSON(znode.data).collection};
> } else {
> return \{aliases: {}};
> }
> }}
> }}}
>
> I think "aliases" no longer is used. I want to check the others.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]