Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Fix Atlas test
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Mar 17, 2020
1 parent c63ec05 commit 7b3cfd5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/stores/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ const DeploymentAwarenessStore = Reflux.createStore({
this.appRegistry = appRegistry;
appRegistry.on('data-service-initialized', this.onDataServiceInitialized.bind(this));
appRegistry.on('instance-refreshed', (state) => {
console.log('instance-refreshed', state);
const isAtlas = !!state.instance._id.match(ATLAS);
console.log('isAtlas', isAtlas);
const isAtlas = !!state.instance._id.match(ATLAS_REGEX);
const isDataLake = state.instance.dataLake && state.instance.dataLake.isDataLake;
console.log('isDataLake', isDataLake);
if (isAtlas && !isDataLake) {
this.setState({ isDataLake: false, env: ATLAS });
} else if (isDataLake) {
Expand All @@ -61,7 +58,6 @@ const DeploymentAwarenessStore = Reflux.createStore({
* @param {Event} evt - The topologyDescriptionChanged event.
*/
topologyDescriptionChanged(evt) {
console.log('topology changed', evt);
const newDescription = evt.newDescription;
const servers = [];
for (const desc of newDescription.servers.values()) {
Expand All @@ -72,7 +68,6 @@ const DeploymentAwarenessStore = Reflux.createStore({
});
}
if (this.state.topologyType !== newDescription.type) {
console.log('emitting', this.state);
this.appRegistry.emit(
'compass:deployment-awareness:topology-changed',
{
Expand Down

0 comments on commit 7b3cfd5

Please sign in to comment.