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
7606825f
Commit
7606825f
authored
Jun 18, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change frontend URLs from usage_ping to service_ping
parent
28a19b15
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/ide/services/index.js
app/assets/javascripts/ide/services/index.js
+1
-1
app/assets/javascripts/ide/stores/modules/clientside/actions.js
...sets/javascripts/ide/stores/modules/clientside/actions.js
+1
-1
spec/frontend/ide/services/index_spec.js
spec/frontend/ide/services/index_spec.js
+1
-1
spec/frontend/ide/stores/modules/clientside/actions_spec.js
spec/frontend/ide/stores/modules/clientside/actions_spec.js
+1
-1
No files found.
app/assets/javascripts/ide/services/index.js
View file @
7606825f
...
...
@@ -100,7 +100,7 @@ export default {
return
Api
.
commitPipelines
(
getters
.
currentProject
.
path_with_namespace
,
commitSha
);
},
pingUsage
(
projectPath
)
{
const
url
=
`
${
gon
.
relative_url_root
}
/
${
projectPath
}
/
usag
e_ping/web_ide_pipelines_count`
;
const
url
=
`
${
gon
.
relative_url_root
}
/
${
projectPath
}
/
servic
e_ping/web_ide_pipelines_count`
;
return
axios
.
post
(
url
);
},
getCiConfig
(
projectPath
,
content
)
{
...
...
app/assets/javascripts/ide/stores/modules/clientside/actions.js
View file @
7606825f
...
...
@@ -3,7 +3,7 @@ import axios from '~/lib/utils/axios_utils';
export
const
pingUsage
=
({
rootGetters
})
=>
{
const
{
web_url
:
projectUrl
}
=
rootGetters
.
currentProject
;
const
url
=
`
${
projectUrl
}
/
usag
e_ping/web_ide_clientside_preview`
;
const
url
=
`
${
projectUrl
}
/
servic
e_ping/web_ide_clientside_preview`
;
return
axios
.
post
(
url
);
};
...
...
spec/frontend/ide/services/index_spec.js
View file @
7606825f
...
...
@@ -292,7 +292,7 @@ describe('IDE services', () => {
it
(
'
posts to usage endpoint
'
,
()
=>
{
const
TEST_PROJECT_PATH
=
'
foo/bar
'
;
const
axiosURL
=
`
${
TEST_RELATIVE_URL_ROOT
}
/
${
TEST_PROJECT_PATH
}
/
usag
e_ping/web_ide_pipelines_count`
;
const
axiosURL
=
`
${
TEST_RELATIVE_URL_ROOT
}
/
${
TEST_PROJECT_PATH
}
/
servic
e_ping/web_ide_pipelines_count`
;
mock
.
onPost
(
axiosURL
).
reply
(
200
);
...
...
spec/frontend/ide/stores/modules/clientside/actions_spec.js
View file @
7606825f
...
...
@@ -5,7 +5,7 @@ import * as actions from '~/ide/stores/modules/clientside/actions';
import
axios
from
'
~/lib/utils/axios_utils
'
;
const
TEST_PROJECT_URL
=
`
${
TEST_HOST
}
/lorem/ipsum`
;
const
TEST_USAGE_URL
=
`
${
TEST_PROJECT_URL
}
/
usag
e_ping/web_ide_clientside_preview`
;
const
TEST_USAGE_URL
=
`
${
TEST_PROJECT_URL
}
/
servic
e_ping/web_ide_clientside_preview`
;
describe
(
'
IDE store module clientside actions
'
,
()
=>
{
let
rootGetters
;
...
...
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