{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11207","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11207/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11207/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11207/events","html_url":"https://github.com/emberjs/ember.js/pull/11207","id":77706522,"number":11207,"title":"[WIP] Configure query params in route","user":{"login":"trek","id":9736,"avatar_url":"https://avatars.githubusercontent.com/u/9736?v=3","gravatar_id":"","url":"https://api.github.com/users/trek","html_url":"https://github.com/trek","followers_url":"https://api.github.com/users/trek/followers","following_url":"https://api.github.com/users/trek/following{/other_user}","gists_url":"https://api.github.com/users/trek/gists{/gist_id}","starred_url":"https://api.github.com/users/trek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trek/subscriptions","organizations_url":"https://api.github.com/users/trek/orgs","repos_url":"https://api.github.com/users/trek/repos","events_url":"https://api.github.com/users/trek/events{/privacy}","received_events_url":"https://api.github.com/users/trek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-18T15:47:29Z","updated_at":"2015-05-22T07:55:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/emberjs/ember.js/pulls/11207","html_url":"https://github.com/emberjs/ember.js/pull/11207","diff_url":"https://github.com/emberjs/ember.js/pull/11207.diff","patch_url":"https://github.com/emberjs/ember.js/pull/11207.patch"},"body":"Just shifting around behavior so we can declare query params configuration on the route, in preparation for ~1.13.1.\r\n\r\nAlso spending some time re-organizing to better express QP intent and remove as much statefulness and side-effect behaviors as possible.\r\n\r\nThe new public API is to place all query params config on a route:\r\n\r\n```javascript\r\nRoute.extend({\r\n  queryParams: {\r\n    page: {\r\n      as: 'pagina',       // optional. default is key ('page', here)\r\n      defaultValue: 1     // optional. default undefined\r\n      scope: 'model',     // optional. 'model' (default) or 'controller'. \r\n      refreshModel: true, // optional, default false\r\n      replace: true       // optional, default false\r\n    }\r\n  }\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/104556498","html_url":"https://github.com/emberjs/ember.js/pull/11207#issuecomment-104556498","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/11207","id":104556498,"user":{"login":"jasonmit","id":3108309,"avatar_url":"https://avatars.githubusercontent.com/u/3108309?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmit","html_url":"https://github.com/jasonmit","followers_url":"https://api.github.com/users/jasonmit/followers","following_url":"https://api.github.com/users/jasonmit/following{/other_user}","gists_url":"https://api.github.com/users/jasonmit/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmit/subscriptions","organizations_url":"https://api.github.com/users/jasonmit/orgs","repos_url":"https://api.github.com/users/jasonmit/repos","events_url":"https://api.github.com/users/jasonmit/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmit/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T07:55:50Z","updated_at":"2015-05-22T07:55:50Z","body":"@blesh I don't believe this is moving away from that, just moving where qps are configured to the route.  Where the actual state is stored I imagine would be a service eventually."}}