{"action":"created","comment":{"url":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments/46223710","id":46223710,"diff_hunk":"@@ -876,6 +869,63 @@ public function workflow($workflow) {\n   }\n \n   /**\n+   * Sifts through the backups data and adds needful properties\n+   *\n+   * @param [stdClass] $raw_backups Backups data object from Request data\n+   * @return [array] $backups\n+   */\n+  private function annotateBackups($raw_backups) {","path":"php/Terminus/Models/Environment.php","position":63,"original_position":63,"commit_id":"c0d20b590b29da165ec800d8a028087bafef76cf","original_commit_id":"c0d20b590b29da165ec800d8a028087bafef76cf","user":{"login":"bensheldon","id":47554,"avatar_url":"https://avatars.githubusercontent.com/u/47554?v=3","gravatar_id":"","url":"https://api.github.com/users/bensheldon","html_url":"https://github.com/bensheldon","followers_url":"https://api.github.com/users/bensheldon/followers","following_url":"https://api.github.com/users/bensheldon/following{/other_user}","gists_url":"https://api.github.com/users/bensheldon/gists{/gist_id}","starred_url":"https://api.github.com/users/bensheldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensheldon/subscriptions","organizations_url":"https://api.github.com/users/bensheldon/orgs","repos_url":"https://api.github.com/users/bensheldon/repos","events_url":"https://api.github.com/users/bensheldon/events{/privacy}","received_events_url":"https://api.github.com/users/bensheldon/received_events","type":"User","site_admin":false},"body":"Rather than inject new attributes into the data, I would prefer that we create a `backup` model and instead make these methods we ask of the model. \r\n\r\nThis corresponds to my preference for trying to keep separate server-persisted data and data that is solely used for formatting or output.  ","created_at":"2015-12-01T00:07:00Z","updated_at":"2015-12-01T00:07:00Z","html_url":"https://github.com/pantheon-systems/cli/pull/716#discussion_r46223710","pull_request_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/716","_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments/46223710"},"html":{"href":"https://github.com/pantheon-systems/cli/pull/716#discussion_r46223710"},"pull_request":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/716"}}},"pull_request":{"url":"https://api.github.com/repos/pantheon-systems/cli/pulls/716","id":52197681,"html_url":"https://github.com/pantheon-systems/cli/pull/716","diff_url":"https://github.com/pantheon-systems/cli/pull/716.diff","patch_url":"https://github.com/pantheon-systems/cli/pull/716.patch","issue_url":"https://api.github.com/repos/pantheon-systems/cli/issues/716","number":716,"state":"open","locked":false,"title":"Discriminates between automatic and manual backups","user":{"login":"TeslaDethray","id":868204,"avatar_url":"https://avatars.githubusercontent.com/u/868204?v=3","gravatar_id":"","url":"https://api.github.com/users/TeslaDethray","html_url":"https://github.com/TeslaDethray","followers_url":"https://api.github.com/users/TeslaDethray/followers","following_url":"https://api.github.com/users/TeslaDethray/following{/other_user}","gists_url":"https://api.github.com/users/TeslaDethray/gists{/gist_id}","starred_url":"https://api.github.com/users/TeslaDethray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeslaDethray/subscriptions","organizations_url":"https://api.github.com/users/TeslaDethray/orgs","repos_url":"https://api.github.com/users/TeslaDethray/repos","events_url":"https://api.github.com/users/TeslaDethray/events{/privacy}","received_events_url":"https://api.github.com/users/TeslaDethray/received_events","type":"User","site_admin":false},"body":"Closes #660\r\nI wasn't sure what to call the field that holds the automatic or backup indicator. I named it \"initiator\". If you've a better suggestion, I'm all ears.","created_at":"2015-11-30T23:58:02Z","updated_at":"2015-12-01T00:07:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b19755bce77aa680071426eb933e1fa3dfea56ad","assignee":{"login":"TeslaDethray","id":868204,"avatar_url":"https://avatars.githubusercontent.com/u/868204?v=3","gravatar_id":"","url":"https://api.github.com/users/TeslaDethray","html_url":"https://github.com/TeslaDethray","followers_url":"https://api.github.com/users/TeslaDethray/followers","following_url":"https://api.github.com/users/TeslaDethray/following{/other_user}","gists_url":"https://api.github.com/users/TeslaDethray/gists{/gist_id}","starred_url":"https://api.github.com/users/TeslaDethray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeslaDethray/subscriptions","organizations_url":"https://api.github.com/users/TeslaDethray/orgs","repos_url":"https://api.github.com/users/TeslaDethray/repos","events_url":"https://api.github.com/users/TeslaDethray/events{/privacy}","received_events_url":"https://api.github.com/users/TeslaDethray/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/716/commits","review_comments_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/716/comments","review_comment_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/issues/716/comments","statuses_url":"https://api.github.com/repos/pantheon-systems/cli/statuses/c0d20b590b29da165ec800d8a028087bafef76cf","head":{"label":"pantheon-systems:discriminate_backups","ref":"discriminate_backups","sha":"c0d20b590b29da165ec800d8a028087bafef76cf","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":17075662,"name":"cli","full_name":"pantheon-systems/cli","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/cli","description":"The Pantheon CLI — aka Terminus — a standalone utility for performing operations on the Pantheon Platform","fork":false,"url":"https://api.github.com/repos/pantheon-systems/cli","forks_url":"https://api.github.com/repos/pantheon-systems/cli/forks","keys_url":"https://api.github.com/repos/pantheon-systems/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/cli/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/cli/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/cli/events","assignees_url":"https://api.github.com/repos/pantheon-systems/cli/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/cli/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/cli/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/cli/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/cli/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/cli/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/cli/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/cli/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/cli/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/cli/merges","archive_url":"https://api.github.com/repos/pantheon-systems/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/cli/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/cli/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/cli/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/cli/releases{/id}","created_at":"2014-02-22T01:37:07Z","updated_at":"2015-11-26T15:44:23Z","pushed_at":"2015-12-01T00:06:08Z","git_url":"git://github.com/pantheon-systems/cli.git","ssh_url":"git@github.com:pantheon-systems/cli.git","clone_url":"https://github.com/pantheon-systems/cli.git","svn_url":"https://github.com/pantheon-systems/cli","homepage":"https://pantheon.io","size":3530,"stargazers_count":109,"watchers_count":109,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":52,"forks":64,"open_issues":52,"watchers":109,"default_branch":"master"}},"base":{"label":"pantheon-systems:master","ref":"master","sha":"b4b8ba3b8ad68cfbb06bd1131563aef16359737b","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":17075662,"name":"cli","full_name":"pantheon-systems/cli","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/cli","description":"The Pantheon CLI — aka Terminus — a standalone utility for performing operations on the Pantheon Platform","fork":false,"url":"https://api.github.com/repos/pantheon-systems/cli","forks_url":"https://api.github.com/repos/pantheon-systems/cli/forks","keys_url":"https://api.github.com/repos/pantheon-systems/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/cli/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/cli/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/cli/events","assignees_url":"https://api.github.com/repos/pantheon-systems/cli/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/cli/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/cli/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/cli/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/cli/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/cli/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/cli/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/cli/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/cli/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/cli/merges","archive_url":"https://api.github.com/repos/pantheon-systems/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/cli/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/cli/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/cli/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/cli/releases{/id}","created_at":"2014-02-22T01:37:07Z","updated_at":"2015-11-26T15:44:23Z","pushed_at":"2015-12-01T00:06:08Z","git_url":"git://github.com/pantheon-systems/cli.git","ssh_url":"git@github.com:pantheon-systems/cli.git","clone_url":"https://github.com/pantheon-systems/cli.git","svn_url":"https://github.com/pantheon-systems/cli","homepage":"https://pantheon.io","size":3530,"stargazers_count":109,"watchers_count":109,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":52,"forks":64,"open_issues":52,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/716"},"html":{"href":"https://github.com/pantheon-systems/cli/pull/716"},"issue":{"href":"https://api.github.com/repos/pantheon-systems/cli/issues/716"},"comments":{"href":"https://api.github.com/repos/pantheon-systems/cli/issues/716/comments"},"review_comments":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/716/comments"},"review_comment":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/716/commits"},"statuses":{"href":"https://api.github.com/repos/pantheon-systems/cli/statuses/c0d20b590b29da165ec800d8a028087bafef76cf"}}}}