{"action":"created","comment":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/comments/175144296","pull_request_review_id":104632294,"id":175144296,"diff_hunk":"@@ -181,5 +183,79 @@ def test_category_delete_mutation(client, default_category):\n     assert 'errors' not in content\n     data = content['data']['categoryDelete']\n     assert data['category']['name'] == default_category.name\n-    with pytest.raises(Category.DoesNotExist):\n+    with pytest.raises(default_category._meta.model.DoesNotExist):\n         default_category.refresh_from_db()\n+\n+\n+def test_page_create_mutation(client):\n+    query = \"\"\"\n+        mutation CreatePage(\n+            $slug: String!,\n+            $title: String!,\n+            $content: String!,\n+            $isVisible: Boolean!) {\n+                pageCreate(slug: $slug,\n+                title: $title,\n+                content: $content,\n+                isVisible: $isVisible) {\n+                    page {\n+                        id\n+                        title\n+                        content\n+                        slug\n+                        isVisible\n+                      }\n+                      errors {\n+                        message\n+                        field\n+                      }\n+                    }\n+                  }\n+    \"\"\"\n+    page_slug = 'test-slug'\n+    page_content = 'test content'\n+    page_title = 'test title'\n+    page_isVisible = True\n+\n+    # test creating root page\n+    variables = json.dumps({\n+        'title': page_title, 'content': page_content,\n+        'isVisible': page_isVisible, 'slug': page_slug})\n+    # import pdb; pdb.set_trace()","path":"tests/dashboard/test_graphql.py","position":125,"original_position":125,"commit_id":"a1cb91a3622da34d717923b70977b86c5d704330","original_commit_id":"a1cb91a3622da34d717923b70977b86c5d704330","user":{"login":"elwoodxblues","id":5421321,"avatar_url":"https://avatars1.githubusercontent.com/u/5421321?v=4","gravatar_id":"","url":"https://api.github.com/users/elwoodxblues","html_url":"https://github.com/elwoodxblues","followers_url":"https://api.github.com/users/elwoodxblues/followers","following_url":"https://api.github.com/users/elwoodxblues/following{/other_user}","gists_url":"https://api.github.com/users/elwoodxblues/gists{/gist_id}","starred_url":"https://api.github.com/users/elwoodxblues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elwoodxblues/subscriptions","organizations_url":"https://api.github.com/users/elwoodxblues/orgs","repos_url":"https://api.github.com/users/elwoodxblues/repos","events_url":"https://api.github.com/users/elwoodxblues/events{/privacy}","received_events_url":"https://api.github.com/users/elwoodxblues/received_events","type":"User","site_admin":false},"body":"Remove debug comments.","created_at":"2018-03-16T16:24:54Z","updated_at":"2018-03-16T16:24:54Z","html_url":"https://github.com/mirumee/saleor/pull/1905#discussion_r175144296","pull_request_url":"https://api.github.com/repos/mirumee/saleor/pulls/1905","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments/175144296"},"html":{"href":"https://github.com/mirumee/saleor/pull/1905#discussion_r175144296"},"pull_request":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/1905"}}},"pull_request":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/1905","id":174689478,"html_url":"https://github.com/mirumee/saleor/pull/1905","diff_url":"https://github.com/mirumee/saleor/pull/1905.diff","patch_url":"https://github.com/mirumee/saleor/pull/1905.patch","issue_url":"https://api.github.com/repos/mirumee/saleor/issues/1905","number":1905,"state":"open","locked":false,"title":"[WiP]Add graphql API for page app","user":{"login":"akjanik","id":8645948,"avatar_url":"https://avatars1.githubusercontent.com/u/8645948?v=4","gravatar_id":"","url":"https://api.github.com/users/akjanik","html_url":"https://github.com/akjanik","followers_url":"https://api.github.com/users/akjanik/followers","following_url":"https://api.github.com/users/akjanik/following{/other_user}","gists_url":"https://api.github.com/users/akjanik/gists{/gist_id}","starred_url":"https://api.github.com/users/akjanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akjanik/subscriptions","organizations_url":"https://api.github.com/users/akjanik/orgs","repos_url":"https://api.github.com/users/akjanik/repos","events_url":"https://api.github.com/users/akjanik/events{/privacy}","received_events_url":"https://api.github.com/users/akjanik/received_events","type":"User","site_admin":false},"body":"I want to merge this change because...\r\n\r\nIt provides API for application `page`; in addition, it adds new abstract class `ModelDeleteMutation`, which should simplify setting up APIs.\r\nI wonder if some parts of `__init_subclass_with_meta__` could be abstracted in a good way.\r\n\r\nTODO:\r\n- tests\r\n- storefront API\r\n- clean up\r\n\r\n### Pull Request Checklist\r\n\r\n(Please keep this section. It will make maintainer's life easier.)\r\n\r\n1. [ ] Privileged views and APIs are guarded by proper permission checks.\r\n1. [ ] All visible strings are translated with proper context.\r\n1. [ ] All data-formatting is locale-aware (dates, numbers, and so on).\r\n1. [ ] Database queries are optimized and the number of queries is constant.\r\n1. [ ] The changes are tested.\r\n1. [ ] The code is documented (docstrings, project documentation).\r\n1. [ ] Python code quality checks pass: `pycodestyle`, `pydocstyle`, `pylint`.\r\n1. [ ] JavaScript code quality checks pass: `eslint`.\r\n","created_at":"2018-03-13T15:05:41Z","updated_at":"2018-03-16T16:24:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"410db7b3f49447e33ccea3d5b0b485d8049cba39","assignee":{"login":"akjanik","id":8645948,"avatar_url":"https://avatars1.githubusercontent.com/u/8645948?v=4","gravatar_id":"","url":"https://api.github.com/users/akjanik","html_url":"https://github.com/akjanik","followers_url":"https://api.github.com/users/akjanik/followers","following_url":"https://api.github.com/users/akjanik/following{/other_user}","gists_url":"https://api.github.com/users/akjanik/gists{/gist_id}","starred_url":"https://api.github.com/users/akjanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akjanik/subscriptions","organizations_url":"https://api.github.com/users/akjanik/orgs","repos_url":"https://api.github.com/users/akjanik/repos","events_url":"https://api.github.com/users/akjanik/events{/privacy}","received_events_url":"https://api.github.com/users/akjanik/received_events","type":"User","site_admin":false},"assignees":[{"login":"akjanik","id":8645948,"avatar_url":"https://avatars1.githubusercontent.com/u/8645948?v=4","gravatar_id":"","url":"https://api.github.com/users/akjanik","html_url":"https://github.com/akjanik","followers_url":"https://api.github.com/users/akjanik/followers","following_url":"https://api.github.com/users/akjanik/following{/other_user}","gists_url":"https://api.github.com/users/akjanik/gists{/gist_id}","starred_url":"https://api.github.com/users/akjanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akjanik/subscriptions","organizations_url":"https://api.github.com/users/akjanik/orgs","repos_url":"https://api.github.com/users/akjanik/repos","events_url":"https://api.github.com/users/akjanik/events{/privacy}","received_events_url":"https://api.github.com/users/akjanik/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"patrys","id":81205,"avatar_url":"https://avatars1.githubusercontent.com/u/81205?v=4","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false},{"login":"rafalp","id":750553,"avatar_url":"https://avatars1.githubusercontent.com/u/750553?v=4","gravatar_id":"","url":"https://api.github.com/users/rafalp","html_url":"https://github.com/rafalp","followers_url":"https://api.github.com/users/rafalp/followers","following_url":"https://api.github.com/users/rafalp/following{/other_user}","gists_url":"https://api.github.com/users/rafalp/gists{/gist_id}","starred_url":"https://api.github.com/users/rafalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafalp/subscriptions","organizations_url":"https://api.github.com/users/rafalp/orgs","repos_url":"https://api.github.com/users/rafalp/repos","events_url":"https://api.github.com/users/rafalp/events{/privacy}","received_events_url":"https://api.github.com/users/rafalp/received_events","type":"User","site_admin":false},{"login":"mad-anne","id":20802901,"avatar_url":"https://avatars1.githubusercontent.com/u/20802901?v=4","gravatar_id":"","url":"https://api.github.com/users/mad-anne","html_url":"https://github.com/mad-anne","followers_url":"https://api.github.com/users/mad-anne/followers","following_url":"https://api.github.com/users/mad-anne/following{/other_user}","gists_url":"https://api.github.com/users/mad-anne/gists{/gist_id}","starred_url":"https://api.github.com/users/mad-anne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mad-anne/subscriptions","organizations_url":"https://api.github.com/users/mad-anne/orgs","repos_url":"https://api.github.com/users/mad-anne/repos","events_url":"https://api.github.com/users/mad-anne/events{/privacy}","received_events_url":"https://api.github.com/users/mad-anne/received_events","type":"User","site_admin":false},{"login":"Pacu2","id":21290461,"avatar_url":"https://avatars3.githubusercontent.com/u/21290461?v=4","gravatar_id":"","url":"https://api.github.com/users/Pacu2","html_url":"https://github.com/Pacu2","followers_url":"https://api.github.com/users/Pacu2/followers","following_url":"https://api.github.com/users/Pacu2/following{/other_user}","gists_url":"https://api.github.com/users/Pacu2/gists{/gist_id}","starred_url":"https://api.github.com/users/Pacu2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pacu2/subscriptions","organizations_url":"https://api.github.com/users/Pacu2/orgs","repos_url":"https://api.github.com/users/Pacu2/repos","events_url":"https://api.github.com/users/Pacu2/events{/privacy}","received_events_url":"https://api.github.com/users/Pacu2/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":822490487,"url":"https://api.github.com/repos/mirumee/saleor/labels/api","name":"api","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mirumee/saleor/pulls/1905/commits","review_comments_url":"https://api.github.com/repos/mirumee/saleor/pulls/1905/comments","review_comment_url":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirumee/saleor/issues/1905/comments","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/a1cb91a3622da34d717923b70977b86c5d704330","head":{"label":"mirumee:page_api","ref":"page_api","sha":"a1cb91a3622da34d717923b70977b86c5d704330","user":{"login":"mirumee","id":170574,"avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"name":"saleor","full_name":"mirumee/saleor","owner":{"login":"mirumee","id":170574,"avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python and Django","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mirumee/saleor/deployments","created_at":"2013-02-12T16:46:39Z","updated_at":"2018-03-16T12:12:28Z","pushed_at":"2018-03-16T15:44:41Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":38449,"stargazers_count":1707,"watchers_count":1707,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":825,"mirror_url":null,"archived":false,"open_issues_count":185,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":825,"open_issues":185,"watchers":1707,"default_branch":"master"}},"base":{"label":"mirumee:master","ref":"master","sha":"9627bf57f4bf9efed6f9a18a01253447d6ba95ca","user":{"login":"mirumee","id":170574,"avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"name":"saleor","full_name":"mirumee/saleor","owner":{"login":"mirumee","id":170574,"avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python and Django","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mirumee/saleor/deployments","created_at":"2013-02-12T16:46:39Z","updated_at":"2018-03-16T12:12:28Z","pushed_at":"2018-03-16T15:44:41Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":38449,"stargazers_count":1707,"watchers_count":1707,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":825,"mirror_url":null,"archived":false,"open_issues_count":185,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":825,"open_issues":185,"watchers":1707,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/1905"},"html":{"href":"https://github.com/mirumee/saleor/pull/1905"},"issue":{"href":"https://api.github.com/repos/mirumee/saleor/issues/1905"},"comments":{"href":"https://api.github.com/repos/mirumee/saleor/issues/1905/comments"},"review_comments":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/1905/comments"},"review_comment":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/1905/commits"},"statuses":{"href":"https://api.github.com/repos/mirumee/saleor/statuses/a1cb91a3622da34d717923b70977b86c5d704330"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"elwoodxblues"}}