Skip to content
Snippets Groups Projects
Commit a8513c7d authored by Tim Zallmann's avatar Tim Zallmann
Browse files

Merge branch '52472-pipeline-endpoint-json' into 'master'

Adds `.json` to the end of pipelines endpoint

Closes #52472

See merge request gitlab-org/gitlab-ce!22293
parents 2343dd8d 8bc33c78
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -139,7 +139,7 @@ export const fetchStages = ({ state, dispatch }) => {
dispatch('requestStages');
 
axios
.get(state.job.pipeline.path)
.get(`${state.job.pipeline.path}.json`)
.then(({ data }) => {
dispatch('receiveStagesSuccess', data.details.stages);
dispatch('fetchJobsForStage', data.details.stages[0]);
Loading
Loading
---
title: Fix caching issue with pipelines URL
merge_request: 22293
author:
type: fixed
Loading
Loading
@@ -422,7 +422,7 @@ describe('Job State actions', () => {
 
beforeEach(() => {
mockedState.job.pipeline = {
path: `${TEST_HOST}/endpoint.json/stages`,
path: `${TEST_HOST}/endpoint`,
};
mock = new MockAdapter(axios);
});
Loading
Loading
@@ -434,7 +434,7 @@ describe('Job State actions', () => {
describe('success', () => {
it('dispatches requestStages and receiveStagesSuccess, fetchJobsForStage ', done => {
mock
.onGet(`${TEST_HOST}/endpoint.json/stages`)
.onGet(`${TEST_HOST}/endpoint.json`)
.replyOnce(200, { details: { stages: [{ id: 121212, name: 'build' }] } });
 
testAction(
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment