{"action":"created","comment":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/241281528","pull_request_review_id":184513110,"id":241281528,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTI4MTUyOA==","diff_hunk":"@@ -0,0 +1,90 @@\n+import ballerina/io;\n+import ballerina/runtime;\n+\n+// Create a record type that represents the Person.\n+type Person record {\n+    string name;\n+    int age;\n+    string status;\n+    string address;\n+    string phoneNo;\n+};\n+\n+// Create a record type that represents the Child.\n+type Child record {\n+    string name;\n+    int age;\n+    string city;\n+};\n+\n+\n+int index = 0;\n+\n+// Streams which are based on above-created constraint types.\n+stream<Person> personStream = new;\n+stream<Child> childrenStream = new;\n+\n+Child[] globalChildrenArray = [];\n+\n+function initFilterQuery() {\n+    // Streaming query which filter events based on the attribute age.\n+    // Filterted events are pushed to a stream called `childrenStream`.\n+    forever {\n+        from personStream where personStream.age <= 16\n+        select personStream.name, personStream.age,\n+                personStream.address as city\n+        => (Child[] children) {\n+            foreach var c in children {\n+                childrenStream.publish(c);\n+            }\n+        }\n+    }\n+}\n+\n+public function main() {\n+\n+    // Sample events that represent the different person.","path":"examples/simple-filtering/simple_filtering.bal","position":46,"original_position":46,"commit_id":"9b7a2632b503c1a655551a94b22b6d46dbea7921","original_commit_id":"9b7a2632b503c1a655551a94b22b6d46dbea7921","user":{"login":"mohanvive","id":7523274,"node_id":"MDQ6VXNlcjc1MjMyNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7523274?v=4","gravatar_id":"","url":"https://api.github.com/users/mohanvive","html_url":"https://github.com/mohanvive","followers_url":"https://api.github.com/users/mohanvive/followers","following_url":"https://api.github.com/users/mohanvive/following{/other_user}","gists_url":"https://api.github.com/users/mohanvive/gists{/gist_id}","starred_url":"https://api.github.com/users/mohanvive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohanvive/subscriptions","organizations_url":"https://api.github.com/users/mohanvive/orgs","repos_url":"https://api.github.com/users/mohanvive/repos","events_url":"https://api.github.com/users/mohanvive/events{/privacy}","received_events_url":"https://api.github.com/users/mohanvive/received_events","type":"User","site_admin":false},"body":"FIxed in https://github.com/ballerina-platform/ballerina-lang/pull/12750.","created_at":"2018-12-13T06:11:19Z","updated_at":"2018-12-13T06:11:20Z","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/12733#discussion_r241281528","pull_request_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/241281528"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/12733#discussion_r241281528"},"pull_request":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733"}},"in_reply_to_id":241277670},"pull_request":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733","id":238010867,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4MDEwODY3","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/12733","diff_url":"https://github.com/ballerina-platform/ballerina-lang/pull/12733.diff","patch_url":"https://github.com/ballerina-platform/ballerina-lang/pull/12733.patch","issue_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/12733","number":12733,"state":"closed","locked":false,"title":"Add changes to ballerina streams example & remove redundant changes","user":{"login":"mohanvive","id":7523274,"node_id":"MDQ6VXNlcjc1MjMyNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7523274?v=4","gravatar_id":"","url":"https://api.github.com/users/mohanvive","html_url":"https://github.com/mohanvive","followers_url":"https://api.github.com/users/mohanvive/followers","following_url":"https://api.github.com/users/mohanvive/following{/other_user}","gists_url":"https://api.github.com/users/mohanvive/gists{/gist_id}","starred_url":"https://api.github.com/users/mohanvive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohanvive/subscriptions","organizations_url":"https://api.github.com/users/mohanvive/orgs","repos_url":"https://api.github.com/users/mohanvive/repos","events_url":"https://api.github.com/users/mohanvive/events{/privacy}","received_events_url":"https://api.github.com/users/mohanvive/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n> $subject.","created_at":"2018-12-12T11:56:06Z","updated_at":"2018-12-13T06:11:20Z","closed_at":"2018-12-12T16:00:27Z","merged_at":"2018-12-12T16:00:27Z","merge_commit_sha":"29ddfcf4b7ed45d985539cb65248e4672161d3d0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733/commits","review_comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733/comments","review_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/12733/comments","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/9b7a2632b503c1a655551a94b22b6d46dbea7921","head":{"label":"ballerina-streams:streams-example-fix","ref":"streams-example-fix","sha":"9b7a2632b503c1a655551a94b22b6d46dbea7921","user":{"login":"ballerina-streams","id":36630714,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjMwNzE0","avatar_url":"https://avatars2.githubusercontent.com/u/36630714?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-streams","html_url":"https://github.com/ballerina-streams","followers_url":"https://api.github.com/users/ballerina-streams/followers","following_url":"https://api.github.com/users/ballerina-streams/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-streams/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-streams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-streams/subscriptions","organizations_url":"https://api.github.com/users/ballerina-streams/orgs","repos_url":"https://api.github.com/users/ballerina-streams/repos","events_url":"https://api.github.com/users/ballerina-streams/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-streams/received_events","type":"Organization","site_admin":false},"repo":{"id":133947633,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5NDc2MzM=","name":"ballerina-lang","full_name":"ballerina-streams/ballerina-lang","private":false,"owner":{"login":"ballerina-streams","id":36630714,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjMwNzE0","avatar_url":"https://avatars2.githubusercontent.com/u/36630714?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-streams","html_url":"https://github.com/ballerina-streams","followers_url":"https://api.github.com/users/ballerina-streams/followers","following_url":"https://api.github.com/users/ballerina-streams/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-streams/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-streams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-streams/subscriptions","organizations_url":"https://api.github.com/users/ballerina-streams/orgs","repos_url":"https://api.github.com/users/ballerina-streams/repos","events_url":"https://api.github.com/users/ballerina-streams/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-streams/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ballerina-streams/ballerina-lang","description":"Ballerina is a new programming language for integration built on a sequence diagram metaphor.","fork":true,"url":"https://api.github.com/repos/ballerina-streams/ballerina-lang","forks_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/forks","keys_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/teams","hooks_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/hooks","issue_events_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/events","assignees_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/tags","blobs_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/languages","stargazers_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/stargazers","contributors_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/contributors","subscribers_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/subscribers","subscription_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/subscription","commits_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/merges","archive_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/downloads","issues_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-streams/ballerina-lang/deployments","created_at":"2018-05-18T11:50:40Z","updated_at":"2018-12-11T14:50:14Z","pushed_at":"2018-12-13T06:10:11Z","git_url":"git://github.com/ballerina-streams/ballerina-lang.git","ssh_url":"git@github.com:ballerina-streams/ballerina-lang.git","clone_url":"https://github.com/ballerina-streams/ballerina-lang.git","svn_url":"https://github.com/ballerina-streams/ballerina-lang","homepage":"","size":300644,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ballerina-platform:release-0.990.0","ref":"release-0.990.0","sha":"091afd72866031f63cb120a8172304ad80ca4cf0","user":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":73930305,"node_id":"MDEwOlJlcG9zaXRvcnk3MzkzMDMwNQ==","name":"ballerina-lang","full_name":"ballerina-platform/ballerina-lang","private":false,"owner":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ballerina-platform/ballerina-lang","description":"Ballerina is a compiled, transactional, statically and strongly typed programming language with textual and graphical syntaxes.","fork":false,"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang","forks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/forks","keys_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/teams","hooks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/hooks","issue_events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/events","assignees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/tags","blobs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/languages","stargazers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/stargazers","contributors_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contributors","subscribers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscribers","subscription_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscription","commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/merges","archive_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/downloads","issues_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/deployments","created_at":"2016-11-16T14:58:44Z","updated_at":"2018-12-13T00:43:47Z","pushed_at":"2018-12-13T06:10:43Z","git_url":"git://github.com/ballerina-platform/ballerina-lang.git","ssh_url":"git@github.com:ballerina-platform/ballerina-lang.git","clone_url":"https://github.com/ballerina-platform/ballerina-lang.git","svn_url":"https://github.com/ballerina-platform/ballerina-lang","homepage":"","size":306361,"stargazers_count":1540,"watchers_count":1540,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":412,"mirror_url":null,"archived":false,"open_issues_count":623,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":412,"open_issues":623,"watchers":1540,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/12733"},"issue":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/12733"},"comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/12733/comments"},"review_comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733/comments"},"review_comment":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/12733/commits"},"statuses":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/9b7a2632b503c1a655551a94b22b6d46dbea7921"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mohanvive"}}