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

Basic config options: Environment and enable/disable options #22

Merged
merged 5 commits into from
Jul 29, 2020

Conversation

waltjones
Copy link
Contributor

Adds new options to the setup and configuration pages:

ReportUncaughtExceptions and ReportFlowErrors
Salesforce routes exceptions and Flow/Process errors to the same email handler. These options allow Rollbar to handle only Exceptions or only Flow/Process Errors, or both.

ReportUnknownEmailType
The email handler may also receive email types besides Exception and Flow/Process emails. This option allows sending these to Rollbar as generic messages, or not.

SendReports
This enables/disables sending occurrences to Rollbar, allowing sedning to be disabled without needing to uninstall the package.

Environment
Allows setting the environment string sent to Rollbar with each report. Unlike the option in the Config object in earlier package versions, this setting is global, and works for all occurrences including uncaught exceptions and Flow/Process errors.

A few other fixes have been bundled into this PR. These are each in their own commit for easier review:

Fixed stack frame parsing
Several known stack frame formats weren't being handled correctly and would cause unhandled exceptions, including stack frames from Trigger classes, and stack frames from test classes. This update handles known and unknown cases safely.
6d6bc3c

Setup works when API permissions are already set
After uninstall/reinstall, or partial install, it's possible to have Rollbar API callout permissions already enabled in Salesforce. This update ensures Setup can continue successfully in this state. 03bd64c

Fixes a wrong type cast on assignment e7aafd6

Add the deploy dir to .gitignore 0c98278

Copy link

@ajtran ajtran left a comment

Choose a reason for hiding this comment

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

looks good to me!

@waltjones waltjones merged commit 74e2061 into master Jul 29, 2020
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.

2 participants