{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/209702482","pull_request_review_id":145767616,"id":209702482,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTcwMjQ4Mg==","diff_hunk":"@@ -0,0 +1,45 @@\n+# coding: utf-8\n+#\n+# Copyright 2018 The Oppia Authors. All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#      http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS-IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+\"\"\"Commands that can be used to operate on states\"\"\"","path":"core/domain/state_services.py","position":null,"original_position":17,"commit_id":"a16d247068666854fd7b6440608ea5bb8fd0bc40","original_commit_id":"ce26234860988ab1da14f344ef54ffa725f12292","user":{"login":"kevintab95","id":11008603,"node_id":"MDQ6VXNlcjExMDA4NjAz","avatar_url":"https://avatars0.githubusercontent.com/u/11008603?v=4","gravatar_id":"","url":"https://api.github.com/users/kevintab95","html_url":"https://github.com/kevintab95","followers_url":"https://api.github.com/users/kevintab95/followers","following_url":"https://api.github.com/users/kevintab95/following{/other_user}","gists_url":"https://api.github.com/users/kevintab95/gists{/gist_id}","starred_url":"https://api.github.com/users/kevintab95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevintab95/subscriptions","organizations_url":"https://api.github.com/users/kevintab95/orgs","repos_url":"https://api.github.com/users/kevintab95/repos","events_url":"https://api.github.com/users/kevintab95/events{/privacy}","received_events_url":"https://api.github.com/users/kevintab95/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-08-13T17:59:10Z","updated_at":"2018-08-13T17:59:10Z","html_url":"https://github.com/oppia/oppia/pull/5505#discussion_r209702482","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/5505","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/209702482"},"html":{"href":"https://github.com/oppia/oppia/pull/5505#discussion_r209702482"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5505"}},"in_reply_to_id":209545969},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/5505","id":207823618,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3ODIzNjE4","html_url":"https://github.com/oppia/oppia/pull/5505","diff_url":"https://github.com/oppia/oppia/pull/5505.diff","patch_url":"https://github.com/oppia/oppia/pull/5505.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/5505","number":5505,"state":"open","locked":false,"title":"Fixes #5402: State domain refactor","user":{"login":"kevintab95","id":11008603,"node_id":"MDQ6VXNlcjExMDA4NjAz","avatar_url":"https://avatars0.githubusercontent.com/u/11008603?v=4","gravatar_id":"","url":"https://api.github.com/users/kevintab95","html_url":"https://github.com/kevintab95","followers_url":"https://api.github.com/users/kevintab95/followers","following_url":"https://api.github.com/users/kevintab95/following{/other_user}","gists_url":"https://api.github.com/users/kevintab95/gists{/gist_id}","starred_url":"https://api.github.com/users/kevintab95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevintab95/subscriptions","organizations_url":"https://api.github.com/users/kevintab95/orgs","repos_url":"https://api.github.com/users/kevintab95/repos","events_url":"https://api.github.com/users/kevintab95/events{/privacy}","received_events_url":"https://api.github.com/users/kevintab95/received_events","type":"User","site_admin":false},"body":"\r\n## Explanation\r\nFixes #5402: Moved state class from exp_domain to state_domain. Also, moved related functions to state_services.\r\n\r\n## Checklist\r\n- [x] The PR title starts with \"Fix #bugnum: \", followed by a short, clear summary of the changes.\r\n- [x] The PR explanation includes the words \"Fixes #bugnum: ...\".\r\n- [x] The linter/Karma presubmit checks have passed.\r\n  - These should run automatically, but if not, you can manually trigger them locally using `python scripts/pre_commit_linter.py` and `bash scripts/run_frontend_tests.sh`.\r\n- [x] The PR is made from a branch that's **not** called \"develop\".\r\n- [x] The PR follows the [style guide](https://github.com/oppia/oppia/wiki/Coding-style-guide).\r\n- [x] The PR is assigned to an appropriate reviewer.\r\n  - If you're a new contributor, please ask on [Gitter](https://gitter.im/oppia/oppia-chat) for someone to assign a reviewer.\r\n  - If you're not sure who the appropriate reviewer is, please assign to the issue's \"owner\" -- see the \"talk-to\" label on the issue.\r\n","created_at":"2018-08-12T14:22:32Z","updated_at":"2018-08-13T17:59:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca68ec440fa8b6fcc288524780cfa58c2d8cd3c3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"BenHenning","id":12983742,"node_id":"MDQ6VXNlcjEyOTgzNzQy","avatar_url":"https://avatars3.githubusercontent.com/u/12983742?v=4","gravatar_id":"","url":"https://api.github.com/users/BenHenning","html_url":"https://github.com/BenHenning","followers_url":"https://api.github.com/users/BenHenning/followers","following_url":"https://api.github.com/users/BenHenning/following{/other_user}","gists_url":"https://api.github.com/users/BenHenning/gists{/gist_id}","starred_url":"https://api.github.com/users/BenHenning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenHenning/subscriptions","organizations_url":"https://api.github.com/users/BenHenning/orgs","repos_url":"https://api.github.com/users/BenHenning/repos","events_url":"https://api.github.com/users/BenHenning/events{/privacy}","received_events_url":"https://api.github.com/users/BenHenning/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/5505/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/5505/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/5505/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/a16d247068666854fd7b6440608ea5bb8fd0bc40","head":{"label":"kevintab95:state_domain_refactor","ref":"state_domain_refactor","sha":"a16d247068666854fd7b6440608ea5bb8fd0bc40","user":{"login":"kevintab95","id":11008603,"node_id":"MDQ6VXNlcjExMDA4NjAz","avatar_url":"https://avatars0.githubusercontent.com/u/11008603?v=4","gravatar_id":"","url":"https://api.github.com/users/kevintab95","html_url":"https://github.com/kevintab95","followers_url":"https://api.github.com/users/kevintab95/followers","following_url":"https://api.github.com/users/kevintab95/following{/other_user}","gists_url":"https://api.github.com/users/kevintab95/gists{/gist_id}","starred_url":"https://api.github.com/users/kevintab95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevintab95/subscriptions","organizations_url":"https://api.github.com/users/kevintab95/orgs","repos_url":"https://api.github.com/users/kevintab95/repos","events_url":"https://api.github.com/users/kevintab95/events{/privacy}","received_events_url":"https://api.github.com/users/kevintab95/received_events","type":"User","site_admin":false},"repo":{"id":59802809,"node_id":"MDEwOlJlcG9zaXRvcnk1OTgwMjgwOQ==","name":"oppia","full_name":"kevintab95/oppia","owner":{"login":"kevintab95","id":11008603,"node_id":"MDQ6VXNlcjExMDA4NjAz","avatar_url":"https://avatars0.githubusercontent.com/u/11008603?v=4","gravatar_id":"","url":"https://api.github.com/users/kevintab95","html_url":"https://github.com/kevintab95","followers_url":"https://api.github.com/users/kevintab95/followers","following_url":"https://api.github.com/users/kevintab95/following{/other_user}","gists_url":"https://api.github.com/users/kevintab95/gists{/gist_id}","starred_url":"https://api.github.com/users/kevintab95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevintab95/subscriptions","organizations_url":"https://api.github.com/users/kevintab95/orgs","repos_url":"https://api.github.com/users/kevintab95/repos","events_url":"https://api.github.com/users/kevintab95/events{/privacy}","received_events_url":"https://api.github.com/users/kevintab95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevintab95/oppia","description":"Tool for collaboratively building intelligent tutors.","fork":true,"url":"https://api.github.com/repos/kevintab95/oppia","forks_url":"https://api.github.com/repos/kevintab95/oppia/forks","keys_url":"https://api.github.com/repos/kevintab95/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevintab95/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevintab95/oppia/teams","hooks_url":"https://api.github.com/repos/kevintab95/oppia/hooks","issue_events_url":"https://api.github.com/repos/kevintab95/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/kevintab95/oppia/events","assignees_url":"https://api.github.com/repos/kevintab95/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/kevintab95/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/kevintab95/oppia/tags","blobs_url":"https://api.github.com/repos/kevintab95/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevintab95/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevintab95/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevintab95/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevintab95/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/kevintab95/oppia/languages","stargazers_url":"https://api.github.com/repos/kevintab95/oppia/stargazers","contributors_url":"https://api.github.com/repos/kevintab95/oppia/contributors","subscribers_url":"https://api.github.com/repos/kevintab95/oppia/subscribers","subscription_url":"https://api.github.com/repos/kevintab95/oppia/subscription","commits_url":"https://api.github.com/repos/kevintab95/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevintab95/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevintab95/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevintab95/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevintab95/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/kevintab95/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevintab95/oppia/merges","archive_url":"https://api.github.com/repos/kevintab95/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevintab95/oppia/downloads","issues_url":"https://api.github.com/repos/kevintab95/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/kevintab95/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/kevintab95/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/kevintab95/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevintab95/oppia/labels{/name}","releases_url":"https://api.github.com/repos/kevintab95/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/kevintab95/oppia/deployments","created_at":"2016-05-27T03:59:04Z","updated_at":"2016-05-27T03:59:09Z","pushed_at":"2018-08-13T17:56:21Z","git_url":"git://github.com/kevintab95/oppia.git","ssh_url":"git@github.com:kevintab95/oppia.git","clone_url":"https://github.com/kevintab95/oppia.git","svn_url":"https://github.com/kevintab95/oppia","homepage":"https://www.oppia.org","size":106042,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"a80bd6dd3975eb76082a30a7f3f58061766d081e","user":{"login":"oppia","id":11620230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjIwMjMw","avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"node_id":"MDEwOlJlcG9zaXRvcnk0MDY4NzU2Mw==","name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjIwMjMw","avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2018-08-13T13:46:50Z","pushed_at":"2018-08-13T17:56:23Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":106529,"stargazers_count":713,"watchers_count":713,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":677,"mirror_url":null,"archived":false,"open_issues_count":351,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":677,"open_issues":351,"watchers":713,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5505"},"html":{"href":"https://github.com/oppia/oppia/pull/5505"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/5505"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/5505/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5505/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5505/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/a16d247068666854fd7b6440608ea5bb8fd0bc40"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kevintab95"}}