From ed9e7a0e9a7e2c254fd51d24faf44439e01e0dbc Mon Sep 17 00:00:00 2001 From: Jared Galanis Date: Thu, 20 Jan 2022 08:35:07 -0800 Subject: [PATCH] remove sort query params - this override is incompatible with use of certain mocking libraries and blows away query params in those cases - removing here since the underlying PR has been merged --- addon/mixins/url-templates.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/addon/mixins/url-templates.js b/addon/mixins/url-templates.js index ad819c1..6974636 100644 --- a/addon/mixins/url-templates.js +++ b/addon/mixins/url-templates.js @@ -58,15 +58,6 @@ export default Mixin.create({ return EmberObject.create(this.get('urlSegments')); }, - // HACK: Prevent query/queryRecord from appending query params to urls, we - // can do that in the template. - // TODO: ember-data plans to implement better hooks for customizing the - // request. Hopefully in the future, this hack can be removed and another - // hook used instead. - sortQueryParams(/* params */) { - return {}; - }, - _urlFromLink(snapshot, urlTemplate) { if (LINK_PREFIX_RE.test(urlTemplate)) { return this.buildURL(null, snapshot.id, snapshot, urlTemplate.replace(LINK_PREFIX_RE, ''), {});