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

extract and isolate error handling from GitStore internals #6613

Closed
wants to merge 3 commits into from

Conversation

shiftkey
Copy link
Member

Overview

First part of #6595

Currently the default error handling has been owned by GitStore, but as we've moved towards running Git operations outside of a GitStore (because we don't need to cache the result), there has been some confusion about the right way to leverage the inbuilt error handling so that unhandled errors do not bring down the app.

Description

This PR extracts the logic for GitStore.createFailableOperationHandler into it's own module, and provides a more familiar withErrorHandling function in the places where this is currently used.

Release notes

Notes: no-notes

@shiftkey shiftkey added the tech-debt Issues and pull requests related to addressing technical debt or improving the codebase label Jan 14, 2019
@shiftkey shiftkey force-pushed the experiment-isolate-error-handling branch 5 times, most recently from df2ed68 to 096d22e Compare February 17, 2019 19:55
@shiftkey shiftkey force-pushed the experiment-isolate-error-handling branch 20 times, most recently from 097f03a to f9764e7 Compare March 1, 2019 20:02
@shiftkey shiftkey force-pushed the experiment-isolate-error-handling branch 4 times, most recently from 097f03a to f9764e7 Compare March 1, 2019 20:25
@shiftkey shiftkey force-pushed the experiment-isolate-error-handling branch 10 times, most recently from ad98fb6 to 16f8188 Compare March 7, 2019 15:04
@shiftkey shiftkey force-pushed the experiment-isolate-error-handling branch 6 times, most recently from a18cd6c to 5bf0c0e Compare March 25, 2019 20:20
@nerdneha nerdneha added this to PR Needs Triage in PR Priority Apr 26, 2019
@nerdneha nerdneha moved this from PR Draft or Needs to be Prioritized to PR Priority in PR Priority Apr 26, 2019
@shiftkey shiftkey force-pushed the experiment-isolate-error-handling branch 2 times, most recently from b8432e1 to e098ac5 Compare April 26, 2019 14:54
@nerdneha nerdneha moved this from PR Priority to PR Draft or Needs to be Prioritized in PR Priority Apr 26, 2019
@nerdneha nerdneha moved this from Needs to be Prioritized to PR Draft in PR Priority Apr 26, 2019
@shiftkey shiftkey force-pushed the experiment-isolate-error-handling branch from e098ac5 to 45531c5 Compare May 30, 2019 13:37
@shiftkey
Copy link
Member Author

Closing this out for now to ponder on alternative ways to present this

@shiftkey shiftkey closed this May 31, 2019
PR Priority automation moved this from PR Draft to Done May 31, 2019
@shiftkey shiftkey deleted the experiment-isolate-error-handling branch June 17, 2019 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Issues and pull requests related to addressing technical debt or improving the codebase
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant