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

Improve minimal report app/device information #239

Merged
merged 6 commits into from
Feb 28, 2018

Conversation

fractalwrench
Copy link
Contributor

Changes report generation so that when a minimal or incomplete crash is recorded, essential app/device information is included in the report on the next startup.

Partially addresses #224

bugsnagReport.app = @{
@"bundleVersion": sysInfo[@BSG_KSSystemField_BundleVersion],
@"id": sysInfo[@BSG_KSSystemField_BundleID],
@"releaseStage": configuration.releaseStage,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a risk here for any of these values to be nil, particularly release stage if overridden by the user, so inserting values only if not nil would be prudent here as this will otherwise crash if any of these values is not set.

@CodeHex CodeHex self-requested a review February 28, 2018 12:52
Copy link

@CodeHex CodeHex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fractalwrench fractalwrench merged commit 22210e7 into master Feb 28, 2018
@fractalwrench fractalwrench deleted the improve-minimal-report branch February 28, 2018 12:56
@snmaynard
Copy link
Contributor

Should we add tests for this functionality?

@fractalwrench
Copy link
Contributor Author

We plan to add a mazerunner scenario which will cover this test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants