Commit 8c321d20 authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
EE: true
parent ae94bd46
...@@ -3,8 +3,7 @@ import VueApollo from 'vue-apollo'; ...@@ -3,8 +3,7 @@ import VueApollo from 'vue-apollo';
import createDefaultClient from '~/lib/graphql'; import createDefaultClient from '~/lib/graphql';
import { convertObjectPropsToCamelCase, parseBoolean } from '~/lib/utils/common_utils'; import { convertObjectPropsToCamelCase, parseBoolean } 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 TestCaseListApp from './components/test_case_list_root.vue'; import TestCaseListApp from './components/test_case_list_root.vue';
...@@ -33,10 +32,12 @@ const initTestCaseList = ({ mountPointSelector }) => { ...@@ -33,10 +32,12 @@ const initTestCaseList = ({ mountPointSelector }) => {
} = mountPointEl.dataset; } = mountPointEl.dataset;
const initialFilterParams = Object.assign( const initialFilterParams = Object.assign(
// eslint-disable-next-line import/no-deprecated convertObjectPropsToCamelCase(
convertObjectPropsToCamelCase(urlParamsToObject(window.location.search.substring(1)), { queryToObject(window.location.search.substring(1), { gatherArrays: true }),
{
dropKeys: ['scope', 'utf8', 'state', 'sort'], // These keys are unsupported/unnecessary dropKeys: ['scope', 'utf8', 'state', 'sort'], // These keys are unsupported/unnecessary
}), },
),
); );
return new Vue({ return new Vue({
......
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