Skip to content

Conversation

pzrq
Copy link
Contributor

@pzrq pzrq commented Aug 17, 2017

Stops onQueryChanged being called twice in Compass.

For a complete fix, this also requires: mongodb-js/compass-crud#2

Stops onQueryChanged being called twice in Compass.
@pzrq
Copy link
Contributor Author

pzrq commented Aug 17, 2017

I have verified these with the npm run link-plugin script and adding a debug / console.log statement into each onQueryChanged handler.

Before

screen shot 2017-08-17 at 2 18 42 pm

screen shot 2017-08-17 at 2 30 44 pm

After

screen shot 2017-08-17 at 2 19 17 pm

screen shot 2017-08-17 at 2 31 37 pm

@pzrq
Copy link
Contributor Author

pzrq commented Aug 17, 2017

I didn't think it appropriate to add unit tests as I'm not sure how to generalise such a test to all registered onQueryChanged handlers to check they are each called not more than once, though I can investigate that if necessary.

@rueckstiess
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants