Commit 61bce846 authored by Miguel Rincon's avatar Miguel Rincon

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334505' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject" [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!65919
parents c050df26 497ee293
...@@ -20,8 +20,7 @@ import issueMoveListMutation from 'ee_else_ce/boards/graphql/issue_move_list.mut ...@@ -20,8 +20,7 @@ import issueMoveListMutation from 'ee_else_ce/boards/graphql/issue_move_list.mut
import { getIdFromGraphQLId } from '~/graphql_shared/utils'; import { getIdFromGraphQLId } from '~/graphql_shared/utils';
import createGqClient, { fetchPolicies } from '~/lib/graphql'; import createGqClient, { fetchPolicies } from '~/lib/graphql';
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; import { 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 { s__ } from '~/locale'; import { s__ } from '~/locale';
import { import {
formatBoardLists, formatBoardLists,
...@@ -80,8 +79,7 @@ export default { ...@@ -80,8 +79,7 @@ export default {
performSearch({ dispatch }) { performSearch({ dispatch }) {
dispatch( dispatch(
'setFilters', 'setFilters',
// eslint-disable-next-line import/no-deprecated convertObjectPropsToCamelCase(queryToObject(window.location.search, { gatherArrays: true })),
convertObjectPropsToCamelCase(urlParamsToObject(window.location.search)),
); );
if (gon.features.graphqlBoardLists) { if (gon.features.graphqlBoardLists) {
......
...@@ -16,8 +16,7 @@ import * as typesCE from '~/boards/stores/mutation_types'; ...@@ -16,8 +16,7 @@ import * as typesCE from '~/boards/stores/mutation_types';
import { getIdFromGraphQLId } from '~/graphql_shared/utils'; import { getIdFromGraphQLId } from '~/graphql_shared/utils';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import { historyPushState, convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; import { historyPushState, convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
// eslint-disable-next-line import/no-deprecated import { mergeUrlParams, removeParams, queryToObject } from '~/lib/utils/url_utility';
import { mergeUrlParams, removeParams, urlParamsToObject } from '~/lib/utils/url_utility';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import { import {
fullEpicId, fullEpicId,
...@@ -117,8 +116,7 @@ export default { ...@@ -117,8 +116,7 @@ export default {
performSearch({ dispatch, getters }) { performSearch({ dispatch, getters }) {
dispatch( dispatch(
'setFilters', 'setFilters',
// eslint-disable-next-line import/no-deprecated convertObjectPropsToCamelCase(queryToObject(window.location.search, { gatherArrays: true })),
convertObjectPropsToCamelCase(urlParamsToObject(window.location.search)),
); );
if (getters.isSwimlanesOn) { if (getters.isSwimlanesOn) {
......
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