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
4ed1ecff
Commit
4ed1ecff
authored
Sep 16, 2019
by
Winnie Hellmann
Committed by
Mike Greiling
Sep 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove vue-resource from PerformanceBarService
parent
faf1e351
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
app/assets/javascripts/performance_bar/services/performance_bar_service.js
...ripts/performance_bar/services/performance_bar_service.js
+0
-9
changelogs/unreleased/remove-vue-resource-from-performance-bar-service.yml
...ased/remove-vue-resource-from-performance-bar-service.yml
+5
-0
No files found.
app/assets/javascripts/performance_bar/services/performance_bar_service.js
View file @
4ed1ecff
import
Vue
from
'
vue
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
../../lib/utils/axios_utils
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
let
vueResourceInterceptor
;
export
default
class
PerformanceBarService
{
static
fetchRequestDetails
(
peekUrl
,
requestId
)
{
return
axios
.
get
(
peekUrl
,
{
params
:
{
request_id
:
requestId
}
});
...
...
@@ -24,16 +20,11 @@ export default class PerformanceBarService {
return
response
;
};
vueResourceInterceptor
=
(
request
,
next
)
=>
next
(
interceptor
);
Vue
.
http
.
interceptors
.
push
(
vueResourceInterceptor
);
return
axios
.
interceptors
.
response
.
use
(
interceptor
);
}
static
removeInterceptor
(
interceptor
)
{
axios
.
interceptors
.
response
.
eject
(
interceptor
);
Vue
.
http
.
interceptors
=
_
.
without
(
Vue
.
http
.
interceptors
,
vueResourceInterceptor
);
}
static
callbackParams
(
response
,
peekUrl
)
{
...
...
changelogs/unreleased/remove-vue-resource-from-performance-bar-service.yml
0 → 100644
View file @
4ed1ecff
---
title
:
Remove vue-resource from PerformanceBarService
merge_request
:
32428
author
:
Lee Tickett
type
:
other
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