{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/emberfire/issues/430","repository_url":"https://api.github.com/repos/firebase/emberfire","labels_url":"https://api.github.com/repos/firebase/emberfire/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/firebase/emberfire/issues/430/comments","events_url":"https://api.github.com/repos/firebase/emberfire/issues/430/events","html_url":"https://github.com/firebase/emberfire/issues/430","id":179734628,"number":430,"title":"Feature Request : Being able to define a base path on adapters","user":{"login":"olivierchatry","id":1267483,"avatar_url":"https://avatars.githubusercontent.com/u/1267483?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierchatry","html_url":"https://github.com/olivierchatry","followers_url":"https://api.github.com/users/olivierchatry/followers","following_url":"https://api.github.com/users/olivierchatry/following{/other_user}","gists_url":"https://api.github.com/users/olivierchatry/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierchatry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierchatry/subscriptions","organizations_url":"https://api.github.com/users/olivierchatry/orgs","repos_url":"https://api.github.com/users/olivierchatry/repos","events_url":"https://api.github.com/users/olivierchatry/events{/privacy}","received_events_url":"https://api.github.com/users/olivierchatry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-28T10:22:41Z","updated_at":"2016-09-28T10:22:41Z","closed_at":null,"body":"Hello,\r\n\r\nI think it would be a good idea to be able to define a **base path** on adapters. \r\nFor example, let say you have a model that is a project, each project contains multiple different data and models. \r\n\r\nWith the current emberfire, every model would be stored flat at the roots of Firebase. It would be cool if it would let me store the data into a path, say for example : \r\n\r\n```\r\n+-projects\r\n+--[generated_uid_project]\r\n+----somedata\r\n\r\n+-projectDatas\r\n+--[generated_uid_project]\r\n+----users\r\n+------[generated_uid]\r\n+----datas\r\n+------[generated_uid]\r\n+------[generated_uid]\r\n```\r\n\r\nTo achieve that, it means that each adapters should be able to have a base path. As far as the code is concerned, it seems that we only need to change `pathForType` @ https://github.com/firebase/emberfire/blob/master/addon/adapters/firebase.js#L633\r\n\r\nWhat do you think ?"}}
{"actor":{"display_login":"olivierchatry"}}