Commit 8cf571e5 authored by Simon Knox's avatar Simon Knox

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334506' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65917
parents 0fccf5fa 5cf900ba
...@@ -9,8 +9,7 @@ import { toNumber, omit } from 'lodash'; ...@@ -9,8 +9,7 @@ import { toNumber, omit } from 'lodash';
import createFlash from '~/flash'; import createFlash from '~/flash';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import { scrollToElement, historyPushState } from '~/lib/utils/common_utils'; import { scrollToElement, historyPushState } from '~/lib/utils/common_utils';
// eslint-disable-next-line import/no-deprecated import { setUrlParams, queryToObject, getParameterByName } from '~/lib/utils/url_utility';
import { setUrlParams, urlParamsToObject, getParameterByName } from '~/lib/utils/url_utility';
import { __ } from '~/locale'; import { __ } from '~/locale';
import initManualOrdering from '~/manual_ordering'; import initManualOrdering from '~/manual_ordering';
import FilteredSearchBar from '~/vue_shared/components/filtered_search_bar/filtered_search_bar_root.vue'; import FilteredSearchBar from '~/vue_shared/components/filtered_search_bar/filtered_search_bar_root.vue';
...@@ -264,8 +263,7 @@ export default { ...@@ -264,8 +263,7 @@ export default {
}); });
}, },
getQueryObject() { getQueryObject() {
// eslint-disable-next-line import/no-deprecated return queryToObject(window.location.search, { gatherArrays: true });
return urlParamsToObject(window.location.search);
}, },
onPaginate(newPage) { onPaginate(newPage) {
if (newPage === this.page) return; if (newPage === this.page) return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment