payload: {"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1099","repository_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1099/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1099/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1099/events","html_url":"https://github.com/elastic/elasticsearch-dsl-py/pull/1099","id":394901467,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNTA4ODEx","number":1099,"title":"[Fix #1091] Index.document() does not set index on Document class","user":{"login":"safwanrahman","id":7114151,"node_id":"MDQ6VXNlcjcxMTQxNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7114151?v=4","gravatar_id":"","url":"https://api.github.com/users/safwanrahman","html_url":"https://github.com/safwanrahman","followers_url":"https://api.github.com/users/safwanrahman/followers","following_url":"https://api.github.com/users/safwanrahman/following{/other_user}","gists_url":"https://api.github.com/users/safwanrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/safwanrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safwanrahman/subscriptions","organizations_url":"https://api.github.com/users/safwanrahman/orgs","repos_url":"https://api.github.com/users/safwanrahman/repos","events_url":"https://api.github.com/users/safwanrahman/events{/privacy}","received_events_url":"https://api.github.com/users/safwanrahman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-30T21:07:01Z","updated_at":"2019-03-05T19:37:54Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/pulls/1099","html_url":"https://github.com/elastic/elasticsearch-dsl-py/pull/1099","diff_url":"https://github.com/elastic/elasticsearch-dsl-py/pull/1099.diff","patch_url":"https://github.com/elastic/elasticsearch-dsl-py/pull/1099.patch"},"body":"This will fix  #1091\r\n\r\nIn the previous versions, the [`Index.document()`](https://elasticsearch-dsl.readthedocs.io/en/latest/api.html#elasticsearch_dsl.Index.document) method added the `Index` to the `Document` class. But it was removed in 69f5ca2dc7657c26a19f11d75b7c2080afcfcdd6 in order to implement the inheritance document.\r\n\r\nThis patch will add `Index` to the `Document` class moreover also set `None` to `Document._index` property if `Index` Innesclass is not in set.\r\n\r\n@HonzaKral r?"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/comments/469828356","html_url":"https://github.com/elastic/elasticsearch-dsl-py/pull/1099#issuecomment-469828356","issue_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1099","id":469828356,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2OTgyODM1Ng==","user":{"login":"safwanrahman","id":7114151,"node_id":"MDQ6VXNlcjcxMTQxNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7114151?v=4","gravatar_id":"","url":"https://api.github.com/users/safwanrahman","html_url":"https://github.com/safwanrahman","followers_url":"https://api.github.com/users/safwanrahman/followers","following_url":"https://api.github.com/users/safwanrahman/following{/other_user}","gists_url":"https://api.github.com/users/safwanrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/safwanrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safwanrahman/subscriptions","organizations_url":"https://api.github.com/users/safwanrahman/orgs","repos_url":"https://api.github.com/users/safwanrahman/repos","events_url":"https://api.github.com/users/safwanrahman/events{/privacy}","received_events_url":"https://api.github.com/users/safwanrahman/received_events","type":"User","site_admin":false},"created_at":"2019-03-05T19:37:54Z","updated_at":"2019-03-05T19:37:54Z","author_association":"NONE","body":"@HonzaKral possible to have a review again?"}}
other: {"actor":{"display_login":"safwanrahman"}}