{"action":"created","comment":{"url":"https://api.github.com/repos/angular/tactical/pulls/comments/32191667","id":32191667,"diff_hunk":"@@ -0,0 +1,119 @@\n+/**\n+ * Represents a mutation to be performed on top of an object.\n+ */\n+export interface Mutation {\n+  \n+  /**\n+   * Applies the mutation to an object, returning success or failure.\n+   */\n+  apply(obj: any): boolean;\n+}\n+\n+/**\n+ * Sets a group of properties on an object, overwriting any previous values.\n+ */\n+export class SetPropertiesMutation implements Mutation {\n+  changes: any;\n+  \n+  constructor(changes: any) {\n+    this.changes = changes;\n+  }","path":"modules/tactical/src/mutation.ts","position":20,"original_position":20,"commit_id":"bd014b10e61e61e80533477f666409bdc5f779c8","original_commit_id":"bd014b10e61e61e80533477f666409bdc5f779c8","user":{"login":"gkalpak","id":8604205,"avatar_url":"https://avatars.githubusercontent.com/u/8604205?v=3","gravatar_id":"","url":"https://api.github.com/users/gkalpak","html_url":"https://github.com/gkalpak","followers_url":"https://api.github.com/users/gkalpak/followers","following_url":"https://api.github.com/users/gkalpak/following{/other_user}","gists_url":"https://api.github.com/users/gkalpak/gists{/gist_id}","starred_url":"https://api.github.com/users/gkalpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkalpak/subscriptions","organizations_url":"https://api.github.com/users/gkalpak/orgs","repos_url":"https://api.github.com/users/gkalpak/repos","events_url":"https://api.github.com/users/gkalpak/events{/privacy}","received_events_url":"https://api.github.com/users/gkalpak/received_events","type":"User","site_admin":false},"body":"I think the idiomatic `constructor(public changes: any) {}` (which would replace lines 16 - 20), is preferred in angular/angular.","created_at":"2015-06-11T05:53:03Z","updated_at":"2015-06-11T05:53:03Z","html_url":"https://github.com/angular/tactical/pull/5#discussion_r32191667","pull_request_url":"https://api.github.com/repos/angular/tactical/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/angular/tactical/pulls/comments/32191667"},"html":{"href":"https://github.com/angular/tactical/pull/5#discussion_r32191667"},"pull_request":{"href":"https://api.github.com/repos/angular/tactical/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/angular/tactical/pulls/5","id":37285247,"html_url":"https://github.com/angular/tactical/pull/5","diff_url":"https://github.com/angular/tactical/pull/5.diff","patch_url":"https://github.com/angular/tactical/pull/5.patch","issue_url":"https://api.github.com/repos/angular/tactical/issues/5","number":5,"state":"open","locked":false,"title":"Basic implementation of mutations on arbitrary JSON objects.","user":{"login":"alxhub","id":4175141,"avatar_url":"https://avatars.githubusercontent.com/u/4175141?v=3","gravatar_id":"","url":"https://api.github.com/users/alxhub","html_url":"https://github.com/alxhub","followers_url":"https://api.github.com/users/alxhub/followers","following_url":"https://api.github.com/users/alxhub/following{/other_user}","gists_url":"https://api.github.com/users/alxhub/gists{/gist_id}","starred_url":"https://api.github.com/users/alxhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxhub/subscriptions","organizations_url":"https://api.github.com/users/alxhub/orgs","repos_url":"https://api.github.com/users/alxhub/repos","events_url":"https://api.github.com/users/alxhub/events{/privacy}","received_events_url":"https://api.github.com/users/alxhub/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-09T18:41:10Z","updated_at":"2015-06-11T05:53:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e26ca4203e5439a21367c7c9cd2e27e6e7e732d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/tactical/pulls/5/commits","review_comments_url":"https://api.github.com/repos/angular/tactical/pulls/5/comments","review_comment_url":"https://api.github.com/repos/angular/tactical/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/tactical/issues/5/comments","statuses_url":"https://api.github.com/repos/angular/tactical/statuses/bd014b10e61e61e80533477f666409bdc5f779c8","head":{"label":"alxhub:first-steps","ref":"first-steps","sha":"bd014b10e61e61e80533477f666409bdc5f779c8","user":{"login":"alxhub","id":4175141,"avatar_url":"https://avatars.githubusercontent.com/u/4175141?v=3","gravatar_id":"","url":"https://api.github.com/users/alxhub","html_url":"https://github.com/alxhub","followers_url":"https://api.github.com/users/alxhub/followers","following_url":"https://api.github.com/users/alxhub/following{/other_user}","gists_url":"https://api.github.com/users/alxhub/gists{/gist_id}","starred_url":"https://api.github.com/users/alxhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxhub/subscriptions","organizations_url":"https://api.github.com/users/alxhub/orgs","repos_url":"https://api.github.com/users/alxhub/repos","events_url":"https://api.github.com/users/alxhub/events{/privacy}","received_events_url":"https://api.github.com/users/alxhub/received_events","type":"User","site_admin":false},"repo":{"id":36824723,"name":"tactical","full_name":"alxhub/tactical","owner":{"login":"alxhub","id":4175141,"avatar_url":"https://avatars.githubusercontent.com/u/4175141?v=3","gravatar_id":"","url":"https://api.github.com/users/alxhub","html_url":"https://github.com/alxhub","followers_url":"https://api.github.com/users/alxhub/followers","following_url":"https://api.github.com/users/alxhub/following{/other_user}","gists_url":"https://api.github.com/users/alxhub/gists{/gist_id}","starred_url":"https://api.github.com/users/alxhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxhub/subscriptions","organizations_url":"https://api.github.com/users/alxhub/orgs","repos_url":"https://api.github.com/users/alxhub/repos","events_url":"https://api.github.com/users/alxhub/events{/privacy}","received_events_url":"https://api.github.com/users/alxhub/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alxhub/tactical","description":"Data access library for Angular","fork":true,"url":"https://api.github.com/repos/alxhub/tactical","forks_url":"https://api.github.com/repos/alxhub/tactical/forks","keys_url":"https://api.github.com/repos/alxhub/tactical/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alxhub/tactical/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alxhub/tactical/teams","hooks_url":"https://api.github.com/repos/alxhub/tactical/hooks","issue_events_url":"https://api.github.com/repos/alxhub/tactical/issues/events{/number}","events_url":"https://api.github.com/repos/alxhub/tactical/events","assignees_url":"https://api.github.com/repos/alxhub/tactical/assignees{/user}","branches_url":"https://api.github.com/repos/alxhub/tactical/branches{/branch}","tags_url":"https://api.github.com/repos/alxhub/tactical/tags","blobs_url":"https://api.github.com/repos/alxhub/tactical/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alxhub/tactical/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alxhub/tactical/git/refs{/sha}","trees_url":"https://api.github.com/repos/alxhub/tactical/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alxhub/tactical/statuses/{sha}","languages_url":"https://api.github.com/repos/alxhub/tactical/languages","stargazers_url":"https://api.github.com/repos/alxhub/tactical/stargazers","contributors_url":"https://api.github.com/repos/alxhub/tactical/contributors","subscribers_url":"https://api.github.com/repos/alxhub/tactical/subscribers","subscription_url":"https://api.github.com/repos/alxhub/tactical/subscription","commits_url":"https://api.github.com/repos/alxhub/tactical/commits{/sha}","git_commits_url":"https://api.github.com/repos/alxhub/tactical/git/commits{/sha}","comments_url":"https://api.github.com/repos/alxhub/tactical/comments{/number}","issue_comment_url":"https://api.github.com/repos/alxhub/tactical/issues/comments{/number}","contents_url":"https://api.github.com/repos/alxhub/tactical/contents/{+path}","compare_url":"https://api.github.com/repos/alxhub/tactical/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alxhub/tactical/merges","archive_url":"https://api.github.com/repos/alxhub/tactical/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alxhub/tactical/downloads","issues_url":"https://api.github.com/repos/alxhub/tactical/issues{/number}","pulls_url":"https://api.github.com/repos/alxhub/tactical/pulls{/number}","milestones_url":"https://api.github.com/repos/alxhub/tactical/milestones{/number}","notifications_url":"https://api.github.com/repos/alxhub/tactical/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alxhub/tactical/labels{/name}","releases_url":"https://api.github.com/repos/alxhub/tactical/releases{/id}","created_at":"2015-06-03T19:12:31Z","updated_at":"2015-06-03T19:12:31Z","pushed_at":"2015-06-09T18:40:23Z","git_url":"git://github.com/alxhub/tactical.git","ssh_url":"git@github.com:alxhub/tactical.git","clone_url":"https://github.com/alxhub/tactical.git","svn_url":"https://github.com/alxhub/tactical","homepage":null,"size":91,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"42008d82d5fc359f6177af14e910d5808f738a1d","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":36764307,"name":"tactical","full_name":"angular/tactical","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/tactical","description":"Data access library for Angular","fork":false,"url":"https://api.github.com/repos/angular/tactical","forks_url":"https://api.github.com/repos/angular/tactical/forks","keys_url":"https://api.github.com/repos/angular/tactical/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/tactical/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/tactical/teams","hooks_url":"https://api.github.com/repos/angular/tactical/hooks","issue_events_url":"https://api.github.com/repos/angular/tactical/issues/events{/number}","events_url":"https://api.github.com/repos/angular/tactical/events","assignees_url":"https://api.github.com/repos/angular/tactical/assignees{/user}","branches_url":"https://api.github.com/repos/angular/tactical/branches{/branch}","tags_url":"https://api.github.com/repos/angular/tactical/tags","blobs_url":"https://api.github.com/repos/angular/tactical/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/tactical/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/tactical/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/tactical/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/tactical/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/tactical/languages","stargazers_url":"https://api.github.com/repos/angular/tactical/stargazers","contributors_url":"https://api.github.com/repos/angular/tactical/contributors","subscribers_url":"https://api.github.com/repos/angular/tactical/subscribers","subscription_url":"https://api.github.com/repos/angular/tactical/subscription","commits_url":"https://api.github.com/repos/angular/tactical/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/tactical/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/tactical/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/tactical/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/tactical/contents/{+path}","compare_url":"https://api.github.com/repos/angular/tactical/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/tactical/merges","archive_url":"https://api.github.com/repos/angular/tactical/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/tactical/downloads","issues_url":"https://api.github.com/repos/angular/tactical/issues{/number}","pulls_url":"https://api.github.com/repos/angular/tactical/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/tactical/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/tactical/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/tactical/labels{/name}","releases_url":"https://api.github.com/repos/angular/tactical/releases{/id}","created_at":"2015-06-02T21:57:57Z","updated_at":"2015-06-04T14:03:36Z","pushed_at":"2015-06-09T18:41:10Z","git_url":"git://github.com/angular/tactical.git","ssh_url":"git@github.com:angular/tactical.git","clone_url":"https://github.com/angular/tactical.git","svn_url":"https://github.com/angular/tactical","homepage":null,"size":184,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/tactical/pulls/5"},"html":{"href":"https://github.com/angular/tactical/pull/5"},"issue":{"href":"https://api.github.com/repos/angular/tactical/issues/5"},"comments":{"href":"https://api.github.com/repos/angular/tactical/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/tactical/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/tactical/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/tactical/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/angular/tactical/statuses/bd014b10e61e61e80533477f666409bdc5f779c8"}}}}