Hi everyone,
I'm trying to to implement a way to manage multiple clusters from single ambari
web interface. I never worked with ember framework so I try to understant
gradually.
I'm able to modify template (to add clusterName field to the login form),
implement modifications in controllers, routes etc. In this first
implementation, if you want to switch to another cluster, you have to sign out
and log in again with another cluster name.
Everything works except one thing. I still have a problem with Ember datastore
which is not fully reloaded for each login step. It makes that when I login
with another cluster name, previous service name and hosts (inter alia) still
displayed.
When user logs out, I could remove each items related to the current cluster
stored in App.store, but I don't know if it is the best way. ->
App.store.findAll(App.[MODEL]).forEach(function(item){item.deleteRecord()})
I'll suggest a patch for issue 1518 if I found an appropriate solution.
Thanks.
Thibaut Marmin