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