{"action":"created","comment":{"url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/comments/166135312","pull_request_review_id":94168980,"id":166135312,"diff_hunk":"@@ -29,3 +29,59 @@ export const createIdsSelector = createSelectorCreator(memoizeResult);\n \n // Use this selector when you want a shallow comparison of the arguments and you don't need to memoize the result\n export const createShallowSelector = createSelectorCreator(defaultMemoize, shallowEqual);\n+\n+// isMinimumServerVersion will return true if currentVersion is equal to higher or than the\n+// the provided minimum version. A non-equal major version will ignore minor and dot\n+// versions, and a non-equal minor version will ignore dot version.\n+// currentVersion is a string, e.g '4.6.0'\n+// minMajorVersion, minMinorVersion, minDotVersion are integers\n+export function isMinimumServerVersion(currentVersion, minMajorVersion = 0, minMinorVersion = 0, minDotVersion = 0) {","path":"src/utils/helpers.js","position":10,"original_position":10,"commit_id":"f3d6608e55ac2d4c0adb6d23f301f9170026d206","original_commit_id":"3f6f74b2adcfdf474b92b2c463ddef07eab30e71","user":{"login":"hmhealey","id":3277310,"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},"body":"We could treat this like a selector depending on where we're using it. Like you just pass in state and a version requirement, and it automatically returns whether or not it meets that requirement. 0/5 though","created_at":"2018-02-05T22:39:48Z","updated_at":"2018-02-05T22:39:48Z","html_url":"https://github.com/mattermost/mattermost-redux/pull/389#discussion_r166135312","pull_request_url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/comments/166135312"},"html":{"href":"https://github.com/mattermost/mattermost-redux/pull/389#discussion_r166135312"},"pull_request":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389"}},"in_reply_to_id":166124993},"pull_request":{"url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389","id":167260927,"html_url":"https://github.com/mattermost/mattermost-redux/pull/389","diff_url":"https://github.com/mattermost/mattermost-redux/pull/389.diff","patch_url":"https://github.com/mattermost/mattermost-redux/pull/389.patch","issue_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues/389","number":389,"state":"open","locked":false,"title":"Emoji backwards compatibility with pre 4.7 servers","user":{"login":"jwilander","id":2672098,"avatar_url":"https://avatars0.githubusercontent.com/u/2672098?v=4","gravatar_id":"","url":"https://api.github.com/users/jwilander","html_url":"https://github.com/jwilander","followers_url":"https://api.github.com/users/jwilander/followers","following_url":"https://api.github.com/users/jwilander/following{/other_user}","gists_url":"https://api.github.com/users/jwilander/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilander/subscriptions","organizations_url":"https://api.github.com/users/jwilander/orgs","repos_url":"https://api.github.com/users/jwilander/repos","events_url":"https://api.github.com/users/jwilander/events{/privacy}","received_events_url":"https://api.github.com/users/jwilander/received_events","type":"User","site_admin":false},"body":"#### Summary\r\nEmoji backwards compatibility with pre 4.7 servers.\r\n\r\n#### Checklist\r\n- [x] Added or updated unit tests (required for all new features)","created_at":"2018-02-05T21:36:16Z","updated_at":"2018-02-05T22:39:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0ce8c67a5bcf4774f3307e26c788c11652733c2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hmhealey","id":3277310,"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":[],"milestone":null,"commits_url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389/commits","review_comments_url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389/comments","review_comment_url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues/389/comments","statuses_url":"https://api.github.com/repos/mattermost/mattermost-redux/statuses/f3d6608e55ac2d4c0adb6d23f301f9170026d206","head":{"label":"mattermost:emoji-backwards-compat","ref":"emoji-backwards-compat","sha":"f3d6608e55ac2d4c0adb6d23f301f9170026d206","user":{"login":"mattermost","id":9828093,"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":84744614,"name":"mattermost-redux","full_name":"mattermost/mattermost-redux","owner":{"login":"mattermost","id":9828093,"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-redux","description":"Redux for Mattermost","fork":false,"url":"https://api.github.com/repos/mattermost/mattermost-redux","forks_url":"https://api.github.com/repos/mattermost/mattermost-redux/forks","keys_url":"https://api.github.com/repos/mattermost/mattermost-redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattermost/mattermost-redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattermost/mattermost-redux/teams","hooks_url":"https://api.github.com/repos/mattermost/mattermost-redux/hooks","issue_events_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues/events{/number}","events_url":"https://api.github.com/repos/mattermost/mattermost-redux/events","assignees_url":"https://api.github.com/repos/mattermost/mattermost-redux/assignees{/user}","branches_url":"https://api.github.com/repos/mattermost/mattermost-redux/branches{/branch}","tags_url":"https://api.github.com/repos/mattermost/mattermost-redux/tags","blobs_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattermost/mattermost-redux/statuses/{sha}","languages_url":"https://api.github.com/repos/mattermost/mattermost-redux/languages","stargazers_url":"https://api.github.com/repos/mattermost/mattermost-redux/stargazers","contributors_url":"https://api.github.com/repos/mattermost/mattermost-redux/contributors","subscribers_url":"https://api.github.com/repos/mattermost/mattermost-redux/subscribers","subscription_url":"https://api.github.com/repos/mattermost/mattermost-redux/subscription","commits_url":"https://api.github.com/repos/mattermost/mattermost-redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattermost/mattermost-redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattermost/mattermost-redux/contents/{+path}","compare_url":"https://api.github.com/repos/mattermost/mattermost-redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattermost/mattermost-redux/merges","archive_url":"https://api.github.com/repos/mattermost/mattermost-redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattermost/mattermost-redux/downloads","issues_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues{/number}","pulls_url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls{/number}","milestones_url":"https://api.github.com/repos/mattermost/mattermost-redux/milestones{/number}","notifications_url":"https://api.github.com/repos/mattermost/mattermost-redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattermost/mattermost-redux/labels{/name}","releases_url":"https://api.github.com/repos/mattermost/mattermost-redux/releases{/id}","deployments_url":"https://api.github.com/repos/mattermost/mattermost-redux/deployments","created_at":"2017-03-12T17:40:39Z","updated_at":"2018-01-17T00:38:41Z","pushed_at":"2018-02-05T22:03:36Z","git_url":"git://github.com/mattermost/mattermost-redux.git","ssh_url":"git@github.com:mattermost/mattermost-redux.git","clone_url":"https://github.com/mattermost/mattermost-redux.git","svn_url":"https://github.com/mattermost/mattermost-redux","homepage":null,"size":1380,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":66,"open_issues":9,"watchers":40,"default_branch":"master"}},"base":{"label":"mattermost:master","ref":"master","sha":"bc7d2ba0972a0380b1f9d593be58692df2001c31","user":{"login":"mattermost","id":9828093,"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":84744614,"name":"mattermost-redux","full_name":"mattermost/mattermost-redux","owner":{"login":"mattermost","id":9828093,"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-redux","description":"Redux for Mattermost","fork":false,"url":"https://api.github.com/repos/mattermost/mattermost-redux","forks_url":"https://api.github.com/repos/mattermost/mattermost-redux/forks","keys_url":"https://api.github.com/repos/mattermost/mattermost-redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattermost/mattermost-redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattermost/mattermost-redux/teams","hooks_url":"https://api.github.com/repos/mattermost/mattermost-redux/hooks","issue_events_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues/events{/number}","events_url":"https://api.github.com/repos/mattermost/mattermost-redux/events","assignees_url":"https://api.github.com/repos/mattermost/mattermost-redux/assignees{/user}","branches_url":"https://api.github.com/repos/mattermost/mattermost-redux/branches{/branch}","tags_url":"https://api.github.com/repos/mattermost/mattermost-redux/tags","blobs_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattermost/mattermost-redux/statuses/{sha}","languages_url":"https://api.github.com/repos/mattermost/mattermost-redux/languages","stargazers_url":"https://api.github.com/repos/mattermost/mattermost-redux/stargazers","contributors_url":"https://api.github.com/repos/mattermost/mattermost-redux/contributors","subscribers_url":"https://api.github.com/repos/mattermost/mattermost-redux/subscribers","subscription_url":"https://api.github.com/repos/mattermost/mattermost-redux/subscription","commits_url":"https://api.github.com/repos/mattermost/mattermost-redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattermost/mattermost-redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattermost/mattermost-redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattermost/mattermost-redux/contents/{+path}","compare_url":"https://api.github.com/repos/mattermost/mattermost-redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattermost/mattermost-redux/merges","archive_url":"https://api.github.com/repos/mattermost/mattermost-redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattermost/mattermost-redux/downloads","issues_url":"https://api.github.com/repos/mattermost/mattermost-redux/issues{/number}","pulls_url":"https://api.github.com/repos/mattermost/mattermost-redux/pulls{/number}","milestones_url":"https://api.github.com/repos/mattermost/mattermost-redux/milestones{/number}","notifications_url":"https://api.github.com/repos/mattermost/mattermost-redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattermost/mattermost-redux/labels{/name}","releases_url":"https://api.github.com/repos/mattermost/mattermost-redux/releases{/id}","deployments_url":"https://api.github.com/repos/mattermost/mattermost-redux/deployments","created_at":"2017-03-12T17:40:39Z","updated_at":"2018-01-17T00:38:41Z","pushed_at":"2018-02-05T22:03:36Z","git_url":"git://github.com/mattermost/mattermost-redux.git","ssh_url":"git@github.com:mattermost/mattermost-redux.git","clone_url":"https://github.com/mattermost/mattermost-redux.git","svn_url":"https://github.com/mattermost/mattermost-redux","homepage":null,"size":1380,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":66,"open_issues":9,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389"},"html":{"href":"https://github.com/mattermost/mattermost-redux/pull/389"},"issue":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/issues/389"},"comments":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/issues/389/comments"},"review_comments":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389/comments"},"review_comment":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/pulls/389/commits"},"statuses":{"href":"https://api.github.com/repos/mattermost/mattermost-redux/statuses/f3d6608e55ac2d4c0adb6d23f301f9170026d206"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hmhealey"}}