Commit 41862d7b authored by Miguel Rincon's avatar Miguel Rincon

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334518' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65897
parents a1f1ca77 1dea45c7
......@@ -4,8 +4,7 @@ import VueApollo from 'vue-apollo';
import { IssuableStates } from '~/issuable_list/constants';
import createDefaultClient from '~/lib/graphql';
import { parseBoolean, convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
// eslint-disable-next-line import/no-deprecated
import { urlParamsToObject } from '~/lib/utils/url_utility';
import { queryToObject } from '~/lib/utils/url_utility';
import EpicsListApp from './components/epics_list_root.vue';
......@@ -42,8 +41,7 @@ export default function initEpicsList({ mountPointSelector }) {
isSignedIn,
} = mountPointEl.dataset;
// eslint-disable-next-line import/no-deprecated
const rawFilterParams = urlParamsToObject(window.location.search);
const rawFilterParams = queryToObject(window.location.search, { gatherArrays: true });
const initialFilterParams = {
...convertObjectPropsToCamelCase(rawFilterParams, {
dropKeys: ['scope', 'utf8', 'state', 'sort'], // These keys are unsupported/unnecessary
......
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