Commit c69a33fe authored by Tomas Vik's avatar Tomas Vik

Only show open Merge Requests in Web IDE

This change fixes issues when user would see closed MR being associated
to a branch. If there was ever closed request with master as a source
branch, you would see that MR permanently.
parent 56e102a2
......@@ -16,6 +16,7 @@ export const getMergeRequestsForBranch = (
.getProjectMergeRequests(`${projectId}`, {
source_branch: branchId,
source_project_id: state.projects[projectId].id,
state: 'opened',
order_by: 'created_at',
per_page: 1,
})
......
---
title: Only show open Merge Requests in Web IDE
merge_request: 35514
type: fixed
......@@ -55,6 +55,7 @@ describe('IDE store merge request actions', () => {
expect(service.getProjectMergeRequests).toHaveBeenCalledWith(TEST_PROJECT, {
source_branch: 'bar',
source_project_id: TEST_PROJECT_ID,
state: 'opened',
order_by: 'created_at',
per_page: 1,
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment