Commit 13ac932c authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: changed
EE: true
parent ccaf08c9
...@@ -2,8 +2,7 @@ import FilteredSearchManager from 'ee_else_ce/filtered_search/filtered_search_ma ...@@ -2,8 +2,7 @@ import FilteredSearchManager from 'ee_else_ce/filtered_search/filtered_search_ma
import IssuableFilteredSearchTokenKeys from 'ee_else_ce/filtered_search/issuable_filtered_search_token_keys'; import IssuableFilteredSearchTokenKeys from 'ee_else_ce/filtered_search/issuable_filtered_search_token_keys';
import FilteredSearchTokenKeys from '~/filtered_search/filtered_search_token_keys'; import FilteredSearchTokenKeys from '~/filtered_search/filtered_search_token_keys';
import { historyPushState } from '~/lib/utils/common_utils'; import { historyPushState } 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 { __ } from '~/locale'; import { __ } from '~/locale';
import issueAnalyticsStore from './stores'; import issueAnalyticsStore from './stores';
...@@ -37,8 +36,7 @@ export default class FilteredSearchIssueAnalytics extends FilteredSearchManager ...@@ -37,8 +36,7 @@ export default class FilteredSearchIssueAnalytics extends FilteredSearchManager
updateObject = (path) => { updateObject = (path) => {
historyPushState(path); historyPushState(path);
// eslint-disable-next-line import/no-deprecated const filters = queryToObject(path, { gatherArrays: true });
const filters = urlParamsToObject(path);
issueAnalyticsStore.dispatch('issueAnalytics/setFilters', filters); issueAnalyticsStore.dispatch('issueAnalytics/setFilters', filters);
}; };
} }
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