{"action":"created","comment":{"url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments/205726548","pull_request_review_id":141054733,"id":205726548,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTcyNjU0OA==","diff_hunk":"@@ -0,0 +1,448 @@\n+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n+// See LICENSE.txt for license information.\n+\n+import React from 'react';\n+import PropTypes from 'prop-types';\n+import {FormattedMessage} from 'react-intl';\n+\n+import LoadingScreen from 'components/loading_screen.jsx';\n+import CreateChannelIntroMessage from 'components/post_view/channel_intro_message';\n+import Constants from 'utils/constants.jsx';\n+import {getNewestPostIdFromPosts, getOldestPostIdFromPosts} from 'utils/post_utils';\n+\n+import PostList from './post_list';\n+\n+const POSTS_PER_PAGE = Constants.POST_CHUNK_SIZE / 2;\n+\n+export default class PostListWrapper extends React.PureComponent {\n+    static propTypes = {\n+\n+        /**\n+         * Array of posts in the channel, ordered from newest to oldest\n+         */\n+        posts: PropTypes.array,\n+\n+        /**\n+         * The channel the posts are in\n+         */\n+        channel: PropTypes.object.isRequired,","path":"components/post_view/post_list/index.jsx","position":28,"original_position":28,"commit_id":"a687473eb21f4ff1eb26455bb898d099fb21c038","original_commit_id":"a687473eb21f4ff1eb26455bb898d099fb21c038","user":{"login":"saturninoabril","id":5334504,"node_id":"MDQ6VXNlcjUzMzQ1MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5334504?v=4","gravatar_id":"","url":"https://api.github.com/users/saturninoabril","html_url":"https://github.com/saturninoabril","followers_url":"https://api.github.com/users/saturninoabril/followers","following_url":"https://api.github.com/users/saturninoabril/following{/other_user}","gists_url":"https://api.github.com/users/saturninoabril/gists{/gist_id}","starred_url":"https://api.github.com/users/saturninoabril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saturninoabril/subscriptions","organizations_url":"https://api.github.com/users/saturninoabril/orgs","repos_url":"https://api.github.com/users/saturninoabril/repos","events_url":"https://api.github.com/users/saturninoabril/events{/privacy}","received_events_url":"https://api.github.com/users/saturninoabril/received_events","type":"User","site_admin":false},"body":"Instead of `channel` object, maybe just pass channelId, and then let other children component to get the channel out of it?","created_at":"2018-07-27T10:04:26Z","updated_at":"2018-07-27T10:04:26Z","html_url":"https://github.com/mattermost/mattermost-webapp/pull/1464#discussion_r205726548","pull_request_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments/205726548"},"html":{"href":"https://github.com/mattermost/mattermost-webapp/pull/1464#discussion_r205726548"},"pull_request":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464"}}},"pull_request":{"url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464","id":202569243,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNTY5MjQz","html_url":"https://github.com/mattermost/mattermost-webapp/pull/1464","diff_url":"https://github.com/mattermost/mattermost-webapp/pull/1464.diff","patch_url":"https://github.com/mattermost/mattermost-webapp/pull/1464.patch","issue_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/1464","number":1464,"state":"open","locked":false,"title":"MM-11223 Refactor post_list for unread/perma view","user":{"login":"sudheerDev","id":4973621,"node_id":"MDQ6VXNlcjQ5NzM2MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4973621?v=4","gravatar_id":"","url":"https://api.github.com/users/sudheerDev","html_url":"https://github.com/sudheerDev","followers_url":"https://api.github.com/users/sudheerDev/followers","following_url":"https://api.github.com/users/sudheerDev/following{/other_user}","gists_url":"https://api.github.com/users/sudheerDev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheerDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheerDev/subscriptions","organizations_url":"https://api.github.com/users/sudheerDev/orgs","repos_url":"https://api.github.com/users/sudheerDev/repos","events_url":"https://api.github.com/users/sudheerDev/events{/privacy}","received_events_url":"https://api.github.com/users/sudheerDev/received_events","type":"User","site_admin":false},"body":"#### Summary\r\nRefactor postList\r\nAdd new unread view api's\r\nAdd support for permaview in channel\r\n\r\n#### Ticket Link\r\n[MM-11310](https://mattermost.atlassian.net/browse/MM-11310)\r\n\r\n#### Checklist\r\n[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]\r\n- [x] Ran `make check-style` to check for style errors (required for all pull requests)\r\n- [x] Ran `make test` to ensure unit and component tests passed\r\n- [x] Added or updated unit tests (required for all new features)\r\n- [x] Has redux changes (https://github.com/mattermost/mattermost-redux/pull/577)\r\n- [x] Has UI changes\r\n","created_at":"2018-07-19T13:59:47Z","updated_at":"2018-07-27T10:04:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50cc7a58bf10d73b310595b5dc9ffe9a1a1d5fda","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hmhealey","id":3277310,"node_id":"MDQ6VXNlcjMyNzczMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/3277310?v=4","gravatar_id":"","url":"https://api.github.com/users/hmhealey","html_url":"https://github.com/hmhealey","followers_url":"https://api.github.com/users/hmhealey/followers","following_url":"https://api.github.com/users/hmhealey/following{/other_user}","gists_url":"https://api.github.com/users/hmhealey/gists{/gist_id}","starred_url":"https://api.github.com/users/hmhealey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmhealey/subscriptions","organizations_url":"https://api.github.com/users/hmhealey/orgs","repos_url":"https://api.github.com/users/hmhealey/repos","events_url":"https://api.github.com/users/hmhealey/events{/privacy}","received_events_url":"https://api.github.com/users/hmhealey/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":685999255,"node_id":"MDU6TGFiZWw2ODU5OTkyNTU=","url":"https://api.github.com/repos/mattermost/mattermost-webapp/labels/2:%20Dev%20Review","name":"2: Dev Review","color":"eb6420","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464/commits","review_comments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464/comments","review_comment_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/1464/comments","statuses_url":"https://api.github.com/repos/mattermost/mattermost-webapp/statuses/a687473eb21f4ff1eb26455bb898d099fb21c038","head":{"label":"sudheerDev:MM-11223","ref":"MM-11223","sha":"a687473eb21f4ff1eb26455bb898d099fb21c038","user":{"login":"sudheerDev","id":4973621,"node_id":"MDQ6VXNlcjQ5NzM2MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4973621?v=4","gravatar_id":"","url":"https://api.github.com/users/sudheerDev","html_url":"https://github.com/sudheerDev","followers_url":"https://api.github.com/users/sudheerDev/followers","following_url":"https://api.github.com/users/sudheerDev/following{/other_user}","gists_url":"https://api.github.com/users/sudheerDev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheerDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheerDev/subscriptions","organizations_url":"https://api.github.com/users/sudheerDev/orgs","repos_url":"https://api.github.com/users/sudheerDev/repos","events_url":"https://api.github.com/users/sudheerDev/events{/privacy}","received_events_url":"https://api.github.com/users/sudheerDev/received_events","type":"User","site_admin":false},"repo":{"id":104340584,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQzNDA1ODQ=","name":"mattermost-webapp","full_name":"sudheerDev/mattermost-webapp","owner":{"login":"sudheerDev","id":4973621,"node_id":"MDQ6VXNlcjQ5NzM2MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4973621?v=4","gravatar_id":"","url":"https://api.github.com/users/sudheerDev","html_url":"https://github.com/sudheerDev","followers_url":"https://api.github.com/users/sudheerDev/followers","following_url":"https://api.github.com/users/sudheerDev/following{/other_user}","gists_url":"https://api.github.com/users/sudheerDev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheerDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheerDev/subscriptions","organizations_url":"https://api.github.com/users/sudheerDev/orgs","repos_url":"https://api.github.com/users/sudheerDev/repos","events_url":"https://api.github.com/users/sudheerDev/events{/privacy}","received_events_url":"https://api.github.com/users/sudheerDev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudheerDev/mattermost-webapp","description":"Webapp of Mattermost server: https://github.com/mattermost/mattermost-server","fork":true,"url":"https://api.github.com/repos/sudheerDev/mattermost-webapp","forks_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/forks","keys_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/teams","hooks_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/hooks","issue_events_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/events","assignees_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/tags","blobs_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/languages","stargazers_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/stargazers","contributors_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/contributors","subscribers_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/subscribers","subscription_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/subscription","commits_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/merges","archive_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/downloads","issues_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/labels{/name}","releases_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/sudheerDev/mattermost-webapp/deployments","created_at":"2017-09-21T11:38:36Z","updated_at":"2018-06-18T11:40:28Z","pushed_at":"2018-07-26T15:27:13Z","git_url":"git://github.com/sudheerDev/mattermost-webapp.git","ssh_url":"git@github.com:sudheerDev/mattermost-webapp.git","clone_url":"https://github.com/sudheerDev/mattermost-webapp.git","svn_url":"https://github.com/sudheerDev/mattermost-webapp","homepage":null,"size":103896,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattermost:scrolling-overhaul","ref":"scrolling-overhaul","sha":"5eafe6c1c4970767581b35c84b20687bb9769bcd","user":{"login":"mattermost","id":9828093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk4MjgwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9828093?v=4","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"repo":{"id":102689445,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI2ODk0NDU=","name":"mattermost-webapp","full_name":"mattermost/mattermost-webapp","owner":{"login":"mattermost","id":9828093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk4MjgwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9828093?v=4","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mattermost/mattermost-webapp","description":"Webapp of Mattermost server: https://github.com/mattermost/mattermost-server","fork":false,"url":"https://api.github.com/repos/mattermost/mattermost-webapp","forks_url":"https://api.github.com/repos/mattermost/mattermost-webapp/forks","keys_url":"https://api.github.com/repos/mattermost/mattermost-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattermost/mattermost-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattermost/mattermost-webapp/teams","hooks_url":"https://api.github.com/repos/mattermost/mattermost-webapp/hooks","issue_events_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/mattermost/mattermost-webapp/events","assignees_url":"https://api.github.com/repos/mattermost/mattermost-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/mattermost/mattermost-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/mattermost/mattermost-webapp/tags","blobs_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattermost/mattermost-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/mattermost/mattermost-webapp/languages","stargazers_url":"https://api.github.com/repos/mattermost/mattermost-webapp/stargazers","contributors_url":"https://api.github.com/repos/mattermost/mattermost-webapp/contributors","subscribers_url":"https://api.github.com/repos/mattermost/mattermost-webapp/subscribers","subscription_url":"https://api.github.com/repos/mattermost/mattermost-webapp/subscription","commits_url":"https://api.github.com/repos/mattermost/mattermost-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattermost/mattermost-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/mattermost/mattermost-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattermost/mattermost-webapp/merges","archive_url":"https://api.github.com/repos/mattermost/mattermost-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattermost/mattermost-webapp/downloads","issues_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/mattermost/mattermost-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/mattermost/mattermost-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattermost/mattermost-webapp/labels{/name}","releases_url":"https://api.github.com/repos/mattermost/mattermost-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/deployments","created_at":"2017-09-07T04:00:02Z","updated_at":"2018-07-27T09:51:27Z","pushed_at":"2018-07-27T08:54:45Z","git_url":"git://github.com/mattermost/mattermost-webapp.git","ssh_url":"git@github.com:mattermost/mattermost-webapp.git","clone_url":"https://github.com/mattermost/mattermost-webapp.git","svn_url":"https://github.com/mattermost/mattermost-webapp","homepage":null,"size":106207,"stargazers_count":217,"watchers_count":217,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":434,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":434,"open_issues":26,"watchers":217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464"},"html":{"href":"https://github.com/mattermost/mattermost-webapp/pull/1464"},"issue":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/1464"},"comments":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/1464/comments"},"review_comments":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464/comments"},"review_comment":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/1464/commits"},"statuses":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/statuses/a687473eb21f4ff1eb26455bb898d099fb21c038"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"saturninoabril"}}