{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/335","repository_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/335/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/335/events","html_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/335","id":202453513,"number":335,"title":"Delete index ‘kind’ property from index options","user":{"login":"diesal11","id":4567380,"avatar_url":"https://avatars.githubusercontent.com/u/4567380?v=3","gravatar_id":"","url":"https://api.github.com/users/diesal11","html_url":"https://github.com/diesal11","followers_url":"https://api.github.com/users/diesal11/followers","following_url":"https://api.github.com/users/diesal11/following{/other_user}","gists_url":"https://api.github.com/users/diesal11/gists{/gist_id}","starred_url":"https://api.github.com/users/diesal11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diesal11/subscriptions","organizations_url":"https://api.github.com/users/diesal11/orgs","repos_url":"https://api.github.com/users/diesal11/repos","events_url":"https://api.github.com/users/diesal11/events{/privacy}","received_events_url":"https://api.github.com/users/diesal11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-23T06:13:11Z","updated_at":"2017-01-23T06:13:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/pulls/335","html_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/335","diff_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/335.diff","patch_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/335.patch"},"body":"### Description\r\nRan into a broken test when setting up locally to write another PR.\r\n\r\n`AutoUpdate` uses the `property.index.mongodb` object as the options when creating an index.\r\nThis leaves the 'kind' property in the options object which causes mongo to throw the following error:\r\n\r\n```\r\nMongoError: The field 'kind' is not valid for an index specification. Specification:\r\n{\r\n  ns: \"lb-ds-mongodb-test.sh\",\r\n  key: { geometry: \"2dsphere\" },\r\n  name: \"geometry_2dsphere\",\r\n  kind: \"2dsphere\",\r\n  background: true,\r\n  unique: false \r\n}\r\n```\r\n\r\n#### Related issues\r\nNone that i can see\r\n\r\n### Checklist\r\n\r\n<!--\r\nPlease mark your choice with an \"x\" (i.e. [x], see\r\nhttps://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments)\r\n-->\r\n\r\n- [] New tests added or existing tests modified to cover all changes\r\n- [x] Code conforms with the [style\r\n  guide](http://loopback.io/doc/en/contrib/style-guide.html)\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/comments/274408429","html_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/335#issuecomment-274408429","issue_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/335","id":274408429,"user":{"login":"slnode","id":3865961,"avatar_url":"https://avatars.githubusercontent.com/u/3865961?v=3","gravatar_id":"","url":"https://api.github.com/users/slnode","html_url":"https://github.com/slnode","followers_url":"https://api.github.com/users/slnode/followers","following_url":"https://api.github.com/users/slnode/following{/other_user}","gists_url":"https://api.github.com/users/slnode/gists{/gist_id}","starred_url":"https://api.github.com/users/slnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnode/subscriptions","organizations_url":"https://api.github.com/users/slnode/orgs","repos_url":"https://api.github.com/users/slnode/repos","events_url":"https://api.github.com/users/slnode/events{/privacy}","received_events_url":"https://api.github.com/users/slnode/received_events","type":"User","site_admin":false},"created_at":"2017-01-23T06:13:18Z","updated_at":"2017-01-23T06:13:18Z","body":"Can one of the admins verify this patch?"}}
{"actor":{"display_login":"slnode"}}