{"action":"created","comment":{"url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/comments/144940636","pull_request_review_id":69664331,"id":144940636,"diff_hunk":"@@ -0,0 +1,136 @@\n+import { Component, OnDestroy } from '@angular/core';\n+import { Store } from '@ngrx/store';\n+import { Subscription } from 'rxjs/Subscription';\n+import { EpisodeMetricsModel, EpisodeModel, FilterModel, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_15MIN } from '../ngrx/model';\n+import { selectEpisodes, selectFilter, selectEpisodeMetrics } from '../ngrx/reducers';\n+import { filterPodcastMetrics, filterAllPodcastEpisodes, filterEpisodeMetrics, metricsData, getTotal } from '../shared/util/metrics.util';\n+import { mapMetricsToTimeseriesData, dayMonthDate, hourlyDateFormat } from '../shared/util/chart.util';\n+import * as moment from 'moment';\n+\n+@Component({\n+  selector: 'metrics-downloads-table',\n+  template: `\n+    <table *ngIf=\"episodeTableData && episodeTableData.length\">\n+      <thead>\n+        <tr>\n+          <th class=\"sticky\">Episode</th>\n+          <th>Release Date</th>\n+          <th>Total for period</th>\n+          <th *ngFor=\"let date of dateRange\">{{date}}</th>\n+        </tr>\n+      </thead>\n+      <tbody>\n+        <tr *ngFor=\"let episode of episodeTableData\">","path":"src/app/downloads/downloads-table.component.ts","position":23,"original_position":23,"commit_id":"a544a78f937f7b3911a5795b2007e917993cdb92","original_commit_id":"a544a78f937f7b3911a5795b2007e917993cdb92","user":{"login":"sandikbarr","id":2250413,"avatar_url":"https://avatars2.githubusercontent.com/u/2250413?v=4","gravatar_id":"","url":"https://api.github.com/users/sandikbarr","html_url":"https://github.com/sandikbarr","followers_url":"https://api.github.com/users/sandikbarr/followers","following_url":"https://api.github.com/users/sandikbarr/following{/other_user}","gists_url":"https://api.github.com/users/sandikbarr/gists{/gist_id}","starred_url":"https://api.github.com/users/sandikbarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandikbarr/subscriptions","organizations_url":"https://api.github.com/users/sandikbarr/orgs","repos_url":"https://api.github.com/users/sandikbarr/repos","events_url":"https://api.github.com/users/sandikbarr/events{/privacy}","received_events_url":"https://api.github.com/users/sandikbarr/received_events","type":"User","site_admin":false},"body":"The first table row below the date headers should be a row of podcast metrics of \"All Episodes\" https://projects.invisionapp.com/share/X6CQZU4MQ#/screens/249402553","created_at":"2017-10-16T19:13:05Z","updated_at":"2017-10-16T19:59:13Z","html_url":"https://github.com/PRX/metrics.prx.org/pull/50#discussion_r144940636","pull_request_url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/comments/144940636"},"html":{"href":"https://github.com/PRX/metrics.prx.org/pull/50#discussion_r144940636"},"pull_request":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50","id":146331982,"html_url":"https://github.com/PRX/metrics.prx.org/pull/50","diff_url":"https://github.com/PRX/metrics.prx.org/pull/50.diff","patch_url":"https://github.com/PRX/metrics.prx.org/pull/50.patch","issue_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues/50","number":50,"state":"open","locked":false,"title":"Episode downloads table ","user":{"login":"gcampo88","id":16007382,"avatar_url":"https://avatars1.githubusercontent.com/u/16007382?v=4","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":"#26. Notes:\r\n- Per team discussion on slack, table just shows selected episodes, and we will open tix on both metrics and castle to get it to request + show data for all episodes. \r\n- Existing styling funkiness -- seemed like `.controls` and `.content` were meant to take up 20% and 80% of the available horizontal space, respectively, but the controls were overflowing their container and pushing everything off the right. I've now given both a `max-width` of their respective percentages, which is making the controls section look a little cramped. Since it sounds like there [may be a redesign ](https://github.com/PRX/metrics.prx.org/issues/46)of that section imminently, okay to leave this cramped-ness for now for addressing in the later ticket redesigning the controls section?","created_at":"2017-10-12T22:39:09Z","updated_at":"2017-10-16T19:59:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc9a7ee84a82f10aee97fc0344564e534f083f69","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50/commits","review_comments_url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50/comments","review_comment_url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues/50/comments","statuses_url":"https://api.github.com/repos/PRX/metrics.prx.org/statuses/a544a78f937f7b3911a5795b2007e917993cdb92","head":{"label":"PRX:feat/downloads-table","ref":"feat/downloads-table","sha":"a544a78f937f7b3911a5795b2007e917993cdb92","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","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":92314349,"name":"metrics.prx.org","full_name":"PRX/metrics.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","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/metrics.prx.org","description":"PRX Metrics Frontend App","fork":false,"url":"https://api.github.com/repos/PRX/metrics.prx.org","forks_url":"https://api.github.com/repos/PRX/metrics.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/metrics.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/metrics.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/metrics.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/metrics.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/metrics.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/metrics.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/metrics.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/metrics.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/metrics.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/metrics.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/metrics.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/metrics.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/metrics.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/metrics.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/metrics.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/metrics.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/metrics.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/metrics.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/metrics.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/metrics.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/metrics.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/metrics.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/metrics.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/metrics.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/metrics.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/metrics.prx.org/deployments","created_at":"2017-05-24T16:38:41Z","updated_at":"2017-08-01T15:15:11Z","pushed_at":"2017-10-16T16:07:03Z","git_url":"git://github.com/PRX/metrics.prx.org.git","ssh_url":"git@github.com:PRX/metrics.prx.org.git","clone_url":"https://github.com/PRX/metrics.prx.org.git","svn_url":"https://github.com/PRX/metrics.prx.org","homepage":null,"size":385,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"635233f1e61084d1016395bc658b3e6d10c4605a","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","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":92314349,"name":"metrics.prx.org","full_name":"PRX/metrics.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars3.githubusercontent.com/u/160453?v=4","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/metrics.prx.org","description":"PRX Metrics Frontend App","fork":false,"url":"https://api.github.com/repos/PRX/metrics.prx.org","forks_url":"https://api.github.com/repos/PRX/metrics.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/metrics.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/metrics.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/metrics.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/metrics.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/metrics.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/metrics.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/metrics.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/metrics.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/metrics.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/metrics.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/metrics.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/metrics.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/metrics.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/metrics.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/metrics.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/metrics.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/metrics.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/metrics.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/metrics.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/metrics.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/metrics.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/metrics.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/metrics.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/metrics.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/metrics.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/metrics.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/metrics.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/metrics.prx.org/releases{/id}","deployments_url":"https://api.github.com/repos/PRX/metrics.prx.org/deployments","created_at":"2017-05-24T16:38:41Z","updated_at":"2017-08-01T15:15:11Z","pushed_at":"2017-10-16T16:07:03Z","git_url":"git://github.com/PRX/metrics.prx.org.git","ssh_url":"git@github.com:PRX/metrics.prx.org.git","clone_url":"https://github.com/PRX/metrics.prx.org.git","svn_url":"https://github.com/PRX/metrics.prx.org","homepage":null,"size":385,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50"},"html":{"href":"https://github.com/PRX/metrics.prx.org/pull/50"},"issue":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/issues/50"},"comments":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/metrics.prx.org/statuses/a544a78f937f7b3911a5795b2007e917993cdb92"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sandikbarr"}}