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

remove prod debugging bugsnag in form controller #5692

Merged
merged 1 commit into from
May 6, 2024

Conversation

compwron
Copy link
Collaborator

@compwron compwron commented May 5, 2024

No description provided.

@compwron compwron requested a review from elasticspoon May 5, 2024 22:32
@github-actions github-actions bot added the ruby Pull requests that update Ruby code label May 5, 2024
Copy link
Collaborator

@elasticspoon elasticspoon left a comment

Choose a reason for hiding this comment

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

Small nit. Up to you if you wanna fix.

Comment on lines 25 to 29
if @case_contact.active?
# do nothing
else
begin
params[:case_contact] ||= []
params[:case_contact][:status] = step.to_s # TODO: where is this used?? what is it for??
rescue => e
# TODO https://app.bugsnag.com/ruby-for-good/casa/errors/6637007c6857010008cfc9dd
Bugsnag.notify(e)
end
params[:case_contact][:status] = step.to_s
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

params[:case_contact][:status] = step.to_s unless @case_contact.active?

is what it was in the past unless you think this is more clear.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like it in the long form tbh

@compwron compwron marked this pull request as ready for review May 6, 2024 18:04
@compwron compwron merged commit c78e263 into main May 6, 2024
12 of 13 checks passed
@compwron compwron deleted the remove-prod-debugging-bugsnag-in-form-controller branch May 6, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants