{"action":"created","comment":{"url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/comments/143761073","pull_request_review_id":68320238,"id":143761073,"diff_hunk":"@@ -0,0 +1,56 @@\n+/**\n+ * Copyright (c) 2017, Shopgate, Inc. All rights reserved.\n+ *\n+ * This source code is licensed under the Apache 2.0 license found in the\n+ * LICENSE file in the root directory of this source tree.\n+ */\n+\n+import 'rxjs/add/operator/distinctUntilChanged';\n+import 'rxjs/add/operator/switchMap';\n+import { main$ } from '@shopgate/pwa-common/streams/main';\n+import {\n+  RECEIVE_PRODUCT,\n+  SET_PRODUCT_VARIANT_ID,\n+} from '../constants';\n+import { getSelectedVariant } from '../selectors/variants';\n+\n+/**\n+ * Gets triggered when product data received.\n+ * @type {Observable}\n+ */\n+export const productReceived$ = main$\n+  .filter(({ action }) => action.type === RECEIVE_PRODUCT)\n+  .distinctUntilChanged();\n+\n+/**\n+ * Gets triggered when VariantId changes","path":"product/streams/index.js","position":26,"original_position":26,"commit_id":"b81c8f723df087f994908eb1870b13a27c26ede2","original_commit_id":"b81c8f723df087f994908eb1870b13a27c26ede2","user":{"login":"richardgorman","id":1071254,"avatar_url":"https://avatars2.githubusercontent.com/u/1071254?v=4","gravatar_id":"","url":"https://api.github.com/users/richardgorman","html_url":"https://github.com/richardgorman","followers_url":"https://api.github.com/users/richardgorman/followers","following_url":"https://api.github.com/users/richardgorman/following{/other_user}","gists_url":"https://api.github.com/users/richardgorman/gists{/gist_id}","starred_url":"https://api.github.com/users/richardgorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardgorman/subscriptions","organizations_url":"https://api.github.com/users/richardgorman/orgs","repos_url":"https://api.github.com/users/richardgorman/repos","events_url":"https://api.github.com/users/richardgorman/events{/privacy}","received_events_url":"https://api.github.com/users/richardgorman/received_events","type":"User","site_admin":false},"body":"Missing period.","created_at":"2017-10-10T15:18:19Z","updated_at":"2017-10-10T15:18:19Z","html_url":"https://github.com/shopgate/pwa-common-commerce/pull/20#discussion_r143761073","pull_request_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/comments/143761073"},"html":{"href":"https://github.com/shopgate/pwa-common-commerce/pull/20#discussion_r143761073"},"pull_request":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20","id":145093569,"html_url":"https://github.com/shopgate/pwa-common-commerce/pull/20","diff_url":"https://github.com/shopgate/pwa-common-commerce/pull/20.diff","patch_url":"https://github.com/shopgate/pwa-common-commerce/pull/20.patch","issue_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/20","number":20,"state":"open","locked":false,"title":"Con 2206 tracking subscriptions","user":{"login":"Carsten89","id":5811286,"avatar_url":"https://avatars0.githubusercontent.com/u/5811286?v=4","gravatar_id":"","url":"https://api.github.com/users/Carsten89","html_url":"https://github.com/Carsten89","followers_url":"https://api.github.com/users/Carsten89/followers","following_url":"https://api.github.com/users/Carsten89/following{/other_user}","gists_url":"https://api.github.com/users/Carsten89/gists{/gist_id}","starred_url":"https://api.github.com/users/Carsten89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carsten89/subscriptions","organizations_url":"https://api.github.com/users/Carsten89/orgs","repos_url":"https://api.github.com/users/Carsten89/repos","events_url":"https://api.github.com/users/Carsten89/events{/privacy}","received_events_url":"https://api.github.com/users/Carsten89/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-06T08:08:09Z","updated_at":"2017-10-10T15:18:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5d0245d64152bb9f9b22ae580b523d31036953a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20/commits","review_comments_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20/comments","review_comment_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/20/comments","statuses_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/statuses/b81c8f723df087f994908eb1870b13a27c26ede2","head":{"label":"shopgate:CON-2206-Tracking-subscriptions","ref":"CON-2206-Tracking-subscriptions","sha":"b81c8f723df087f994908eb1870b13a27c26ede2","user":{"login":"shopgate","id":7113393,"avatar_url":"https://avatars3.githubusercontent.com/u/7113393?v=4","gravatar_id":"","url":"https://api.github.com/users/shopgate","html_url":"https://github.com/shopgate","followers_url":"https://api.github.com/users/shopgate/followers","following_url":"https://api.github.com/users/shopgate/following{/other_user}","gists_url":"https://api.github.com/users/shopgate/gists{/gist_id}","starred_url":"https://api.github.com/users/shopgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopgate/subscriptions","organizations_url":"https://api.github.com/users/shopgate/orgs","repos_url":"https://api.github.com/users/shopgate/repos","events_url":"https://api.github.com/users/shopgate/events{/privacy}","received_events_url":"https://api.github.com/users/shopgate/received_events","type":"Organization","site_admin":false},"repo":{"id":99964410,"name":"pwa-common-commerce","full_name":"shopgate/pwa-common-commerce","owner":{"login":"shopgate","id":7113393,"avatar_url":"https://avatars3.githubusercontent.com/u/7113393?v=4","gravatar_id":"","url":"https://api.github.com/users/shopgate","html_url":"https://github.com/shopgate","followers_url":"https://api.github.com/users/shopgate/followers","following_url":"https://api.github.com/users/shopgate/following{/other_user}","gists_url":"https://api.github.com/users/shopgate/gists{/gist_id}","starred_url":"https://api.github.com/users/shopgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopgate/subscriptions","organizations_url":"https://api.github.com/users/shopgate/orgs","repos_url":"https://api.github.com/users/shopgate/repos","events_url":"https://api.github.com/users/shopgate/events{/privacy}","received_events_url":"https://api.github.com/users/shopgate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shopgate/pwa-common-commerce","description":"Shopgate's PWA commerce library. It contains commerce modules for a redux driven react application.","fork":false,"url":"https://api.github.com/repos/shopgate/pwa-common-commerce","forks_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/forks","keys_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/teams","hooks_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/hooks","issue_events_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/events{/number}","events_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/events","assignees_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/assignees{/user}","branches_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/branches{/branch}","tags_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/tags","blobs_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/languages","stargazers_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/stargazers","contributors_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/contributors","subscribers_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/subscribers","subscription_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/subscription","commits_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/contents/{+path}","compare_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/merges","archive_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/downloads","issues_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues{/number}","pulls_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/labels{/name}","releases_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/releases{/id}","deployments_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/deployments","created_at":"2017-08-10T21:01:15Z","updated_at":"2017-09-21T15:25:14Z","pushed_at":"2017-10-10T15:07:41Z","git_url":"git://github.com/shopgate/pwa-common-commerce.git","ssh_url":"git@github.com:shopgate/pwa-common-commerce.git","clone_url":"https://github.com/shopgate/pwa-common-commerce.git","svn_url":"https://github.com/shopgate/pwa-common-commerce","homepage":"","size":407,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"shopgate:master","ref":"master","sha":"05640eb84623e1b50b64c666dc9aa327c04b3c05","user":{"login":"shopgate","id":7113393,"avatar_url":"https://avatars3.githubusercontent.com/u/7113393?v=4","gravatar_id":"","url":"https://api.github.com/users/shopgate","html_url":"https://github.com/shopgate","followers_url":"https://api.github.com/users/shopgate/followers","following_url":"https://api.github.com/users/shopgate/following{/other_user}","gists_url":"https://api.github.com/users/shopgate/gists{/gist_id}","starred_url":"https://api.github.com/users/shopgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopgate/subscriptions","organizations_url":"https://api.github.com/users/shopgate/orgs","repos_url":"https://api.github.com/users/shopgate/repos","events_url":"https://api.github.com/users/shopgate/events{/privacy}","received_events_url":"https://api.github.com/users/shopgate/received_events","type":"Organization","site_admin":false},"repo":{"id":99964410,"name":"pwa-common-commerce","full_name":"shopgate/pwa-common-commerce","owner":{"login":"shopgate","id":7113393,"avatar_url":"https://avatars3.githubusercontent.com/u/7113393?v=4","gravatar_id":"","url":"https://api.github.com/users/shopgate","html_url":"https://github.com/shopgate","followers_url":"https://api.github.com/users/shopgate/followers","following_url":"https://api.github.com/users/shopgate/following{/other_user}","gists_url":"https://api.github.com/users/shopgate/gists{/gist_id}","starred_url":"https://api.github.com/users/shopgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopgate/subscriptions","organizations_url":"https://api.github.com/users/shopgate/orgs","repos_url":"https://api.github.com/users/shopgate/repos","events_url":"https://api.github.com/users/shopgate/events{/privacy}","received_events_url":"https://api.github.com/users/shopgate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shopgate/pwa-common-commerce","description":"Shopgate's PWA commerce library. It contains commerce modules for a redux driven react application.","fork":false,"url":"https://api.github.com/repos/shopgate/pwa-common-commerce","forks_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/forks","keys_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/teams","hooks_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/hooks","issue_events_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/events{/number}","events_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/events","assignees_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/assignees{/user}","branches_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/branches{/branch}","tags_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/tags","blobs_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/languages","stargazers_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/stargazers","contributors_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/contributors","subscribers_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/subscribers","subscription_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/subscription","commits_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/contents/{+path}","compare_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/merges","archive_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/downloads","issues_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues{/number}","pulls_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/labels{/name}","releases_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/releases{/id}","deployments_url":"https://api.github.com/repos/shopgate/pwa-common-commerce/deployments","created_at":"2017-08-10T21:01:15Z","updated_at":"2017-09-21T15:25:14Z","pushed_at":"2017-10-10T15:07:41Z","git_url":"git://github.com/shopgate/pwa-common-commerce.git","ssh_url":"git@github.com:shopgate/pwa-common-commerce.git","clone_url":"https://github.com/shopgate/pwa-common-commerce.git","svn_url":"https://github.com/shopgate/pwa-common-commerce","homepage":"","size":407,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20"},"html":{"href":"https://github.com/shopgate/pwa-common-commerce/pull/20"},"issue":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/20"},"comments":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/shopgate/pwa-common-commerce/statuses/b81c8f723df087f994908eb1870b13a27c26ede2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"richardgorman"}}