{"action":"created","issue":{"url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/33","labels_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/33/comments","events_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/33/events","html_url":"https://github.com/mphasize/sails-generate-ember-blueprints/issues/33","id":68982506,"number":33,"title":"Only filles relationship-array with 30 elements","user":{"login":"Globegitter","id":2580254,"avatar_url":"https://avatars.githubusercontent.com/u/2580254?v=3","gravatar_id":"","url":"https://api.github.com/users/Globegitter","html_url":"https://github.com/Globegitter","followers_url":"https://api.github.com/users/Globegitter/followers","following_url":"https://api.github.com/users/Globegitter/following{/other_user}","gists_url":"https://api.github.com/users/Globegitter/gists{/gist_id}","starred_url":"https://api.github.com/users/Globegitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Globegitter/subscriptions","organizations_url":"https://api.github.com/users/Globegitter/orgs","repos_url":"https://api.github.com/users/Globegitter/repos","events_url":"https://api.github.com/users/Globegitter/events{/privacy}","received_events_url":"https://api.github.com/users/Globegitter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-04-16T18:27:52Z","updated_at":"2015-04-23T16:56:21Z","closed_at":null,"body":"This line https://github.com/mphasize/sails-generate-ember-blueprints/blob/master/templates/basic/api/blueprints/_util/actionUtil.js#L128 creates a bug in my ember app.\r\n\r\nI am having a nested relationship (and organisation has many research projects and research projects can belong to many organisations, done via 1:n, n:1 relationship, since I need metadata on the join table) and when I load the research projects I am automatically getting the join table and then usually load the organisations 'manually' in ember:\r\n\r\n```js\r\n// model of a researchProject\r\nmodel.get('organisations').forEach(function (organisation) {));\r\n      organisation.get('organisation');\r\n    });\r\n```\r\n\r\nThe problem now when I load these organisations they have also preload the keys to the join table, which ember then automatically updates. The issue here being that the keys are limited to 30 per default, so when the project that loads this relationship is not within the 30 keys ember just breaks the relationship.\r\n\r\nIf I change it to a higher number (e.g. 50) it does work in my case again but wonder if there is a better fix for that? Maybe even on the ember side? \r\n\r\nAlso if the example is not completely clear I can give more detail."},"comment":{"url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/comments/95652618","html_url":"https://github.com/mphasize/sails-generate-ember-blueprints/issues/33#issuecomment-95652618","issue_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/33","id":95652618,"user":{"login":"mphasize","id":331830,"avatar_url":"https://avatars.githubusercontent.com/u/331830?v=3","gravatar_id":"","url":"https://api.github.com/users/mphasize","html_url":"https://github.com/mphasize","followers_url":"https://api.github.com/users/mphasize/followers","following_url":"https://api.github.com/users/mphasize/following{/other_user}","gists_url":"https://api.github.com/users/mphasize/gists{/gist_id}","starred_url":"https://api.github.com/users/mphasize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mphasize/subscriptions","organizations_url":"https://api.github.com/users/mphasize/orgs","repos_url":"https://api.github.com/users/mphasize/repos","events_url":"https://api.github.com/users/mphasize/events{/privacy}","received_events_url":"https://api.github.com/users/mphasize/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T16:56:21Z","updated_at":"2015-04-23T16:56:21Z","body":"@mgenev I believe that ED handles metadata for a \"primary\" request, but are there any examples for metadata on sideloaded relations?"}}