{"action":"created","comment":{"url":"https://api.github.com/repos/filiph/state_experiments/pulls/comments/190085382","pull_request_review_id":122390302,"id":190085382,"diff_hunk":"@@ -1,13 +1,15 @@\n import 'package:reactive_exploration/src/bloc/main.dart' as bloc;\n+import 'package:reactive_exploration/src/bloc_complex/main.dart'\n+    as bloc_complex;\n import 'package:reactive_exploration/src/bloc_start/main.dart' as bloc_start;\n+import 'package:reactive_exploration/src/redux/main.dart' as redux;\n import 'package:reactive_exploration/src/scoped/start.dart' as scoped;\n import 'package:reactive_exploration/src/singleton/main.dart' as singleton;\n import 'package:reactive_exploration/src/start/main.dart' as start;\n import 'package:reactive_exploration/src/start/main_blob.dart' as start_blob;\n import 'package:reactive_exploration/src/value_notifier/main.dart'\n     as value_notifier;\n import 'package:reactive_exploration/src/vanilla/main.dart' as vanilla;\n-import 'package:reactive_exploration/src/redux/main.dart' as redux;\n \n void main() {","path":"shared/lib/main.dart","position":15,"original_position":15,"commit_id":"f828e017472e95e6139ea9fb0b53a7c2e665050f","original_commit_id":"f828e017472e95e6139ea9fb0b53a7c2e665050f","user":{"login":"filiph","id":919717,"avatar_url":"https://avatars2.githubusercontent.com/u/919717?v=4","gravatar_id":"","url":"https://api.github.com/users/filiph","html_url":"https://github.com/filiph","followers_url":"https://api.github.com/users/filiph/followers","following_url":"https://api.github.com/users/filiph/following{/other_user}","gists_url":"https://api.github.com/users/filiph/gists{/gist_id}","starred_url":"https://api.github.com/users/filiph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiph/subscriptions","organizations_url":"https://api.github.com/users/filiph/orgs","repos_url":"https://api.github.com/users/filiph/repos","events_url":"https://api.github.com/users/filiph/events{/privacy}","received_events_url":"https://api.github.com/users/filiph/received_events","type":"User","site_admin":false},"body":"ack","created_at":"2018-05-22T23:36:47Z","updated_at":"2018-05-22T23:36:47Z","html_url":"https://github.com/filiph/state_experiments/pull/2#discussion_r190085382","pull_request_url":"https://api.github.com/repos/filiph/state_experiments/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/filiph/state_experiments/pulls/comments/190085382"},"html":{"href":"https://github.com/filiph/state_experiments/pull/2#discussion_r190085382"},"pull_request":{"href":"https://api.github.com/repos/filiph/state_experiments/pulls/2"}},"in_reply_to_id":189671978},"pull_request":{"url":"https://api.github.com/repos/filiph/state_experiments/pulls/2","id":188832444,"html_url":"https://github.com/filiph/state_experiments/pull/2","diff_url":"https://github.com/filiph/state_experiments/pull/2.diff","patch_url":"https://github.com/filiph/state_experiments/pull/2.patch","issue_url":"https://api.github.com/repos/filiph/state_experiments/issues/2","number":2,"state":"open","locked":false,"title":"Add complex BLoC example","user":{"login":"filiph","id":919717,"avatar_url":"https://avatars2.githubusercontent.com/u/919717?v=4","gravatar_id":"","url":"https://api.github.com/users/filiph","html_url":"https://github.com/filiph","followers_url":"https://api.github.com/users/filiph/followers","following_url":"https://api.github.com/users/filiph/following{/other_user}","gists_url":"https://api.github.com/users/filiph/gists{/gist_id}","starred_url":"https://api.github.com/users/filiph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiph/subscriptions","organizations_url":"https://api.github.com/users/filiph/orgs","repos_url":"https://api.github.com/users/filiph/repos","events_url":"https://api.github.com/users/filiph/events{/privacy}","received_events_url":"https://api.github.com/users/filiph/received_events","type":"User","site_admin":false},"body":"This is adding a new version of the shopping app with much more complex logic, using Streams/BLoC. It stems from conversations at I/O where developers were unsure how to do this kind of thing.\r\n\r\nREADME is included in the version's directory. Here are its contents for convenience:\r\n\r\n----\r\n\r\nThis version of the app shows how you would manage a more complex scenario with the usage\r\nof Streams and BLoC (business logic components).\r\n\r\nThis app has the following functionality on top of the one in other versions:\r\n\r\n* The product list is arbitrarily large (in fact, it is infinite)\r\n* Products are loaded asynchronously from (fake) network in batches\r\n* Only a limited slice of the product catalog is held in memory.\r\n* Products in the catalog that are already in cart are marked as such (their name is underlined).\r\n\r\nTo make this work, we're introducing two new BLoCs:\r\n\r\n* CatalogBloc, which takes care of loading data from network according to the latest indexes\r\n  in the infinite product grid\r\n* ProductSquareBloc, which tracks whether a product is already in cart or not","created_at":"2018-05-17T19:05:16Z","updated_at":"2018-05-22T23:36:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fa580eb14362acb147788a2a819042c9e01f04b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mjohnsullivan","id":102488,"avatar_url":"https://avatars3.githubusercontent.com/u/102488?v=4","gravatar_id":"","url":"https://api.github.com/users/mjohnsullivan","html_url":"https://github.com/mjohnsullivan","followers_url":"https://api.github.com/users/mjohnsullivan/followers","following_url":"https://api.github.com/users/mjohnsullivan/following{/other_user}","gists_url":"https://api.github.com/users/mjohnsullivan/gists{/gist_id}","starred_url":"https://api.github.com/users/mjohnsullivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjohnsullivan/subscriptions","organizations_url":"https://api.github.com/users/mjohnsullivan/orgs","repos_url":"https://api.github.com/users/mjohnsullivan/repos","events_url":"https://api.github.com/users/mjohnsullivan/events{/privacy}","received_events_url":"https://api.github.com/users/mjohnsullivan/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/filiph/state_experiments/pulls/2/commits","review_comments_url":"https://api.github.com/repos/filiph/state_experiments/pulls/2/comments","review_comment_url":"https://api.github.com/repos/filiph/state_experiments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/filiph/state_experiments/issues/2/comments","statuses_url":"https://api.github.com/repos/filiph/state_experiments/statuses/f828e017472e95e6139ea9fb0b53a7c2e665050f","head":{"label":"filiph:complex_bloc","ref":"complex_bloc","sha":"f828e017472e95e6139ea9fb0b53a7c2e665050f","user":{"login":"filiph","id":919717,"avatar_url":"https://avatars2.githubusercontent.com/u/919717?v=4","gravatar_id":"","url":"https://api.github.com/users/filiph","html_url":"https://github.com/filiph","followers_url":"https://api.github.com/users/filiph/followers","following_url":"https://api.github.com/users/filiph/following{/other_user}","gists_url":"https://api.github.com/users/filiph/gists{/gist_id}","starred_url":"https://api.github.com/users/filiph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiph/subscriptions","organizations_url":"https://api.github.com/users/filiph/orgs","repos_url":"https://api.github.com/users/filiph/repos","events_url":"https://api.github.com/users/filiph/events{/privacy}","received_events_url":"https://api.github.com/users/filiph/received_events","type":"User","site_admin":false},"repo":{"id":126104193,"name":"state_experiments","full_name":"filiph/state_experiments","owner":{"login":"filiph","id":919717,"avatar_url":"https://avatars2.githubusercontent.com/u/919717?v=4","gravatar_id":"","url":"https://api.github.com/users/filiph","html_url":"https://github.com/filiph","followers_url":"https://api.github.com/users/filiph/followers","following_url":"https://api.github.com/users/filiph/following{/other_user}","gists_url":"https://api.github.com/users/filiph/gists{/gist_id}","starred_url":"https://api.github.com/users/filiph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiph/subscriptions","organizations_url":"https://api.github.com/users/filiph/orgs","repos_url":"https://api.github.com/users/filiph/repos","events_url":"https://api.github.com/users/filiph/events{/privacy}","received_events_url":"https://api.github.com/users/filiph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/filiph/state_experiments","description":"Companion repository to the \"Build reactive mobile apps in Flutter\" talk","fork":false,"url":"https://api.github.com/repos/filiph/state_experiments","forks_url":"https://api.github.com/repos/filiph/state_experiments/forks","keys_url":"https://api.github.com/repos/filiph/state_experiments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/filiph/state_experiments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/filiph/state_experiments/teams","hooks_url":"https://api.github.com/repos/filiph/state_experiments/hooks","issue_events_url":"https://api.github.com/repos/filiph/state_experiments/issues/events{/number}","events_url":"https://api.github.com/repos/filiph/state_experiments/events","assignees_url":"https://api.github.com/repos/filiph/state_experiments/assignees{/user}","branches_url":"https://api.github.com/repos/filiph/state_experiments/branches{/branch}","tags_url":"https://api.github.com/repos/filiph/state_experiments/tags","blobs_url":"https://api.github.com/repos/filiph/state_experiments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/filiph/state_experiments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/filiph/state_experiments/git/refs{/sha}","trees_url":"https://api.github.com/repos/filiph/state_experiments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/filiph/state_experiments/statuses/{sha}","languages_url":"https://api.github.com/repos/filiph/state_experiments/languages","stargazers_url":"https://api.github.com/repos/filiph/state_experiments/stargazers","contributors_url":"https://api.github.com/repos/filiph/state_experiments/contributors","subscribers_url":"https://api.github.com/repos/filiph/state_experiments/subscribers","subscription_url":"https://api.github.com/repos/filiph/state_experiments/subscription","commits_url":"https://api.github.com/repos/filiph/state_experiments/commits{/sha}","git_commits_url":"https://api.github.com/repos/filiph/state_experiments/git/commits{/sha}","comments_url":"https://api.github.com/repos/filiph/state_experiments/comments{/number}","issue_comment_url":"https://api.github.com/repos/filiph/state_experiments/issues/comments{/number}","contents_url":"https://api.github.com/repos/filiph/state_experiments/contents/{+path}","compare_url":"https://api.github.com/repos/filiph/state_experiments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/filiph/state_experiments/merges","archive_url":"https://api.github.com/repos/filiph/state_experiments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/filiph/state_experiments/downloads","issues_url":"https://api.github.com/repos/filiph/state_experiments/issues{/number}","pulls_url":"https://api.github.com/repos/filiph/state_experiments/pulls{/number}","milestones_url":"https://api.github.com/repos/filiph/state_experiments/milestones{/number}","notifications_url":"https://api.github.com/repos/filiph/state_experiments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/filiph/state_experiments/labels{/name}","releases_url":"https://api.github.com/repos/filiph/state_experiments/releases{/id}","deployments_url":"https://api.github.com/repos/filiph/state_experiments/deployments","created_at":"2018-03-21T01:16:33Z","updated_at":"2018-05-22T10:14:04Z","pushed_at":"2018-05-21T18:38:35Z","git_url":"git://github.com/filiph/state_experiments.git","ssh_url":"git@github.com:filiph/state_experiments.git","clone_url":"https://github.com/filiph/state_experiments.git","svn_url":"https://github.com/filiph/state_experiments","homepage":"https://www.youtube.com/watch?v=RS36gBEp8OI","size":280,"stargazers_count":79,"watchers_count":79,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":13,"open_issues":1,"watchers":79,"default_branch":"master"}},"base":{"label":"filiph:master","ref":"master","sha":"0c59e4bd4a080382ed6cc4fc2562a568be93a587","user":{"login":"filiph","id":919717,"avatar_url":"https://avatars2.githubusercontent.com/u/919717?v=4","gravatar_id":"","url":"https://api.github.com/users/filiph","html_url":"https://github.com/filiph","followers_url":"https://api.github.com/users/filiph/followers","following_url":"https://api.github.com/users/filiph/following{/other_user}","gists_url":"https://api.github.com/users/filiph/gists{/gist_id}","starred_url":"https://api.github.com/users/filiph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiph/subscriptions","organizations_url":"https://api.github.com/users/filiph/orgs","repos_url":"https://api.github.com/users/filiph/repos","events_url":"https://api.github.com/users/filiph/events{/privacy}","received_events_url":"https://api.github.com/users/filiph/received_events","type":"User","site_admin":false},"repo":{"id":126104193,"name":"state_experiments","full_name":"filiph/state_experiments","owner":{"login":"filiph","id":919717,"avatar_url":"https://avatars2.githubusercontent.com/u/919717?v=4","gravatar_id":"","url":"https://api.github.com/users/filiph","html_url":"https://github.com/filiph","followers_url":"https://api.github.com/users/filiph/followers","following_url":"https://api.github.com/users/filiph/following{/other_user}","gists_url":"https://api.github.com/users/filiph/gists{/gist_id}","starred_url":"https://api.github.com/users/filiph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiph/subscriptions","organizations_url":"https://api.github.com/users/filiph/orgs","repos_url":"https://api.github.com/users/filiph/repos","events_url":"https://api.github.com/users/filiph/events{/privacy}","received_events_url":"https://api.github.com/users/filiph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/filiph/state_experiments","description":"Companion repository to the \"Build reactive mobile apps in Flutter\" talk","fork":false,"url":"https://api.github.com/repos/filiph/state_experiments","forks_url":"https://api.github.com/repos/filiph/state_experiments/forks","keys_url":"https://api.github.com/repos/filiph/state_experiments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/filiph/state_experiments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/filiph/state_experiments/teams","hooks_url":"https://api.github.com/repos/filiph/state_experiments/hooks","issue_events_url":"https://api.github.com/repos/filiph/state_experiments/issues/events{/number}","events_url":"https://api.github.com/repos/filiph/state_experiments/events","assignees_url":"https://api.github.com/repos/filiph/state_experiments/assignees{/user}","branches_url":"https://api.github.com/repos/filiph/state_experiments/branches{/branch}","tags_url":"https://api.github.com/repos/filiph/state_experiments/tags","blobs_url":"https://api.github.com/repos/filiph/state_experiments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/filiph/state_experiments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/filiph/state_experiments/git/refs{/sha}","trees_url":"https://api.github.com/repos/filiph/state_experiments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/filiph/state_experiments/statuses/{sha}","languages_url":"https://api.github.com/repos/filiph/state_experiments/languages","stargazers_url":"https://api.github.com/repos/filiph/state_experiments/stargazers","contributors_url":"https://api.github.com/repos/filiph/state_experiments/contributors","subscribers_url":"https://api.github.com/repos/filiph/state_experiments/subscribers","subscription_url":"https://api.github.com/repos/filiph/state_experiments/subscription","commits_url":"https://api.github.com/repos/filiph/state_experiments/commits{/sha}","git_commits_url":"https://api.github.com/repos/filiph/state_experiments/git/commits{/sha}","comments_url":"https://api.github.com/repos/filiph/state_experiments/comments{/number}","issue_comment_url":"https://api.github.com/repos/filiph/state_experiments/issues/comments{/number}","contents_url":"https://api.github.com/repos/filiph/state_experiments/contents/{+path}","compare_url":"https://api.github.com/repos/filiph/state_experiments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/filiph/state_experiments/merges","archive_url":"https://api.github.com/repos/filiph/state_experiments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/filiph/state_experiments/downloads","issues_url":"https://api.github.com/repos/filiph/state_experiments/issues{/number}","pulls_url":"https://api.github.com/repos/filiph/state_experiments/pulls{/number}","milestones_url":"https://api.github.com/repos/filiph/state_experiments/milestones{/number}","notifications_url":"https://api.github.com/repos/filiph/state_experiments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/filiph/state_experiments/labels{/name}","releases_url":"https://api.github.com/repos/filiph/state_experiments/releases{/id}","deployments_url":"https://api.github.com/repos/filiph/state_experiments/deployments","created_at":"2018-03-21T01:16:33Z","updated_at":"2018-05-22T10:14:04Z","pushed_at":"2018-05-21T18:38:35Z","git_url":"git://github.com/filiph/state_experiments.git","ssh_url":"git@github.com:filiph/state_experiments.git","clone_url":"https://github.com/filiph/state_experiments.git","svn_url":"https://github.com/filiph/state_experiments","homepage":"https://www.youtube.com/watch?v=RS36gBEp8OI","size":280,"stargazers_count":79,"watchers_count":79,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":13,"open_issues":1,"watchers":79,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/filiph/state_experiments/pulls/2"},"html":{"href":"https://github.com/filiph/state_experiments/pull/2"},"issue":{"href":"https://api.github.com/repos/filiph/state_experiments/issues/2"},"comments":{"href":"https://api.github.com/repos/filiph/state_experiments/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/filiph/state_experiments/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/filiph/state_experiments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/filiph/state_experiments/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/filiph/state_experiments/statuses/f828e017472e95e6139ea9fb0b53a7c2e665050f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"filiph"}}