{"action":"opened","number":6044,"pull_request":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/6044","id":50965336,"html_url":"https://github.com/OrchardCMS/Orchard/pull/6044","diff_url":"https://github.com/OrchardCMS/Orchard/pull/6044.diff","patch_url":"https://github.com/OrchardCMS/Orchard/pull/6044.patch","issue_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6044","number":6044,"state":"open","locked":false,"title":"Filter out when no contentTypeNames provided","user":{"login":"DanielLackenbyBede","id":3942432,"avatar_url":"https://avatars.githubusercontent.com/u/3942432?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielLackenbyBede","html_url":"https://github.com/DanielLackenbyBede","followers_url":"https://api.github.com/users/DanielLackenbyBede/followers","following_url":"https://api.github.com/users/DanielLackenbyBede/following{/other_user}","gists_url":"https://api.github.com/users/DanielLackenbyBede/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielLackenbyBede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielLackenbyBede/subscriptions","organizations_url":"https://api.github.com/users/DanielLackenbyBede/orgs","repos_url":"https://api.github.com/users/DanielLackenbyBede/repos","events_url":"https://api.github.com/users/DanielLackenbyBede/events{/privacy}","received_events_url":"https://api.github.com/users/DanielLackenbyBede/received_events","type":"User","site_admin":false},"body":"Suggested solution to [Issue 6043](https://github.com/OrchardCMS/Orchard/issues/6043)\r\n\r\nPreviously, when no content type names where provided (from a prior conditional statement, so there is an initialized array but it is empty) then the filtering steps are skipped and instead of serving \"no content\r\ntypes\", as an empty array would state: all content types are served.\r\nWhen contentTypeNamed.Length == 0, still .Select() as this is safe for empty collections and will filter out all types in this event.","created_at":"2015-11-17T16:00:40Z","updated_at":"2015-11-17T16:00:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/6044/commits","review_comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/6044/comments","review_comment_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6044/comments","statuses_url":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/4946252f7e9324de891481c2587298355e6bba6e","head":{"label":"DanielLackenbyBede:daniellackenbybede/bug/6043/listable_content","ref":"daniellackenbybede/bug/6043/listable_content","sha":"4946252f7e9324de891481c2587298355e6bba6e","user":{"login":"DanielLackenbyBede","id":3942432,"avatar_url":"https://avatars.githubusercontent.com/u/3942432?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielLackenbyBede","html_url":"https://github.com/DanielLackenbyBede","followers_url":"https://api.github.com/users/DanielLackenbyBede/followers","following_url":"https://api.github.com/users/DanielLackenbyBede/following{/other_user}","gists_url":"https://api.github.com/users/DanielLackenbyBede/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielLackenbyBede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielLackenbyBede/subscriptions","organizations_url":"https://api.github.com/users/DanielLackenbyBede/orgs","repos_url":"https://api.github.com/users/DanielLackenbyBede/repos","events_url":"https://api.github.com/users/DanielLackenbyBede/events{/privacy}","received_events_url":"https://api.github.com/users/DanielLackenbyBede/received_events","type":"User","site_admin":false},"repo":{"id":46357620,"name":"Orchard","full_name":"DanielLackenbyBede/Orchard","owner":{"login":"DanielLackenbyBede","id":3942432,"avatar_url":"https://avatars.githubusercontent.com/u/3942432?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielLackenbyBede","html_url":"https://github.com/DanielLackenbyBede","followers_url":"https://api.github.com/users/DanielLackenbyBede/followers","following_url":"https://api.github.com/users/DanielLackenbyBede/following{/other_user}","gists_url":"https://api.github.com/users/DanielLackenbyBede/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielLackenbyBede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielLackenbyBede/subscriptions","organizations_url":"https://api.github.com/users/DanielLackenbyBede/orgs","repos_url":"https://api.github.com/users/DanielLackenbyBede/repos","events_url":"https://api.github.com/users/DanielLackenbyBede/events{/privacy}","received_events_url":"https://api.github.com/users/DanielLackenbyBede/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DanielLackenbyBede/Orchard","description":"Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.","fork":true,"url":"https://api.github.com/repos/DanielLackenbyBede/Orchard","forks_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/forks","keys_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/teams","hooks_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/hooks","issue_events_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/issues/events{/number}","events_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/events","assignees_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/assignees{/user}","branches_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/branches{/branch}","tags_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/tags","blobs_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/git/refs{/sha}","trees_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/statuses/{sha}","languages_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/languages","stargazers_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/stargazers","contributors_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/contributors","subscribers_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/subscribers","subscription_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/subscription","commits_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/commits{/sha}","git_commits_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/git/commits{/sha}","comments_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/comments{/number}","issue_comment_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/issues/comments{/number}","contents_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/contents/{+path}","compare_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/merges","archive_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/downloads","issues_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/issues{/number}","pulls_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/pulls{/number}","milestones_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/milestones{/number}","notifications_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/labels{/name}","releases_url":"https://api.github.com/repos/DanielLackenbyBede/Orchard/releases{/id}","created_at":"2015-11-17T15:52:38Z","updated_at":"2015-11-17T15:52:57Z","pushed_at":"2015-11-17T15:59:15Z","git_url":"git://github.com/DanielLackenbyBede/Orchard.git","ssh_url":"git@github.com:DanielLackenbyBede/Orchard.git","clone_url":"https://github.com/DanielLackenbyBede/Orchard.git","svn_url":"https://github.com/DanielLackenbyBede/Orchard","homepage":"http://orchardproject.net","size":143799,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"OrchardCMS:1.9.x","ref":"1.9.x","sha":"500255c3b176984617e12098d8810cbdf7d3a7ff","user":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":33889464,"name":"Orchard","full_name":"OrchardCMS/Orchard","owner":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OrchardCMS/Orchard","description":"Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.","fork":false,"url":"https://api.github.com/repos/OrchardCMS/Orchard","forks_url":"https://api.github.com/repos/OrchardCMS/Orchard/forks","keys_url":"https://api.github.com/repos/OrchardCMS/Orchard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OrchardCMS/Orchard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OrchardCMS/Orchard/teams","hooks_url":"https://api.github.com/repos/OrchardCMS/Orchard/hooks","issue_events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/events{/number}","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/events","assignees_url":"https://api.github.com/repos/OrchardCMS/Orchard/assignees{/user}","branches_url":"https://api.github.com/repos/OrchardCMS/Orchard/branches{/branch}","tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/tags","blobs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/refs{/sha}","trees_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/{sha}","languages_url":"https://api.github.com/repos/OrchardCMS/Orchard/languages","stargazers_url":"https://api.github.com/repos/OrchardCMS/Orchard/stargazers","contributors_url":"https://api.github.com/repos/OrchardCMS/Orchard/contributors","subscribers_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscribers","subscription_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscription","commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/commits{/sha}","git_commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/commits{/sha}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/comments{/number}","issue_comment_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments{/number}","contents_url":"https://api.github.com/repos/OrchardCMS/Orchard/contents/{+path}","compare_url":"https://api.github.com/repos/OrchardCMS/Orchard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OrchardCMS/Orchard/merges","archive_url":"https://api.github.com/repos/OrchardCMS/Orchard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OrchardCMS/Orchard/downloads","issues_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues{/number}","pulls_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls{/number}","milestones_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones{/number}","notifications_url":"https://api.github.com/repos/OrchardCMS/Orchard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/labels{/name}","releases_url":"https://api.github.com/repos/OrchardCMS/Orchard/releases{/id}","created_at":"2015-04-13T19:35:52Z","updated_at":"2015-11-17T11:45:54Z","pushed_at":"2015-11-17T16:00:40Z","git_url":"git://github.com/OrchardCMS/Orchard.git","ssh_url":"git@github.com:OrchardCMS/Orchard.git","clone_url":"https://github.com/OrchardCMS/Orchard.git","svn_url":"https://github.com/OrchardCMS/Orchard","homepage":"http://orchardproject.net","size":152700,"stargazers_count":573,"watchers_count":573,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":390,"mirror_url":null,"open_issues_count":1552,"forks":390,"open_issues":1552,"watchers":573,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/6044"},"html":{"href":"https://github.com/OrchardCMS/Orchard/pull/6044"},"issue":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6044"},"comments":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/issues/6044/comments"},"review_comments":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/6044/comments"},"review_comment":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/6044/commits"},"statuses":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/4946252f7e9324de891481c2587298355e6bba6e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}