Commit fc2cb5d4 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334514' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65903
parents 6d551f8f 4b2236b9
import { FiltersInfo as FiltersInfoCE } from '~/boards/boards_util'; import { FiltersInfo as FiltersInfoCE } from '~/boards/boards_util';
import { getIdFromGraphQLId } from '~/graphql_shared/utils'; import { getIdFromGraphQLId } from '~/graphql_shared/utils';
// eslint-disable-next-line import/no-deprecated import { objectToQuery, queryToObject } from '~/lib/utils/url_utility';
import { objectToQuery, urlParamsToObject } from '~/lib/utils/url_utility';
import { import {
EPIC_LANE_BASE_HEIGHT, EPIC_LANE_BASE_HEIGHT,
IterationFilterType, IterationFilterType,
...@@ -94,8 +93,7 @@ export function formatEpicListsPageInfo(lists) { ...@@ -94,8 +93,7 @@ export function formatEpicListsPageInfo(lists) {
export function transformBoardConfig(boardConfig) { export function transformBoardConfig(boardConfig) {
const updatedBoardConfig = {}; const updatedBoardConfig = {};
// eslint-disable-next-line import/no-deprecated const passedFilterParams = queryToObject(window.location.search, { gatherArrays: true });
const passedFilterParams = urlParamsToObject(window.location.search);
const updateScopeObject = (key, value = '') => { const updateScopeObject = (key, value = '') => {
if (value === null || value === '') return; if (value === null || value === '') return;
// Comparing with value string because weight can be a number // Comparing with value string because weight can be a number
......
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