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
c6b525bb
Commit
c6b525bb
authored
Dec 18, 2019
by
mo khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the raw endpoint url
parent
0b817a6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
ee/app/assets/javascripts/dependencies/store/modules/list/getters.js
...ts/javascripts/dependencies/store/modules/list/getters.js
+1
-2
ee/spec/frontend/dependencies/components/dependencies_actions_spec.js
...tend/dependencies/components/dependencies_actions_spec.js
+1
-1
ee/spec/frontend/dependencies/store/modules/list/getters_spec.js
.../frontend/dependencies/store/modules/list/getters_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/dependencies/store/modules/list/getters.js
View file @
c6b525bb
...
...
@@ -9,5 +9,4 @@ export const isJobFailed = state =>
[
REPORT_STATUS
.
jobFailed
,
REPORT_STATUS
.
noDependencies
].
includes
(
state
.
reportInfo
.
status
);
export
const
isIncomplete
=
state
=>
state
.
reportInfo
.
status
===
REPORT_STATUS
.
incomplete
;
export
const
downloadEndpoint
=
({
endpoint
})
=>
endpoint
.
endsWith
(
'
.json
'
)
?
endpoint
:
`
${
endpoint
}
.json`
;
export
const
downloadEndpoint
=
({
endpoint
})
=>
endpoint
;
ee/spec/frontend/dependencies/components/dependencies_actions_spec.js
View file @
c6b525bb
...
...
@@ -31,7 +31,7 @@ describe('DependenciesActions component', () => {
factory
({
propsData
:
{
namespace
},
});
store
.
state
[
namespace
].
endpoint
=
`
${
TEST_HOST
}
/dependencies`
;
store
.
state
[
namespace
].
endpoint
=
`
${
TEST_HOST
}
/dependencies
.json
`
;
return
wrapper
.
vm
.
$nextTick
();
});
...
...
ee/spec/frontend/dependencies/store/modules/list/getters_spec.js
View file @
c6b525bb
...
...
@@ -28,7 +28,7 @@ describe('Dependencies getters', () => {
describe
(
'
downloadEndpoint
'
,
()
=>
{
it
(
'
should return download endpoint
'
,
()
=>
{
const
endpoint
=
`
${
TEST_HOST
}
/dependencies`
;
expect
(
getters
.
downloadEndpoint
({
endpoint
})).
toBe
(
`
${
TEST_HOST
}
/dependencies.json`
);
expect
(
getters
.
downloadEndpoint
({
endpoint
})).
toBe
(
endpoint
);
});
});
...
...
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