-
Notifications
You must be signed in to change notification settings - Fork 985
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
throw errors on dangerous behaviours #9032
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (12)
|
yenda
force-pushed
the
fix/throw-errors-unstable-state
branch
from
September 25, 2019 06:46
166b7a6
to
577cbb7
Compare
flexsurfer
approved these changes
Sep 25, 2019
tested on iPhone, it doesn't crash the app with #8930 but it does prevent account toasting |
yenda
force-pushed
the
fix/throw-errors-unstable-state
branch
2 times, most recently
from
September 25, 2019 13:44
2360126
to
6662895
Compare
100% of end-end tests have passed
Passed tests (47)Click to expand |
- if multiaccount settings are saved on top of an empty map or nil, this means something went wrong, the state of the app is unstable, and actually saving will result in loss of data. It should never happen, but if it does, throw and error and abort. - sometimes two fxs are merged when they shouldn't, this is caused by bugs and should never happen, but if it does, throw an error with arguments for both effects to help localize the error Signed-off-by: yenda <eric@status.im>
yenda
force-pushed
the
fix/throw-errors-unstable-state
branch
from
September 25, 2019 17:34
6662895
to
c047b58
Compare
delete-merged-branch
bot
deleted the
fix/throw-errors-unstable-state
branch
September 25, 2019 17:34
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR doesn't fix anything but instead will help solve a few pending bugs. (it will change the way these bugs manifest and decrease their severity, accounts shouldn't be toasted anymore and instead the app crashes and the issue is logged)
this means something went wrong, the state of the app is unstable,
and actually saving will result in loss of data. It should never
happen, but if it does, throw and error and abort.
bugs and should never happen, but if it does, throw an error with arguments
for both effects to help localize the error
status: ready