{"action":"created","issue":{"url":"https://api.github.com/repos/trentmwillis/ember-exam/issues/46","repository_url":"https://api.github.com/repos/trentmwillis/ember-exam","labels_url":"https://api.github.com/repos/trentmwillis/ember-exam/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/trentmwillis/ember-exam/issues/46/comments","events_url":"https://api.github.com/repos/trentmwillis/ember-exam/issues/46/events","html_url":"https://github.com/trentmwillis/ember-exam/issues/46","id":166807532,"number":46,"title":"access process.env.PARTITION in application config","user":{"login":"Sinled","id":1402135,"avatar_url":"https://avatars.githubusercontent.com/u/1402135?v=3","gravatar_id":"","url":"https://api.github.com/users/Sinled","html_url":"https://github.com/Sinled","followers_url":"https://api.github.com/users/Sinled/followers","following_url":"https://api.github.com/users/Sinled/following{/other_user}","gists_url":"https://api.github.com/users/Sinled/gists{/gist_id}","starred_url":"https://api.github.com/users/Sinled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sinled/subscriptions","organizations_url":"https://api.github.com/users/Sinled/orgs","repos_url":"https://api.github.com/users/Sinled/repos","events_url":"https://api.github.com/users/Sinled/events{/privacy}","received_events_url":"https://api.github.com/users/Sinled/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-21T12:31:41Z","updated_at":"2016-07-23T03:07:22Z","closed_at":null,"body":"Hi, thanks for great tool.\r\n\r\nI have a small question.\r\nIs there any ways to access `PARTITION` number in ember `config/environment.js` file?\r\nI need it badly in my acceptance tests."},"comment":{"url":"https://api.github.com/repos/trentmwillis/ember-exam/issues/comments/234695625","html_url":"https://github.com/trentmwillis/ember-exam/issues/46#issuecomment-234695625","issue_url":"https://api.github.com/repos/trentmwillis/ember-exam/issues/46","id":234695625,"user":{"login":"trentmwillis","id":3526753,"avatar_url":"https://avatars.githubusercontent.com/u/3526753?v=3","gravatar_id":"","url":"https://api.github.com/users/trentmwillis","html_url":"https://github.com/trentmwillis","followers_url":"https://api.github.com/users/trentmwillis/followers","following_url":"https://api.github.com/users/trentmwillis/following{/other_user}","gists_url":"https://api.github.com/users/trentmwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/trentmwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentmwillis/subscriptions","organizations_url":"https://api.github.com/users/trentmwillis/orgs","repos_url":"https://api.github.com/users/trentmwillis/repos","events_url":"https://api.github.com/users/trentmwillis/events{/privacy}","received_events_url":"https://api.github.com/users/trentmwillis/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T03:07:22Z","updated_at":"2016-07-23T03:07:22Z","body":"Seems reasonable. As long as you're not directly supplying the tests with the partition number, then I think it makes sense. I would likely do something like:\r\n\r\n```js\r\n// config/environment.js\r\n\r\nvar USERS = [\r\n  // user login information\r\n];\r\n\r\nmodule.exports = function() {\r\n  var partition = process.env.PARTITION;\r\n  return {\r\n    testUser: USERS[partition]\r\n  };\r\n};\r\n```"}}
{"actor":{"display_login":"trentmwillis"}}