Commit 303317ad authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334508' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65914
parents a2b17339 65aaf601
import FilteredSearchManager from 'ee_else_ce/filtered_search/filtered_search_manager'; import FilteredSearchManager from 'ee_else_ce/filtered_search/filtered_search_manager';
// eslint-disable-next-line import/no-deprecated import { queryToObject } from '~/lib/utils/url_utility';
import { urlParamsToObject } from '~/lib/utils/url_utility';
import { __ } from '~/locale'; import { __ } from '~/locale';
import CodeReviewAnalyticsFilteredSearchTokenKeys from './code_review_analytics_filtered_search_token_keys'; import CodeReviewAnalyticsFilteredSearchTokenKeys from './code_review_analytics_filtered_search_token_keys';
import store from './store'; import store from './store';
...@@ -25,8 +24,7 @@ export default class FilteredSearchCodeReviewAnalytics extends FilteredSearchMan ...@@ -25,8 +24,7 @@ export default class FilteredSearchCodeReviewAnalytics extends FilteredSearchMan
* Updates filters in code review analytics store * Updates filters in code review analytics store
*/ */
updateObject = (path) => { updateObject = (path) => {
// eslint-disable-next-line import/no-deprecated const filters = queryToObject(path, { gatherArrays: true });
const filters = urlParamsToObject(path);
const { selectedLabels: selectedLabelList, selectedMilestone } = transformFilters(filters); const { selectedLabels: selectedLabelList, selectedMilestone } = transformFilters(filters);
store.dispatch('filters/setFilters', { store.dispatch('filters/setFilters', {
......
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