{"action":"created","comment":{"url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments/94799160","pull_request_review_id":15335146,"id":94799160,"diff_hunk":"@@ -0,0 +1,89 @@\n+import { Component, OnDestroy } from '@angular/core';\n+import { Subscription } from 'rxjs';\n+import { DistributionModel, SeriesModel, StoryModel, TabService } from '../../shared';\n+\n+@Component({\n+  template: `\n+    <section *ngIf=\"series && podcast\">\n+      <div class=\"hint\" *ngIf=\"noStories\">\n+        You have no published stories in this podcast.\n+      </div>\n+\n+      <section *ngIf=\"!noStories\">\n+        <ul *ngIf=\"privateStories.length\">\n+          <h4>Private</h4>\n+          <li *ngFor=\"let s of privateStories\">\n+            <h5><a [routerLink]=\"['/story', s.id]\">{{s.title}}</a></h5>\n+            <p class=\"private\">No publication date set.</p>\n+          </li>\n+        </ul>\n+\n+        <ul *ngIf=\"futurePublicStories.length\">\n+          <h4>Set for future publication</h4>\n+          <li *ngFor=\"let s of futurePublicStories\">\n+            <h5><a [routerLink]=\"['/story', s.id]\">{{s.title}}</a></h5>\n+            <p class=\"futurePublic\">Will be published {{s.pubDate}}.</p>\n+          </li>\n+        </ul>\n+\n+        <ul *ngIf=\"publicStories.length\">\n+          <h4>Public feed</h4>\n+          <li *ngFor=\"let s of publicStories\">\n+            <h5><a [routerLink]=\"['/story', s.id]\">{{s.title}}</a></h5>\n+            <p class=\"public\">Published {{s.pubDate}}.</p>\n+          </li>\n+        </ul>\n+      </section>\n+    </section>\n+  `,\n+  styleUrls: ['./series-feed.component.css']\n+})\n+\n+export class SeriesFeedComponent implements OnDestroy {\n+\n+  noStories: boolean;\n+  series: SeriesModel;\n+  publicStories: StoryModel[] = [];\n+  futurePublicStories: StoryModel[] = [];\n+  privateStories: StoryModel[] = [];\n+  podcast: DistributionModel;\n+  tabSub: Subscription;\n+\n+  constructor(tab: TabService) {\n+    this.noStories = false;\n+    this.tabSub = tab.model.subscribe((s: SeriesModel) => {\n+      this.series = s;\n+      this.podcast = s.distributions.filter(dist => dist.kind === 'podcast')[0];","path":"src/app/series/directives/series-feed.component.ts","position":56,"original_position":56,"commit_id":"25d71c7977b596b63e4dbbebc16a8e11555cfca2","original_commit_id":"25d71c7977b596b63e4dbbebc16a8e11555cfca2","user":{"login":"cavis","id":1410587,"avatar_url":"https://avatars.githubusercontent.com/u/1410587?v=3","gravatar_id":"","url":"https://api.github.com/users/cavis","html_url":"https://github.com/cavis","followers_url":"https://api.github.com/users/cavis/followers","following_url":"https://api.github.com/users/cavis/following{/other_user}","gists_url":"https://api.github.com/users/cavis/gists{/gist_id}","starred_url":"https://api.github.com/users/cavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cavis/subscriptions","organizations_url":"https://api.github.com/users/cavis/orgs","repos_url":"https://api.github.com/users/cavis/repos","events_url":"https://api.github.com/users/cavis/events{/privacy}","received_events_url":"https://api.github.com/users/cavis/received_events","type":"User","site_admin":false},"body":"And the more I think about it ... I'm not sure this tab should care if you have a podcast-distribution or not.  Even on a non-podcast Series, it would be useful to see this list.","created_at":"2017-01-05T16:23:58Z","updated_at":"2017-01-05T16:38:47Z","html_url":"https://github.com/PRX/publish.prx.org/pull/183#discussion_r94799160","pull_request_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183","_links":{"self":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments/94799160"},"html":{"href":"https://github.com/PRX/publish.prx.org/pull/183#discussion_r94799160"},"pull_request":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183"}}},"pull_request":{"url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183","id":99592400,"html_url":"https://github.com/PRX/publish.prx.org/pull/183","diff_url":"https://github.com/PRX/publish.prx.org/pull/183.diff","patch_url":"https://github.com/PRX/publish.prx.org/pull/183.patch","issue_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/183","number":183,"state":"open","locked":false,"title":"Show podcast feed story order","user":{"login":"gcampo88","id":16007382,"avatar_url":"https://avatars.githubusercontent.com/u/16007382?v=3","gravatar_id":"","url":"https://api.github.com/users/gcampo88","html_url":"https://github.com/gcampo88","followers_url":"https://api.github.com/users/gcampo88/followers","following_url":"https://api.github.com/users/gcampo88/following{/other_user}","gists_url":"https://api.github.com/users/gcampo88/gists{/gist_id}","starred_url":"https://api.github.com/users/gcampo88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcampo88/subscriptions","organizations_url":"https://api.github.com/users/gcampo88/orgs","repos_url":"https://api.github.com/users/gcampo88/repos","events_url":"https://api.github.com/users/gcampo88/events{/privacy}","received_events_url":"https://api.github.com/users/gcampo88/received_events","type":"User","site_admin":false},"body":"Added a tab on Series edit that shows the stories for a podcast in the order they'll show up in the feed (#124), and will sort based on public / to-be-public / private status. ","created_at":"2016-12-28T21:03:23Z","updated_at":"2017-01-05T16:38:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c68d98ef19779440708fb258069ce4729b8d2c8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183/commits","review_comments_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183/comments","review_comment_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/183/comments","statuses_url":"https://api.github.com/repos/PRX/publish.prx.org/statuses/25d71c7977b596b63e4dbbebc16a8e11555cfca2","head":{"label":"PRX:feat/feed-story-ordering","ref":"feat/feed-story-ordering","sha":"25d71c7977b596b63e4dbbebc16a8e11555cfca2","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":53075022,"name":"publish.prx.org","full_name":"PRX/publish.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/publish.prx.org","description":"Publishing app","fork":false,"url":"https://api.github.com/repos/PRX/publish.prx.org","forks_url":"https://api.github.com/repos/PRX/publish.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/publish.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/publish.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/publish.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/publish.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/publish.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/publish.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/publish.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/publish.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/publish.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/publish.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/publish.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/publish.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/publish.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/publish.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/publish.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/publish.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/publish.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/publish.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/publish.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/publish.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/publish.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/publish.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/publish.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/publish.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/publish.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/publish.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/publish.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/publish.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/publish.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/publish.prx.org/deployments","created_at":"2016-03-03T18:55:16Z","updated_at":"2016-03-31T16:34:56Z","pushed_at":"2017-01-04T22:55:52Z","git_url":"git://github.com/PRX/publish.prx.org.git","ssh_url":"git@github.com:PRX/publish.prx.org.git","clone_url":"https://github.com/PRX/publish.prx.org.git","svn_url":"https://github.com/PRX/publish.prx.org","homepage":null,"size":10317,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":47,"forks":0,"open_issues":47,"watchers":0,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"08e90df1ec4a1aaecfd204737a8905d467f0907a","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":53075022,"name":"publish.prx.org","full_name":"PRX/publish.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/publish.prx.org","description":"Publishing app","fork":false,"url":"https://api.github.com/repos/PRX/publish.prx.org","forks_url":"https://api.github.com/repos/PRX/publish.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/publish.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/publish.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/publish.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/publish.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/publish.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/publish.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/publish.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/publish.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/publish.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/publish.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/publish.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/publish.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/publish.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/publish.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/publish.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/publish.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/publish.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/publish.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/publish.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/publish.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/publish.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/publish.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/publish.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/publish.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/publish.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/publish.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/publish.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/publish.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/publish.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/publish.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/publish.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/publish.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/publish.prx.org/deployments","created_at":"2016-03-03T18:55:16Z","updated_at":"2016-03-31T16:34:56Z","pushed_at":"2017-01-04T22:55:52Z","git_url":"git://github.com/PRX/publish.prx.org.git","ssh_url":"git@github.com:PRX/publish.prx.org.git","clone_url":"https://github.com/PRX/publish.prx.org.git","svn_url":"https://github.com/PRX/publish.prx.org","homepage":null,"size":10317,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":47,"forks":0,"open_issues":47,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183"},"html":{"href":"https://github.com/PRX/publish.prx.org/pull/183"},"issue":{"href":"https://api.github.com/repos/PRX/publish.prx.org/issues/183"},"comments":{"href":"https://api.github.com/repos/PRX/publish.prx.org/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/publish.prx.org/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/publish.prx.org/statuses/25d71c7977b596b63e4dbbebc16a8e11555cfca2"}}}}
{"actor":{"display_login":"cavis"}}