{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1748","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1748/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1748/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1748/events","html_url":"https://github.com/strongloop/loopback/issues/1748","id":112389170,"number":1748,"title":"ID's being converted to scientific notation","user":{"login":"GlennMurphy","id":2229602,"avatar_url":"https://avatars.githubusercontent.com/u/2229602?v=3","gravatar_id":"","url":"https://api.github.com/users/GlennMurphy","html_url":"https://github.com/GlennMurphy","followers_url":"https://api.github.com/users/GlennMurphy/followers","following_url":"https://api.github.com/users/GlennMurphy/following{/other_user}","gists_url":"https://api.github.com/users/GlennMurphy/gists{/gist_id}","starred_url":"https://api.github.com/users/GlennMurphy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlennMurphy/subscriptions","organizations_url":"https://api.github.com/users/GlennMurphy/orgs","repos_url":"https://api.github.com/users/GlennMurphy/repos","events_url":"https://api.github.com/users/GlennMurphy/events{/privacy}","received_events_url":"https://api.github.com/users/GlennMurphy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/waiting","name":"waiting","color":"eeeeee"}],"state":"open","locked":false,"assignee":{"login":"Amir-61","id":10672146,"avatar_url":"https://avatars.githubusercontent.com/u/10672146?v=3","gravatar_id":"","url":"https://api.github.com/users/Amir-61","html_url":"https://github.com/Amir-61","followers_url":"https://api.github.com/users/Amir-61/followers","following_url":"https://api.github.com/users/Amir-61/following{/other_user}","gists_url":"https://api.github.com/users/Amir-61/gists{/gist_id}","starred_url":"https://api.github.com/users/Amir-61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amir-61/subscriptions","organizations_url":"https://api.github.com/users/Amir-61/orgs","repos_url":"https://api.github.com/users/Amir-61/repos","events_url":"https://api.github.com/users/Amir-61/events{/privacy}","received_events_url":"https://api.github.com/users/Amir-61/received_events","type":"User","site_admin":false},"assignees":[{"login":"Amir-61","id":10672146,"avatar_url":"https://avatars.githubusercontent.com/u/10672146?v=3","gravatar_id":"","url":"https://api.github.com/users/Amir-61","html_url":"https://github.com/Amir-61","followers_url":"https://api.github.com/users/Amir-61/followers","following_url":"https://api.github.com/users/Amir-61/following{/other_user}","gists_url":"https://api.github.com/users/Amir-61/gists{/gist_id}","starred_url":"https://api.github.com/users/Amir-61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amir-61/subscriptions","organizations_url":"https://api.github.com/users/Amir-61/orgs","repos_url":"https://api.github.com/users/Amir-61/repos","events_url":"https://api.github.com/users/Amir-61/events{/privacy}","received_events_url":"https://api.github.com/users/Amir-61/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2015-10-20T15:05:02Z","updated_at":"2016-07-09T03:16:58Z","closed_at":null,"body":"As mongo's generated ID's get larger loopback seems to convert mongo's auto generated ID's to scientific notation integers instead of keeping them as strings.\r\n\r\nFor instance. I have a document with the auto generated ID \"562547717371313000366169\"\r\n\r\nIf I request document via the endpoint:\r\n\r\n/documents/562547717371313000366169\r\n\r\nLoopback returns that it can not find the model. I hooked this call with the 'access' hook and logged the where query. \r\n\r\nquery: \r\n   { \r\nwhere: { id: 5.62547717371313e+23 },\r\n     limit: 1,\r\n     offset: 0,\r\n     skip: 0,\r\n}\r\n\r\nI can get around this by querying documents with the following URL:\r\n\r\n/documents?filter={\"where\":{\"id\":\"562547717371313000366169\"}}\r\n\r\nBut now I can't use any of the generated endpoints for the item."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/231511839","html_url":"https://github.com/strongloop/loopback/issues/1748#issuecomment-231511839","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/1748","id":231511839,"user":{"login":"ryankennedyio","id":11158006,"avatar_url":"https://avatars.githubusercontent.com/u/11158006?v=3","gravatar_id":"","url":"https://api.github.com/users/ryankennedyio","html_url":"https://github.com/ryankennedyio","followers_url":"https://api.github.com/users/ryankennedyio/followers","following_url":"https://api.github.com/users/ryankennedyio/following{/other_user}","gists_url":"https://api.github.com/users/ryankennedyio/gists{/gist_id}","starred_url":"https://api.github.com/users/ryankennedyio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryankennedyio/subscriptions","organizations_url":"https://api.github.com/users/ryankennedyio/orgs","repos_url":"https://api.github.com/users/ryankennedyio/repos","events_url":"https://api.github.com/users/ryankennedyio/events{/privacy}","received_events_url":"https://api.github.com/users/ryankennedyio/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T03:16:58Z","updated_at":"2016-07-09T03:16:58Z","body":"@Amir-61 We've just run into this issue too. I have about 30 models in my load testing account that now cannot be accessed nor deleted.\r\n\r\nA sample repo shouldn't be needed for this issue -- fairly obvious as to the cause and solution, no ?"}}
{"actor":{"display_login":"ryankennedyio"}}