Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
65aaf601
Commit
65aaf601
authored
Jul 11, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate the deprecated "urlParamsToObject" to "queryToObject"
Changelog: other EE: true
parent
8a2b97f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ee/app/assets/javascripts/analytics/code_review_analytics/filtered_search_code_review_analytics.js
...review_analytics/filtered_search_code_review_analytics.js
+2
-4
No files found.
ee/app/assets/javascripts/analytics/code_review_analytics/filtered_search_code_review_analytics.js
View file @
65aaf601
import
FilteredSearchManager
from
'
ee_else_ce/filtered_search/filtered_search_manager
'
;
// eslint-disable-next-line import/no-deprecated
import
{
urlParamsToObject
}
from
'
~/lib/utils/url_utility
'
;
import
{
queryToObject
}
from
'
~/lib/utils/url_utility
'
;
import
{
__
}
from
'
~/locale
'
;
import
CodeReviewAnalyticsFilteredSearchTokenKeys
from
'
./code_review_analytics_filtered_search_token_keys
'
;
import
store
from
'
./store
'
;
...
...
@@ -25,8 +24,7 @@ export default class FilteredSearchCodeReviewAnalytics extends FilteredSearchMan
* Updates filters in code review analytics store
*/
updateObject
=
(
path
)
=>
{
// eslint-disable-next-line import/no-deprecated
const
filters
=
urlParamsToObject
(
path
);
const
filters
=
queryToObject
(
path
,
{
gatherArrays
:
true
});
const
{
selectedLabels
:
selectedLabelList
,
selectedMilestone
}
=
transformFilters
(
filters
);
store
.
dispatch
(
'
filters/setFilters
'
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment