Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMPASS-373: Don't report user errors as application errors #693

Merged
merged 3 commits into from Dec 15, 2016

Conversation

durran
Copy link
Member

@durran durran commented Dec 15, 2016

This pull request does a few things:

It filters out all MongoErrors that would be sent to Intercom and Bugsnag to reduce clutter in these services. See: mongodb-js/metrics#15

Based on Bugsnag activity, the only MongoError that was not being displayed to the user when happening was an unauthorized count error from the documents tab... This is now displayed to the user as shown next:

screen shot 2016-12-15 at 7 29 07 pm

This pull request also addresses the incorrect number of "documents loaded count in the documents list sampling message bar" when starting with less than 20 documents and inserting via Compass until the list goes over 20. Before, for example, when there were 20 documents and the user inserted 1 new document via Compass, the sampling message would display the correct count, but say "Viewing documents 1-41" when only 21 documents existed. Now this is fixed.

screen shot 2016-12-15 at 6 14 57 pm

This pull also fixes the regression of retaining state of document element expansion. With the introduction of the expand all/collapse all functionality, the elements had lost their state when switching between view and edit modes. This is now resolved.

And last but not least, this pull also fixes COMPASS-529. When loading more documents, the LoadMoreDocumentsStore now is "filter aware" based on the new React query bar events.

@durran durran changed the title COMPASS-373: Filtering out MongoErrors. COMPASS-373/COMPASS-529: Filtering out MongoErrors/Fix CRUD pagination with filter. Dec 15, 2016
@fredtruman
Copy link
Contributor

👍

@durran durran merged commit 734f3b0 into master Dec 15, 2016
@durran durran deleted the COMPASS-373 branch December 15, 2016 20:51
@imlucas imlucas changed the title COMPASS-373/COMPASS-529: Filtering out MongoErrors/Fix CRUD pagination with filter. COMPASS-373: Don't report user errors as application errors Dec 21, 2016
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.

None yet

2 participants