{"action":"created","issue":{"url":"https://api.github.com/repos/Frikanalen/frikanalen/issues/111","repository_url":"https://api.github.com/repos/Frikanalen/frikanalen","labels_url":"https://api.github.com/repos/Frikanalen/frikanalen/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/Frikanalen/frikanalen/issues/111/comments","events_url":"https://api.github.com/repos/Frikanalen/frikanalen/issues/111/events","html_url":"https://github.com/Frikanalen/frikanalen/issues/111","id":379915467,"node_id":"MDU6SXNzdWUzNzk5MTU0Njc=","number":111,"title":"Filtering videos on publish_on_web should work","user":{"login":"petterreinholdtsen","id":731031,"node_id":"MDQ6VXNlcjczMTAzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/731031?v=4","gravatar_id":"","url":"https://api.github.com/users/petterreinholdtsen","html_url":"https://github.com/petterreinholdtsen","followers_url":"https://api.github.com/users/petterreinholdtsen/followers","following_url":"https://api.github.com/users/petterreinholdtsen/following{/other_user}","gists_url":"https://api.github.com/users/petterreinholdtsen/gists{/gist_id}","starred_url":"https://api.github.com/users/petterreinholdtsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petterreinholdtsen/subscriptions","organizations_url":"https://api.github.com/users/petterreinholdtsen/orgs","repos_url":"https://api.github.com/users/petterreinholdtsen/repos","events_url":"https://api.github.com/users/petterreinholdtsen/events{/privacy}","received_events_url":"https://api.github.com/users/petterreinholdtsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-12T19:15:22Z","updated_at":"2018-11-12T20:39:55Z","closed_at":null,"author_association":"MEMBER","body":"The API search for videos with publish_on_web set is not working.\r\n\r\nThis cause a problem with the Kodi player, showing videos that should not show up in the category lists, see https://github.com/Frikanalen/kodi-frikanalen/issues/7\r\n\r\nThis test case show the problem.\r\n\r\n```\r\ndiff --git a/fkbeta/fkws/tests.py b/fkbeta/fkws/tests.py\r\nindex e226c1e..bd2eccd 100644\r\n--- a/fkbeta/fkws/tests.py\r\n+++ b/fkbeta/fkws/tests.py\r\n@@ -345,6 +345,7 @@ class VideoFilterTest(APITestCase):\r\n                     'unpublished video',\r\n                     'dummy video',\r\n                 ]),\r\n+            ('?publish_on_web=false&name__icontains=unpublish', []),\r\n             ('?editor__username=nuug', []),\r\n             ('?editor__username=nuug_user', ['tech video']),\r\n             ('?editor__username=dummy_user&name=', ['dummy video']),\r\n```"},"comment":{"url":"https://api.github.com/repos/Frikanalen/frikanalen/issues/comments/438021147","html_url":"https://github.com/Frikanalen/frikanalen/issues/111#issuecomment-438021147","issue_url":"https://api.github.com/repos/Frikanalen/frikanalen/issues/111","id":438021147,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODAyMTE0Nw==","user":{"login":"petterreinholdtsen","id":731031,"node_id":"MDQ6VXNlcjczMTAzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/731031?v=4","gravatar_id":"","url":"https://api.github.com/users/petterreinholdtsen","html_url":"https://github.com/petterreinholdtsen","followers_url":"https://api.github.com/users/petterreinholdtsen/followers","following_url":"https://api.github.com/users/petterreinholdtsen/following{/other_user}","gists_url":"https://api.github.com/users/petterreinholdtsen/gists{/gist_id}","starred_url":"https://api.github.com/users/petterreinholdtsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petterreinholdtsen/subscriptions","organizations_url":"https://api.github.com/users/petterreinholdtsen/orgs","repos_url":"https://api.github.com/users/petterreinholdtsen/repos","events_url":"https://api.github.com/users/petterreinholdtsen/events{/privacy}","received_events_url":"https://api.github.com/users/petterreinholdtsen/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T20:39:55Z","updated_at":"2018-11-12T20:39:55Z","author_association":"MEMBER","body":"Perhaps it is useful to add tests to check has_tono_records too?"}}
{"actor":{"display_login":"petterreinholdtsen"}}