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

Fixes client-side closed issue events causing exceptions after rails upgrade #271

Merged
merged 1 commit into from
Apr 15, 2016

Conversation

discorick
Copy link
Member

The previous rails upgrade (#237) changed the way ActiveJob serializes hashes, this cause an unexpected breakage in this job causing the actor to be null.

Closes huboard/huboard#647

@dahlbyk dahlbyk requested a deployment to huboard-rails-pr-271 April 15, 2016 21:53 Pending
@@ -99,7 +99,7 @@ def drag_card
message = {
:issue => @issue,
Copy link
Member

Choose a reason for hiding this comment

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

So why does this work if :current_user doesn't?

@dahlbyk
Copy link
Member

dahlbyk commented Apr 15, 2016

Is there any reasonable way to write a test for this?

Should we also guard client-side against a missing actor, just in case?

@discorick
Copy link
Member Author

discorick commented Apr 15, 2016

payload['actor'] = self.arguments.first['current_user']

@discorick
Copy link
Member Author

It's really a one off, pretty much any event missing an actor would cause an exception - we could probably write some testing around the IssueEventJob but it'll be non-trivial.

@dahlbyk dahlbyk merged commit f89fcb1 into master Apr 15, 2016
@dahlbyk dahlbyk deleted the discorick/fix_closed_issue_event_exceptions branch April 15, 2016 22:04
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