{"action":"created","comment":{"url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/comments/189825626","pull_request_review_id":122076507,"id":189825626,"diff_hunk":"@@ -34,20 +37,30 @@\n             ],\n         ],\n         'statuses_labels' => [\n-            'draft' => 'Draft',\n-            'in_cart' => 'Cart',\n-            'pending' => 'Pending',\n-            'approved' => 'Approved',\n-            'rejected' => 'Rejected',\n-            'scheduled' => 'Scheduled',\n-            'cancelled' => 'Cancelled',\n-            'completed' => 'Completed',\n+            S::STATUS_DRAFT => 'Draft',","path":"config/config.php","position":21,"original_position":21,"commit_id":"548c0dcd3e8d5b9a3f31bb29f25b88cc1538bc87","original_commit_id":"548c0dcd3e8d5b9a3f31bb29f25b88cc1538bc87","user":{"login":"romalytvynenko","id":6153876,"avatar_url":"https://avatars1.githubusercontent.com/u/6153876?v=4","gravatar_id":"","url":"https://api.github.com/users/romalytvynenko","html_url":"https://github.com/romalytvynenko","followers_url":"https://api.github.com/users/romalytvynenko/followers","following_url":"https://api.github.com/users/romalytvynenko/following{/other_user}","gists_url":"https://api.github.com/users/romalytvynenko/gists{/gist_id}","starred_url":"https://api.github.com/users/romalytvynenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romalytvynenko/subscriptions","organizations_url":"https://api.github.com/users/romalytvynenko/orgs","repos_url":"https://api.github.com/users/romalytvynenko/repos","events_url":"https://api.github.com/users/romalytvynenko/events{/privacy}","received_events_url":"https://api.github.com/users/romalytvynenko/received_events","type":"User","site_admin":false},"body":"Got it, I will fix it. I thought that having this keys in centralized place would be better. But if we think about it like about static file that it would be better to not rely on PHP-specific things.","created_at":"2018-05-22T09:00:30Z","updated_at":"2018-05-22T09:00:30Z","html_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui/pull/9#discussion_r189825626","pull_request_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/comments/189825626"},"html":{"href":"https://github.com/RebelCode/rcmod-wp-bookings-ui/pull/9#discussion_r189825626"},"pull_request":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9"}},"in_reply_to_id":189804587},"pull_request":{"url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9","id":189450252,"html_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui/pull/9","diff_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui/pull/9.diff","patch_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui/pull/9.patch","issue_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/9","number":9,"state":"open","locked":false,"title":"Statuses transitions information are coming from backend","user":{"login":"romalytvynenko","id":6153876,"avatar_url":"https://avatars1.githubusercontent.com/u/6153876?v=4","gravatar_id":"","url":"https://api.github.com/users/romalytvynenko","html_url":"https://github.com/romalytvynenko","followers_url":"https://api.github.com/users/romalytvynenko/followers","following_url":"https://api.github.com/users/romalytvynenko/following{/other_user}","gists_url":"https://api.github.com/users/romalytvynenko/gists{/gist_id}","starred_url":"https://api.github.com/users/romalytvynenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romalytvynenko/subscriptions","organizations_url":"https://api.github.com/users/romalytvynenko/orgs","repos_url":"https://api.github.com/users/romalytvynenko/repos","events_url":"https://api.github.com/users/romalytvynenko/events{/privacy}","received_events_url":"https://api.github.com/users/romalytvynenko/received_events","type":"User","site_admin":false},"body":"fixes #8 \r\n\r\nAlso I've made some statuses refactoring here. It is moved to separate event handler from main module file, because it was very hard to add new functionality in the module file.","created_at":"2018-05-21T18:14:18Z","updated_at":"2018-05-22T09:00:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c02103a201c1644a7d87c25cc183a1cc97059e0b","assignee":{"login":"romalytvynenko","id":6153876,"avatar_url":"https://avatars1.githubusercontent.com/u/6153876?v=4","gravatar_id":"","url":"https://api.github.com/users/romalytvynenko","html_url":"https://github.com/romalytvynenko","followers_url":"https://api.github.com/users/romalytvynenko/followers","following_url":"https://api.github.com/users/romalytvynenko/following{/other_user}","gists_url":"https://api.github.com/users/romalytvynenko/gists{/gist_id}","starred_url":"https://api.github.com/users/romalytvynenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romalytvynenko/subscriptions","organizations_url":"https://api.github.com/users/romalytvynenko/orgs","repos_url":"https://api.github.com/users/romalytvynenko/repos","events_url":"https://api.github.com/users/romalytvynenko/events{/privacy}","received_events_url":"https://api.github.com/users/romalytvynenko/received_events","type":"User","site_admin":false},"assignees":[{"login":"romalytvynenko","id":6153876,"avatar_url":"https://avatars1.githubusercontent.com/u/6153876?v=4","gravatar_id":"","url":"https://api.github.com/users/romalytvynenko","html_url":"https://github.com/romalytvynenko","followers_url":"https://api.github.com/users/romalytvynenko/followers","following_url":"https://api.github.com/users/romalytvynenko/following{/other_user}","gists_url":"https://api.github.com/users/romalytvynenko/gists{/gist_id}","starred_url":"https://api.github.com/users/romalytvynenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romalytvynenko/subscriptions","organizations_url":"https://api.github.com/users/romalytvynenko/orgs","repos_url":"https://api.github.com/users/romalytvynenko/repos","events_url":"https://api.github.com/users/romalytvynenko/events{/privacy}","received_events_url":"https://api.github.com/users/romalytvynenko/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9/commits","review_comments_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9/comments","review_comment_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/9/comments","statuses_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/statuses/548c0dcd3e8d5b9a3f31bb29f25b88cc1538bc87","head":{"label":"RebelCode:task/transitions-data","ref":"task/transitions-data","sha":"548c0dcd3e8d5b9a3f31bb29f25b88cc1538bc87","user":{"login":"RebelCode","id":22795628,"avatar_url":"https://avatars0.githubusercontent.com/u/22795628?v=4","gravatar_id":"","url":"https://api.github.com/users/RebelCode","html_url":"https://github.com/RebelCode","followers_url":"https://api.github.com/users/RebelCode/followers","following_url":"https://api.github.com/users/RebelCode/following{/other_user}","gists_url":"https://api.github.com/users/RebelCode/gists{/gist_id}","starred_url":"https://api.github.com/users/RebelCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RebelCode/subscriptions","organizations_url":"https://api.github.com/users/RebelCode/orgs","repos_url":"https://api.github.com/users/RebelCode/repos","events_url":"https://api.github.com/users/RebelCode/events{/privacy}","received_events_url":"https://api.github.com/users/RebelCode/received_events","type":"Organization","site_admin":false},"repo":{"id":127138909,"name":"rcmod-wp-bookings-ui","full_name":"RebelCode/rcmod-wp-bookings-ui","owner":{"login":"RebelCode","id":22795628,"avatar_url":"https://avatars0.githubusercontent.com/u/22795628?v=4","gravatar_id":"","url":"https://api.github.com/users/RebelCode","html_url":"https://github.com/RebelCode","followers_url":"https://api.github.com/users/RebelCode/followers","following_url":"https://api.github.com/users/RebelCode/following{/other_user}","gists_url":"https://api.github.com/users/RebelCode/gists{/gist_id}","starred_url":"https://api.github.com/users/RebelCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RebelCode/subscriptions","organizations_url":"https://api.github.com/users/RebelCode/orgs","repos_url":"https://api.github.com/users/RebelCode/repos","events_url":"https://api.github.com/users/RebelCode/events{/privacy}","received_events_url":"https://api.github.com/users/RebelCode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui","description":"A RebelCode module for bookings UI in WordPress.","fork":false,"url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui","forks_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/forks","keys_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/teams","hooks_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/hooks","issue_events_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/events{/number}","events_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/events","assignees_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/assignees{/user}","branches_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/branches{/branch}","tags_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/tags","blobs_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/languages","stargazers_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/stargazers","contributors_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/contributors","subscribers_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/subscribers","subscription_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/subscription","commits_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/contents/{+path}","compare_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/merges","archive_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/downloads","issues_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues{/number}","pulls_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/labels{/name}","releases_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/releases{/id}","deployments_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/deployments","created_at":"2018-03-28T12:45:44Z","updated_at":"2018-05-21T14:46:48Z","pushed_at":"2018-05-21T18:14:18Z","git_url":"git://github.com/RebelCode/rcmod-wp-bookings-ui.git","ssh_url":"git@github.com:RebelCode/rcmod-wp-bookings-ui.git","clone_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui.git","svn_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui","homepage":"","size":362,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"RebelCode:develop","ref":"develop","sha":"5bf47f0b5a6aaee1280500cff625065bb9a78351","user":{"login":"RebelCode","id":22795628,"avatar_url":"https://avatars0.githubusercontent.com/u/22795628?v=4","gravatar_id":"","url":"https://api.github.com/users/RebelCode","html_url":"https://github.com/RebelCode","followers_url":"https://api.github.com/users/RebelCode/followers","following_url":"https://api.github.com/users/RebelCode/following{/other_user}","gists_url":"https://api.github.com/users/RebelCode/gists{/gist_id}","starred_url":"https://api.github.com/users/RebelCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RebelCode/subscriptions","organizations_url":"https://api.github.com/users/RebelCode/orgs","repos_url":"https://api.github.com/users/RebelCode/repos","events_url":"https://api.github.com/users/RebelCode/events{/privacy}","received_events_url":"https://api.github.com/users/RebelCode/received_events","type":"Organization","site_admin":false},"repo":{"id":127138909,"name":"rcmod-wp-bookings-ui","full_name":"RebelCode/rcmod-wp-bookings-ui","owner":{"login":"RebelCode","id":22795628,"avatar_url":"https://avatars0.githubusercontent.com/u/22795628?v=4","gravatar_id":"","url":"https://api.github.com/users/RebelCode","html_url":"https://github.com/RebelCode","followers_url":"https://api.github.com/users/RebelCode/followers","following_url":"https://api.github.com/users/RebelCode/following{/other_user}","gists_url":"https://api.github.com/users/RebelCode/gists{/gist_id}","starred_url":"https://api.github.com/users/RebelCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RebelCode/subscriptions","organizations_url":"https://api.github.com/users/RebelCode/orgs","repos_url":"https://api.github.com/users/RebelCode/repos","events_url":"https://api.github.com/users/RebelCode/events{/privacy}","received_events_url":"https://api.github.com/users/RebelCode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui","description":"A RebelCode module for bookings UI in WordPress.","fork":false,"url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui","forks_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/forks","keys_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/teams","hooks_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/hooks","issue_events_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/events{/number}","events_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/events","assignees_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/assignees{/user}","branches_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/branches{/branch}","tags_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/tags","blobs_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/languages","stargazers_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/stargazers","contributors_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/contributors","subscribers_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/subscribers","subscription_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/subscription","commits_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/contents/{+path}","compare_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/merges","archive_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/downloads","issues_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues{/number}","pulls_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/labels{/name}","releases_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/releases{/id}","deployments_url":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/deployments","created_at":"2018-03-28T12:45:44Z","updated_at":"2018-05-21T14:46:48Z","pushed_at":"2018-05-21T18:14:18Z","git_url":"git://github.com/RebelCode/rcmod-wp-bookings-ui.git","ssh_url":"git@github.com:RebelCode/rcmod-wp-bookings-ui.git","clone_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui.git","svn_url":"https://github.com/RebelCode/rcmod-wp-bookings-ui","homepage":"","size":362,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9"},"html":{"href":"https://github.com/RebelCode/rcmod-wp-bookings-ui/pull/9"},"issue":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/9"},"comments":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/RebelCode/rcmod-wp-bookings-ui/statuses/548c0dcd3e8d5b9a3f31bb29f25b88cc1538bc87"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"romalytvynenko"}}