{"action":"created","issue":{"url":"https://api.github.com/repos/ivelum/djangoql/issues/33","repository_url":"https://api.github.com/repos/ivelum/djangoql","labels_url":"https://api.github.com/repos/ivelum/djangoql/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/ivelum/djangoql/issues/33/comments","events_url":"https://api.github.com/repos/ivelum/djangoql/issues/33/events","html_url":"https://github.com/ivelum/djangoql/pull/33","id":379786419,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMTQxNTk2","number":33,"title":"Reset suggestions for field of unknown type","user":{"login":"vkrizan","id":7695766,"node_id":"MDQ6VXNlcjc2OTU3NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7695766?v=4","gravatar_id":"","url":"https://api.github.com/users/vkrizan","html_url":"https://github.com/vkrizan","followers_url":"https://api.github.com/users/vkrizan/followers","following_url":"https://api.github.com/users/vkrizan/following{/other_user}","gists_url":"https://api.github.com/users/vkrizan/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrizan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrizan/subscriptions","organizations_url":"https://api.github.com/users/vkrizan/orgs","repos_url":"https://api.github.com/users/vkrizan/repos","events_url":"https://api.github.com/users/vkrizan/events{/privacy}","received_events_url":"https://api.github.com/users/vkrizan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-12T13:53:13Z","updated_at":"2018-11-14T11:33:44Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ivelum/djangoql/pulls/33","html_url":"https://github.com/ivelum/djangoql/pull/33","diff_url":"https://github.com/ivelum/djangoql/pull/33.diff","patch_url":"https://github.com/ivelum/djangoql/pull/33.patch"},"body":"If a field of unknown type is typed, the operand suggestions are shown second time. This should reset the suggestions after operand.\r\n\r\nThis is to avoid:\r\n```\r\nunknown_type_field = =\r\n```"},"comment":{"url":"https://api.github.com/repos/ivelum/djangoql/issues/comments/438632046","html_url":"https://github.com/ivelum/djangoql/pull/33#issuecomment-438632046","issue_url":"https://api.github.com/repos/ivelum/djangoql/issues/33","id":438632046,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODYzMjA0Ng==","user":{"login":"vkrizan","id":7695766,"node_id":"MDQ6VXNlcjc2OTU3NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/7695766?v=4","gravatar_id":"","url":"https://api.github.com/users/vkrizan","html_url":"https://github.com/vkrizan","followers_url":"https://api.github.com/users/vkrizan/followers","following_url":"https://api.github.com/users/vkrizan/following{/other_user}","gists_url":"https://api.github.com/users/vkrizan/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrizan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrizan/subscriptions","organizations_url":"https://api.github.com/users/vkrizan/orgs","repos_url":"https://api.github.com/users/vkrizan/repos","events_url":"https://api.github.com/users/vkrizan/events{/privacy}","received_events_url":"https://api.github.com/users/vkrizan/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T11:33:44Z","updated_at":"2018-11-14T11:33:44Z","author_association":"CONTRIBUTOR","body":"We define a virtual fields on our django models, that do not have a type nor are saved to database. Those fields are listed in the completion, and when selected the suggestions in value context remain the same, suggestion for (default) operands. This looked to me as a bug, hence this PR.\r\n\r\nI was  thinking on excluding those fields, but the `exclude` on `DjangoQLSchema` works on model level, and not on field level. I guess I will propose it as an enhancement...\r\n\r\nIn final, those virtual/unknown fields cannot be used in produced queryset. Feel free to close this PR.\r\n\r\nThank you."}}
{"actor":{"display_login":"vkrizan"}}