Commit a566a15e authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch...

Merge branch '334509-migrate-from-deprecated-urlparamstoobject-to-querytoobject-in-ee-integrations-jira' into 'master'

Migrate urlParamsToObject to queryToObject in Jira issues list app

See merge request gitlab-org/gitlab!65721
parents 94747599 b5a559ae
...@@ -2,8 +2,7 @@ import Vue from 'vue'; ...@@ -2,8 +2,7 @@ import Vue from 'vue';
import { IssuableStates } from '~/issuable_list/constants'; import { IssuableStates } from '~/issuable_list/constants';
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 JiraIssuesListApp from './components/jira_issues_list_root.vue'; import JiraIssuesListApp from './components/jira_issues_list_root.vue';
import apolloProvider from './graphql'; import apolloProvider from './graphql';
...@@ -22,10 +21,12 @@ export default function initJiraIssuesList({ mountPointSelector }) { ...@@ -22,10 +21,12 @@ export default function initJiraIssuesList({ 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