{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/Workiva/state_machine/pulls/23","id":43673965,"html_url":"https://github.com/Workiva/state_machine/pull/23","diff_url":"https://github.com/Workiva/state_machine/pull/23.diff","patch_url":"https://github.com/Workiva/state_machine/pull/23.patch","issue_url":"https://api.github.com/repos/Workiva/state_machine/issues/23","number":23,"state":"closed","locked":false,"title":"CP-970 Add helpful toString() overrides for debugging","user":{"login":"evanweible-wf","id":1738457,"avatar_url":"https://avatars.githubusercontent.com/u/1738457?v=3","gravatar_id":"","url":"https://api.github.com/users/evanweible-wf","html_url":"https://github.com/evanweible-wf","followers_url":"https://api.github.com/users/evanweible-wf/followers","following_url":"https://api.github.com/users/evanweible-wf/following{/other_user}","gists_url":"https://api.github.com/users/evanweible-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/evanweible-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanweible-wf/subscriptions","organizations_url":"https://api.github.com/users/evanweible-wf/orgs","repos_url":"https://api.github.com/users/evanweible-wf/repos","events_url":"https://api.github.com/users/evanweible-wf/events{/privacy}","received_events_url":"https://api.github.com/users/evanweible-wf/received_events","type":"User","site_admin":false},"body":"## Issue\r\n#13 State machine logic can be complicated and logging debug information about the machine is annoying to do manually.\r\n\r\n## Changes\r\n**Source:**\r\n- **BREAKING** &nbsp; Require a `name` parameter when constructing a state machine\r\n  - We could make this backwards compat and deprecate for a future breaking release, but this repo is stable enough that I'm leaning towards making the breaking change now. Thoughts?\r\n- Add `toString()` overrides for `StateMachine`, `State`, `StateTransition`, and `StateChange\r\n\r\n**Tests:**\r\n- Add tests for all of these `toString()` methods\r\n\r\n## Areas of Regression\r\n- n/a\r\n\r\n## Testing\r\n- CI passes\r\n\r\n## Example output:\r\nhttps://drive.google.com/file/d/0B0mRcThhKeMGYmhvb3F2TXNrdEk/view?usp=sharing\r\n\r\n## Code Review\r\n@trentgrover-wf\r\n@maxwellpeterson-wf \r\n@dustinlessard-wf\r\n@jayudey-wf","created_at":"2015-08-28T21:27:53Z","updated_at":"2015-09-08T13:08:05Z","closed_at":"2015-09-08T13:08:05Z","merged_at":"2015-09-08T13:08:05Z","merge_commit_sha":"f3390e5f9b0220d8bfb7735b529bfdf2b93f2a75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Workiva/state_machine/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Workiva/state_machine/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Workiva/state_machine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Workiva/state_machine/issues/23/comments","statuses_url":"https://api.github.com/repos/Workiva/state_machine/statuses/6c69de1c7d1b93985c507eb077049a26ea189973","head":{"label":"Workiva:tostring-debug","ref":"tostring-debug","sha":"6c69de1c7d1b93985c507eb077049a26ea189973","user":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"repo":{"id":33132764,"name":"state_machine","full_name":"Workiva/state_machine","owner":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Workiva/state_machine","description":"","fork":false,"url":"https://api.github.com/repos/Workiva/state_machine","forks_url":"https://api.github.com/repos/Workiva/state_machine/forks","keys_url":"https://api.github.com/repos/Workiva/state_machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Workiva/state_machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Workiva/state_machine/teams","hooks_url":"https://api.github.com/repos/Workiva/state_machine/hooks","issue_events_url":"https://api.github.com/repos/Workiva/state_machine/issues/events{/number}","events_url":"https://api.github.com/repos/Workiva/state_machine/events","assignees_url":"https://api.github.com/repos/Workiva/state_machine/assignees{/user}","branches_url":"https://api.github.com/repos/Workiva/state_machine/branches{/branch}","tags_url":"https://api.github.com/repos/Workiva/state_machine/tags","blobs_url":"https://api.github.com/repos/Workiva/state_machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Workiva/state_machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Workiva/state_machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/Workiva/state_machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Workiva/state_machine/statuses/{sha}","languages_url":"https://api.github.com/repos/Workiva/state_machine/languages","stargazers_url":"https://api.github.com/repos/Workiva/state_machine/stargazers","contributors_url":"https://api.github.com/repos/Workiva/state_machine/contributors","subscribers_url":"https://api.github.com/repos/Workiva/state_machine/subscribers","subscription_url":"https://api.github.com/repos/Workiva/state_machine/subscription","commits_url":"https://api.github.com/repos/Workiva/state_machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/Workiva/state_machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/Workiva/state_machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/Workiva/state_machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/Workiva/state_machine/contents/{+path}","compare_url":"https://api.github.com/repos/Workiva/state_machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Workiva/state_machine/merges","archive_url":"https://api.github.com/repos/Workiva/state_machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Workiva/state_machine/downloads","issues_url":"https://api.github.com/repos/Workiva/state_machine/issues{/number}","pulls_url":"https://api.github.com/repos/Workiva/state_machine/pulls{/number}","milestones_url":"https://api.github.com/repos/Workiva/state_machine/milestones{/number}","notifications_url":"https://api.github.com/repos/Workiva/state_machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Workiva/state_machine/labels{/name}","releases_url":"https://api.github.com/repos/Workiva/state_machine/releases{/id}","created_at":"2015-03-30T15:53:42Z","updated_at":"2015-07-09T16:26:41Z","pushed_at":"2015-09-08T13:08:05Z","git_url":"git://github.com/Workiva/state_machine.git","ssh_url":"git@github.com:Workiva/state_machine.git","clone_url":"https://github.com/Workiva/state_machine.git","svn_url":"https://github.com/Workiva/state_machine","homepage":null,"size":347,"stargazers_count":3,"watchers_count":3,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"Workiva:master","ref":"master","sha":"7fce270b14513531d11c3158bbf1cefea8c6f009","user":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"repo":{"id":33132764,"name":"state_machine","full_name":"Workiva/state_machine","owner":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Workiva/state_machine","description":"","fork":false,"url":"https://api.github.com/repos/Workiva/state_machine","forks_url":"https://api.github.com/repos/Workiva/state_machine/forks","keys_url":"https://api.github.com/repos/Workiva/state_machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Workiva/state_machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Workiva/state_machine/teams","hooks_url":"https://api.github.com/repos/Workiva/state_machine/hooks","issue_events_url":"https://api.github.com/repos/Workiva/state_machine/issues/events{/number}","events_url":"https://api.github.com/repos/Workiva/state_machine/events","assignees_url":"https://api.github.com/repos/Workiva/state_machine/assignees{/user}","branches_url":"https://api.github.com/repos/Workiva/state_machine/branches{/branch}","tags_url":"https://api.github.com/repos/Workiva/state_machine/tags","blobs_url":"https://api.github.com/repos/Workiva/state_machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Workiva/state_machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Workiva/state_machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/Workiva/state_machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Workiva/state_machine/statuses/{sha}","languages_url":"https://api.github.com/repos/Workiva/state_machine/languages","stargazers_url":"https://api.github.com/repos/Workiva/state_machine/stargazers","contributors_url":"https://api.github.com/repos/Workiva/state_machine/contributors","subscribers_url":"https://api.github.com/repos/Workiva/state_machine/subscribers","subscription_url":"https://api.github.com/repos/Workiva/state_machine/subscription","commits_url":"https://api.github.com/repos/Workiva/state_machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/Workiva/state_machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/Workiva/state_machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/Workiva/state_machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/Workiva/state_machine/contents/{+path}","compare_url":"https://api.github.com/repos/Workiva/state_machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Workiva/state_machine/merges","archive_url":"https://api.github.com/repos/Workiva/state_machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Workiva/state_machine/downloads","issues_url":"https://api.github.com/repos/Workiva/state_machine/issues{/number}","pulls_url":"https://api.github.com/repos/Workiva/state_machine/pulls{/number}","milestones_url":"https://api.github.com/repos/Workiva/state_machine/milestones{/number}","notifications_url":"https://api.github.com/repos/Workiva/state_machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Workiva/state_machine/labels{/name}","releases_url":"https://api.github.com/repos/Workiva/state_machine/releases{/id}","created_at":"2015-03-30T15:53:42Z","updated_at":"2015-07-09T16:26:41Z","pushed_at":"2015-09-08T13:08:05Z","git_url":"git://github.com/Workiva/state_machine.git","ssh_url":"git@github.com:Workiva/state_machine.git","clone_url":"https://github.com/Workiva/state_machine.git","svn_url":"https://github.com/Workiva/state_machine","homepage":null,"size":347,"stargazers_count":3,"watchers_count":3,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Workiva/state_machine/pulls/23"},"html":{"href":"https://github.com/Workiva/state_machine/pull/23"},"issue":{"href":"https://api.github.com/repos/Workiva/state_machine/issues/23"},"comments":{"href":"https://api.github.com/repos/Workiva/state_machine/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Workiva/state_machine/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Workiva/state_machine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Workiva/state_machine/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Workiva/state_machine/statuses/6c69de1c7d1b93985c507eb077049a26ea189973"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jayudey-wf","id":4429043,"avatar_url":"https://avatars.githubusercontent.com/u/4429043?v=3","gravatar_id":"","url":"https://api.github.com/users/jayudey-wf","html_url":"https://github.com/jayudey-wf","followers_url":"https://api.github.com/users/jayudey-wf/followers","following_url":"https://api.github.com/users/jayudey-wf/following{/other_user}","gists_url":"https://api.github.com/users/jayudey-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/jayudey-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayudey-wf/subscriptions","organizations_url":"https://api.github.com/users/jayudey-wf/orgs","repos_url":"https://api.github.com/users/jayudey-wf/repos","events_url":"https://api.github.com/users/jayudey-wf/events{/privacy}","received_events_url":"https://api.github.com/users/jayudey-wf/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":166,"deletions":22,"changed_files":6}}