{"action":"created","comment":{"url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/comments/145859247","pull_request_review_id":70722656,"id":145859247,"diff_hunk":"@@ -0,0 +1,78 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using Fabric.Authorization.Domain.Models;\n+\n+namespace Fabric.Authorization.Domain.Resolvers.Models\n+{\n+    public class ResolvedPermission\n+    {\n+        public const string Allow = \"allow\";\n+        public const string Deny = \"deny\";\n+\n+        public Guid Id { get; set; }\n+        public string Grain { get; set; }\n+        public string SecurableItem { get; set; }\n+        public string Name { get; set; }\n+        public string Action { get; set; }\n+        public ICollection<ResolvedPermissionRole> Roles { get; set; } = new List<ResolvedPermissionRole>();\n+        public DateTime CreatedDateTimeUtc { get; set; }\n+        public DateTime? ModifiedDateTimeUtc { get; set; }\n+        public string CreatedBy { get; set; }\n+        public string ModifiedBy { get; set; }\n+\n+        public override string ToString()\n+        {\n+            return $\"{Grain}/{SecurableItem}.{Name}\";\n+        }\n+\n+        public override bool Equals(object obj)\n+        {\n+            if (obj == null)\n+            {\n+                return false;\n+            }\n+\n+            if (this == obj)\n+            {\n+                return true;\n+            }\n+\n+            var incomingPermission = obj as Permission;\n+\n+            return incomingPermission?.ToString().Equals(ToString(), StringComparison.OrdinalIgnoreCase) ?? false;\n+        }\n+\n+        public override int GetHashCode()\n+        {\n+            return ToString().GetHashCode();\n+        }\n+    }\n+\n+    public static class ResolvedPermissionExtensions","path":"Fabric.Authorization.Domain/Resolvers/Models/ResolvedPermission.cs","position":51,"original_position":51,"commit_id":"044325160e5bbe907a3587f3ccba6be793ca2cad","original_commit_id":"b414fd85b08f343df3edcae0f190002edc130ff2","user":{"login":"bsmithvt","id":6453904,"avatar_url":"https://avatars1.githubusercontent.com/u/6453904?v=4","gravatar_id":"","url":"https://api.github.com/users/bsmithvt","html_url":"https://github.com/bsmithvt","followers_url":"https://api.github.com/users/bsmithvt/followers","following_url":"https://api.github.com/users/bsmithvt/following{/other_user}","gists_url":"https://api.github.com/users/bsmithvt/gists{/gist_id}","starred_url":"https://api.github.com/users/bsmithvt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsmithvt/subscriptions","organizations_url":"https://api.github.com/users/bsmithvt/orgs","repos_url":"https://api.github.com/users/bsmithvt/repos","events_url":"https://api.github.com/users/bsmithvt/events{/privacy}","received_events_url":"https://api.github.com/users/bsmithvt/received_events","type":"User","site_admin":false},"body":"Good point.","created_at":"2017-10-20T01:01:58Z","updated_at":"2017-10-20T01:01:58Z","html_url":"https://github.com/HealthCatalyst/Fabric.Authorization/pull/63#discussion_r145859247","pull_request_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/comments/145859247"},"html":{"href":"https://github.com/HealthCatalyst/Fabric.Authorization/pull/63#discussion_r145859247"},"pull_request":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63"}},"in_reply_to_id":145790543},"pull_request":{"url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63","id":147630252,"html_url":"https://github.com/HealthCatalyst/Fabric.Authorization/pull/63","diff_url":"https://github.com/HealthCatalyst/Fabric.Authorization/pull/63.diff","patch_url":"https://github.com/HealthCatalyst/Fabric.Authorization/pull/63.patch","issue_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/63","number":63,"state":"open","locked":false,"title":"User/bsmithvt/get user permissions2","user":{"login":"bsmithvt","id":6453904,"avatar_url":"https://avatars1.githubusercontent.com/u/6453904?v=4","gravatar_id":"","url":"https://api.github.com/users/bsmithvt","html_url":"https://github.com/bsmithvt","followers_url":"https://api.github.com/users/bsmithvt/followers","following_url":"https://api.github.com/users/bsmithvt/following{/other_user}","gists_url":"https://api.github.com/users/bsmithvt/gists{/gist_id}","starred_url":"https://api.github.com/users/bsmithvt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsmithvt/subscriptions","organizations_url":"https://api.github.com/users/bsmithvt/orgs","repos_url":"https://api.github.com/users/bsmithvt/repos","events_url":"https://api.github.com/users/bsmithvt/events{/privacy}","received_events_url":"https://api.github.com/users/bsmithvt/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-19T18:23:47Z","updated_at":"2017-10-20T01:01:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0619f384af07ac209f108fc29fa079496ef35436","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63/commits","review_comments_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63/comments","review_comment_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/63/comments","statuses_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/statuses/044325160e5bbe907a3587f3ccba6be793ca2cad","head":{"label":"HealthCatalyst:user/bsmithvt/get-user-permissions2","ref":"user/bsmithvt/get-user-permissions2","sha":"044325160e5bbe907a3587f3ccba6be793ca2cad","user":{"login":"HealthCatalyst","id":27259917,"avatar_url":"https://avatars3.githubusercontent.com/u/27259917?v=4","gravatar_id":"","url":"https://api.github.com/users/HealthCatalyst","html_url":"https://github.com/HealthCatalyst","followers_url":"https://api.github.com/users/HealthCatalyst/followers","following_url":"https://api.github.com/users/HealthCatalyst/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalyst/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalyst/orgs","repos_url":"https://api.github.com/users/HealthCatalyst/repos","events_url":"https://api.github.com/users/HealthCatalyst/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalyst/received_events","type":"Organization","site_admin":false},"repo":{"id":90079030,"name":"Fabric.Authorization","full_name":"HealthCatalyst/Fabric.Authorization","owner":{"login":"HealthCatalyst","id":27259917,"avatar_url":"https://avatars3.githubusercontent.com/u/27259917?v=4","gravatar_id":"","url":"https://api.github.com/users/HealthCatalyst","html_url":"https://github.com/HealthCatalyst","followers_url":"https://api.github.com/users/HealthCatalyst/followers","following_url":"https://api.github.com/users/HealthCatalyst/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalyst/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalyst/orgs","repos_url":"https://api.github.com/users/HealthCatalyst/repos","events_url":"https://api.github.com/users/HealthCatalyst/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalyst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HealthCatalyst/Fabric.Authorization","description":"Permissions service for applications","fork":false,"url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization","forks_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/forks","keys_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/teams","hooks_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/hooks","issue_events_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/events{/number}","events_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/events","assignees_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/assignees{/user}","branches_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/branches{/branch}","tags_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/tags","blobs_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/refs{/sha}","trees_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/statuses/{sha}","languages_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/languages","stargazers_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/stargazers","contributors_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/contributors","subscribers_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/subscribers","subscription_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/subscription","commits_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/commits{/sha}","git_commits_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/commits{/sha}","comments_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/comments{/number}","issue_comment_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/comments{/number}","contents_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/contents/{+path}","compare_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/merges","archive_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/downloads","issues_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues{/number}","pulls_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls{/number}","milestones_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/milestones{/number}","notifications_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/labels{/name}","releases_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/releases{/id}","deployments_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/deployments","created_at":"2017-05-02T21:20:07Z","updated_at":"2017-10-16T23:37:14Z","pushed_at":"2017-10-19T20:37:40Z","git_url":"git://github.com/HealthCatalyst/Fabric.Authorization.git","ssh_url":"git@github.com:HealthCatalyst/Fabric.Authorization.git","clone_url":"https://github.com/HealthCatalyst/Fabric.Authorization.git","svn_url":"https://github.com/HealthCatalyst/Fabric.Authorization","homepage":"","size":2248,"stargazers_count":5,"watchers_count":5,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":5,"default_branch":"master"}},"base":{"label":"HealthCatalyst:master","ref":"master","sha":"848dc5f82fff758edb579c3390a9569493ddbb8c","user":{"login":"HealthCatalyst","id":27259917,"avatar_url":"https://avatars3.githubusercontent.com/u/27259917?v=4","gravatar_id":"","url":"https://api.github.com/users/HealthCatalyst","html_url":"https://github.com/HealthCatalyst","followers_url":"https://api.github.com/users/HealthCatalyst/followers","following_url":"https://api.github.com/users/HealthCatalyst/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalyst/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalyst/orgs","repos_url":"https://api.github.com/users/HealthCatalyst/repos","events_url":"https://api.github.com/users/HealthCatalyst/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalyst/received_events","type":"Organization","site_admin":false},"repo":{"id":90079030,"name":"Fabric.Authorization","full_name":"HealthCatalyst/Fabric.Authorization","owner":{"login":"HealthCatalyst","id":27259917,"avatar_url":"https://avatars3.githubusercontent.com/u/27259917?v=4","gravatar_id":"","url":"https://api.github.com/users/HealthCatalyst","html_url":"https://github.com/HealthCatalyst","followers_url":"https://api.github.com/users/HealthCatalyst/followers","following_url":"https://api.github.com/users/HealthCatalyst/following{/other_user}","gists_url":"https://api.github.com/users/HealthCatalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthCatalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthCatalyst/subscriptions","organizations_url":"https://api.github.com/users/HealthCatalyst/orgs","repos_url":"https://api.github.com/users/HealthCatalyst/repos","events_url":"https://api.github.com/users/HealthCatalyst/events{/privacy}","received_events_url":"https://api.github.com/users/HealthCatalyst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HealthCatalyst/Fabric.Authorization","description":"Permissions service for applications","fork":false,"url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization","forks_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/forks","keys_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/teams","hooks_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/hooks","issue_events_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/events{/number}","events_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/events","assignees_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/assignees{/user}","branches_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/branches{/branch}","tags_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/tags","blobs_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/refs{/sha}","trees_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/statuses/{sha}","languages_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/languages","stargazers_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/stargazers","contributors_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/contributors","subscribers_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/subscribers","subscription_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/subscription","commits_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/commits{/sha}","git_commits_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/git/commits{/sha}","comments_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/comments{/number}","issue_comment_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/comments{/number}","contents_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/contents/{+path}","compare_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/merges","archive_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/downloads","issues_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues{/number}","pulls_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls{/number}","milestones_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/milestones{/number}","notifications_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/labels{/name}","releases_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/releases{/id}","deployments_url":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/deployments","created_at":"2017-05-02T21:20:07Z","updated_at":"2017-10-16T23:37:14Z","pushed_at":"2017-10-19T20:37:40Z","git_url":"git://github.com/HealthCatalyst/Fabric.Authorization.git","ssh_url":"git@github.com:HealthCatalyst/Fabric.Authorization.git","clone_url":"https://github.com/HealthCatalyst/Fabric.Authorization.git","svn_url":"https://github.com/HealthCatalyst/Fabric.Authorization","homepage":"","size":2248,"stargazers_count":5,"watchers_count":5,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63"},"html":{"href":"https://github.com/HealthCatalyst/Fabric.Authorization/pull/63"},"issue":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/63"},"comments":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/HealthCatalyst/Fabric.Authorization/statuses/044325160e5bbe907a3587f3ccba6be793ca2cad"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bsmithvt"}}