{"action":"created","comment":{"url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/comments/35083062","id":35083062,"diff_hunk":"@@ -0,0 +1,98 @@\n+{  \n+   \"queries\":[  \n+      {  \n+         \"name\":\"labels\",\n+         \"behaviour\":[  \n+            \"The supported label queries are: 'no labels' and '@{label}\",\n+            \"All whitespace is ignored and the queries are case-insensitive.\",\n+            \"The result is a single section that contains all items with no labels or the specified label respectively.\"\n+         ],\n+         \"tests\":[  \n+            {  \n+               \"id\":1,\n+               \"freezeDate\":null,\n+               \"currentUser\":null,\n+               \"context\":\"When asked for tasks with no labels in input_labels.json\",\n+               \"query\":\"no labels\",\n+               \"testFile\":\"input_labels.json\",\n+               \"assertSections\":[  \n+                  {  \n+                     \"it\": \"should return 2 items in section 0\",\n+                     \"name\":\"Tasks with no labels\",\n+                     \"type\":\"Filtered\",\n+                     \"priority\":null,\n+                     \"date\":null,\n+                     \"project\":null,\n+                     \"items\":[1, 2],\n+                     \"isReorderable\":false,\n+                     \"labels\":null\n+                  }\n+               ]\n+            },\n+            {  \n+               \"id\":2,\n+               \"freezeDate\":null,\n+               \"currentUser\":null,\n+               \"context\":\"When asked for tasks with label 'personal' in input_labels.json\",\n+               \"query\":\"@personal\",\n+               \"testFile\":\"input_labels.json\",\n+               \"assertSections\":[  \n+                  {  \n+                    \"it\": \"should return 2 items in section 0\",\n+                     \"name\":\"@personal\",\n+                     \"type\":\"Filtered\",\n+                     \"priority\":null,\n+                     \"date\":null,\n+                     \"project\":null,\n+                     \"items\":[3, 5],\n+                     \"isReorderable\":false,\n+                     \"labels\":[\"personal\"]\n+                  }\n+               ]\n+            },\n+            {  \n+               \"id\":3,\n+               \"freezeDate\":null,\n+               \"currentUser\":null,\n+               \"context\":\"When asked for tasks with label 'work' in input_labels.json\",\n+               \"query\":\"@work\",\n+               \"testFile\":\"input_labels.json\",\n+               \"assertSections\":[  \n+                  {  \n+                     \"it\": \"should return 2 items in section 0\",\n+                     \"name\":\"@work\",\n+                     \"type\":\"Filtered\",\n+                     \"priority\":null,\n+                     \"date\":null,\n+                     \"project\":null,\n+                     \"items\":[ 4, 5 ],\n+                     \"isReorderable\":false,\n+                     \"labels\":[\"work\"]\n+                  }\n+               ]\n+            },\n+            {  \n+               \"id\":4,\n+               \"freezeDate\":null,\n+               \"currentUser\":null,\n+               \"context\":\"When asked for tasks with label 'WORK' in input_labels.json\",\n+               \"query\":\"@WORK\",\n+               \"testFile\":\"input_labels.json\",\n+               \"assertSections\":[  \n+                  {  \n+                     \"it\": \"should return 2 items in section 0\",\n+                     \"name\":\"@work\",\n+                     \"type\":\"Filtered\",\n+                     \"priority\":null,\n+                     \"date\":null,\n+                     \"project\":null,\n+                     \"items\":[ 4, 5 ],\n+                     \"isReorderable\":false,\n+                     \"labels\":[\"work\"]\n+                  }\n+               ]\n+            }\n+         ]\n+      }\n+   ]","path":"spec_labels.json","position":97,"original_position":97,"commit_id":"0db33f509e2f8260056a4ee5d075f48683a5243e","original_commit_id":"0db33f509e2f8260056a4ee5d075f48683a5243e","user":{"login":"adsantos","id":705513,"avatar_url":"https://avatars.githubusercontent.com/u/705513?v=3","gravatar_id":"","url":"https://api.github.com/users/adsantos","html_url":"https://github.com/adsantos","followers_url":"https://api.github.com/users/adsantos/followers","following_url":"https://api.github.com/users/adsantos/following{/other_user}","gists_url":"https://api.github.com/users/adsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/adsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adsantos/subscriptions","organizations_url":"https://api.github.com/users/adsantos/orgs","repos_url":"https://api.github.com/users/adsantos/repos","events_url":"https://api.github.com/users/adsantos/events{/privacy}","received_events_url":"https://api.github.com/users/adsantos/received_events","type":"User","site_admin":false},"body":"@anupcowkur The spec from @Garee says \"Whitespace is to be ignored for all core and date queries.\". Please discuss this with Gary and if you are still in doubt, ask in TeamCom. Then I think you should add the test cases (e.g. the ones you added in the comment), no matter if the white space is supported or not. It will make clear how this should work.","created_at":"2015-07-21T09:09:39Z","updated_at":"2015-07-21T09:09:39Z","html_url":"https://github.com/Doist/TDFilterKitTestSources/pull/4#discussion_r35083062","pull_request_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/comments/35083062"},"html":{"href":"https://github.com/Doist/TDFilterKitTestSources/pull/4#discussion_r35083062"},"pull_request":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4","id":39990488,"html_url":"https://github.com/Doist/TDFilterKitTestSources/pull/4","diff_url":"https://github.com/Doist/TDFilterKitTestSources/pull/4.diff","patch_url":"https://github.com/Doist/TDFilterKitTestSources/pull/4.patch","issue_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/4","number":4,"state":"open","locked":false,"title":"Labels filter spec","user":{"login":"anupcowkur","id":1691740,"avatar_url":"https://avatars.githubusercontent.com/u/1691740?v=3","gravatar_id":"","url":"https://api.github.com/users/anupcowkur","html_url":"https://github.com/anupcowkur","followers_url":"https://api.github.com/users/anupcowkur/followers","following_url":"https://api.github.com/users/anupcowkur/following{/other_user}","gists_url":"https://api.github.com/users/anupcowkur/gists{/gist_id}","starred_url":"https://api.github.com/users/anupcowkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anupcowkur/subscriptions","organizations_url":"https://api.github.com/users/anupcowkur/orgs","repos_url":"https://api.github.com/users/anupcowkur/repos","events_url":"https://api.github.com/users/anupcowkur/events{/privacy}","received_events_url":"https://api.github.com/users/anupcowkur/received_events","type":"User","site_admin":false},"body":"A spec for filtering using `no labels` and `@{label}` queries and it's associated test data.","created_at":"2015-07-15T06:01:00Z","updated_at":"2015-07-21T09:09:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f77ada009a9adad9a04fb87163869a7fa3a9bc3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/4/comments","statuses_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/statuses/0db33f509e2f8260056a4ee5d075f48683a5243e","head":{"label":"Doist:labelsFilterSpec","ref":"labelsFilterSpec","sha":"0db33f509e2f8260056a4ee5d075f48683a5243e","user":{"login":"Doist","id":2565372,"avatar_url":"https://avatars.githubusercontent.com/u/2565372?v=3","gravatar_id":"","url":"https://api.github.com/users/Doist","html_url":"https://github.com/Doist","followers_url":"https://api.github.com/users/Doist/followers","following_url":"https://api.github.com/users/Doist/following{/other_user}","gists_url":"https://api.github.com/users/Doist/gists{/gist_id}","starred_url":"https://api.github.com/users/Doist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doist/subscriptions","organizations_url":"https://api.github.com/users/Doist/orgs","repos_url":"https://api.github.com/users/Doist/repos","events_url":"https://api.github.com/users/Doist/events{/privacy}","received_events_url":"https://api.github.com/users/Doist/received_events","type":"Organization","site_admin":false},"repo":{"id":38826340,"name":"TDFilterKitTestSources","full_name":"Doist/TDFilterKitTestSources","owner":{"login":"Doist","id":2565372,"avatar_url":"https://avatars.githubusercontent.com/u/2565372?v=3","gravatar_id":"","url":"https://api.github.com/users/Doist","html_url":"https://github.com/Doist","followers_url":"https://api.github.com/users/Doist/followers","following_url":"https://api.github.com/users/Doist/following{/other_user}","gists_url":"https://api.github.com/users/Doist/gists{/gist_id}","starred_url":"https://api.github.com/users/Doist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doist/subscriptions","organizations_url":"https://api.github.com/users/Doist/orgs","repos_url":"https://api.github.com/users/Doist/repos","events_url":"https://api.github.com/users/Doist/events{/privacy}","received_events_url":"https://api.github.com/users/Doist/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Doist/TDFilterKitTestSources","description":"The json spec from where the tests are generated and the test data.","fork":false,"url":"https://api.github.com/repos/Doist/TDFilterKitTestSources","forks_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/forks","keys_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/teams","hooks_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/hooks","issue_events_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/events{/number}","events_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/events","assignees_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/assignees{/user}","branches_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/branches{/branch}","tags_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/tags","blobs_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/refs{/sha}","trees_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/statuses/{sha}","languages_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/languages","stargazers_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/stargazers","contributors_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/contributors","subscribers_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/subscribers","subscription_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/subscription","commits_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/commits{/sha}","git_commits_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/commits{/sha}","comments_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/comments{/number}","issue_comment_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/comments{/number}","contents_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/contents/{+path}","compare_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/merges","archive_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/downloads","issues_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues{/number}","pulls_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls{/number}","milestones_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/milestones{/number}","notifications_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/labels{/name}","releases_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/releases{/id}","created_at":"2015-07-09T14:46:17Z","updated_at":"2015-07-13T08:02:58Z","pushed_at":"2015-07-21T04:35:38Z","git_url":"git://github.com/Doist/TDFilterKitTestSources.git","ssh_url":"git@github.com:Doist/TDFilterKitTestSources.git","clone_url":"https://github.com/Doist/TDFilterKitTestSources.git","svn_url":"https://github.com/Doist/TDFilterKitTestSources","homepage":null,"size":606,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Doist:master","ref":"master","sha":"03c61be369faab9b967152166073368169cc3a8a","user":{"login":"Doist","id":2565372,"avatar_url":"https://avatars.githubusercontent.com/u/2565372?v=3","gravatar_id":"","url":"https://api.github.com/users/Doist","html_url":"https://github.com/Doist","followers_url":"https://api.github.com/users/Doist/followers","following_url":"https://api.github.com/users/Doist/following{/other_user}","gists_url":"https://api.github.com/users/Doist/gists{/gist_id}","starred_url":"https://api.github.com/users/Doist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doist/subscriptions","organizations_url":"https://api.github.com/users/Doist/orgs","repos_url":"https://api.github.com/users/Doist/repos","events_url":"https://api.github.com/users/Doist/events{/privacy}","received_events_url":"https://api.github.com/users/Doist/received_events","type":"Organization","site_admin":false},"repo":{"id":38826340,"name":"TDFilterKitTestSources","full_name":"Doist/TDFilterKitTestSources","owner":{"login":"Doist","id":2565372,"avatar_url":"https://avatars.githubusercontent.com/u/2565372?v=3","gravatar_id":"","url":"https://api.github.com/users/Doist","html_url":"https://github.com/Doist","followers_url":"https://api.github.com/users/Doist/followers","following_url":"https://api.github.com/users/Doist/following{/other_user}","gists_url":"https://api.github.com/users/Doist/gists{/gist_id}","starred_url":"https://api.github.com/users/Doist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doist/subscriptions","organizations_url":"https://api.github.com/users/Doist/orgs","repos_url":"https://api.github.com/users/Doist/repos","events_url":"https://api.github.com/users/Doist/events{/privacy}","received_events_url":"https://api.github.com/users/Doist/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Doist/TDFilterKitTestSources","description":"The json spec from where the tests are generated and the test data.","fork":false,"url":"https://api.github.com/repos/Doist/TDFilterKitTestSources","forks_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/forks","keys_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/teams","hooks_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/hooks","issue_events_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/events{/number}","events_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/events","assignees_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/assignees{/user}","branches_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/branches{/branch}","tags_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/tags","blobs_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/refs{/sha}","trees_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/statuses/{sha}","languages_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/languages","stargazers_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/stargazers","contributors_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/contributors","subscribers_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/subscribers","subscription_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/subscription","commits_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/commits{/sha}","git_commits_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/git/commits{/sha}","comments_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/comments{/number}","issue_comment_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/comments{/number}","contents_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/contents/{+path}","compare_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/merges","archive_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/downloads","issues_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues{/number}","pulls_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls{/number}","milestones_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/milestones{/number}","notifications_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/labels{/name}","releases_url":"https://api.github.com/repos/Doist/TDFilterKitTestSources/releases{/id}","created_at":"2015-07-09T14:46:17Z","updated_at":"2015-07-13T08:02:58Z","pushed_at":"2015-07-21T04:35:38Z","git_url":"git://github.com/Doist/TDFilterKitTestSources.git","ssh_url":"git@github.com:Doist/TDFilterKitTestSources.git","clone_url":"https://github.com/Doist/TDFilterKitTestSources.git","svn_url":"https://github.com/Doist/TDFilterKitTestSources","homepage":null,"size":606,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4"},"html":{"href":"https://github.com/Doist/TDFilterKitTestSources/pull/4"},"issue":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/4"},"comments":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Doist/TDFilterKitTestSources/statuses/0db33f509e2f8260056a4ee5d075f48683a5243e"}}}}