Commit 22b36201 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '322755-update-to-use-blockingCount' into 'master'

Update issues refactor to use `blockingCount` field

See merge request gitlab-org/gitlab!65988
parents b629e8bb ef065e54
......@@ -691,8 +691,9 @@ export default {
</li>
<blocking-issues-count
class="blocking-issues gl-display-none gl-sm-display-block"
:blocking-issues-count="issuable.blockedByCount"
:blocking-issues-count="issuable.blockingCount"
:is-list-item="true"
data-testid="blocking-issues"
/>
</template>
......
......@@ -47,7 +47,7 @@ query getProjectIssues(
}
nodes {
...IssueFragment
blockedByCount
blockingCount
healthStatus
weight
}
......
......@@ -21,12 +21,8 @@ RSpec.describe 'Blocking issues count' do
end
it 'sorts by blocking', :js do
find('.filter-dropdown-container .dropdown').click
page.within('ul.dropdown-menu.dropdown-menu-right li') do
expect(page).to have_content('Blocking')
click_link("Blocking")
end
click_button 'Created date'
click_on 'Blocking'
page.within(".issues-list") do
page.within("li.issue:nth-child(1)") do
......
......@@ -78,7 +78,7 @@ describe('IssuesListApp component', () => {
let defaultQueryResponse = getIssuesQueryResponse;
if (IS_EE) {
defaultQueryResponse = cloneDeep(getIssuesQueryResponse);
defaultQueryResponse.data.project.issues.nodes[0].blockedByCount = 1;
defaultQueryResponse.data.project.issues.nodes[0].blockingCount = 1;
defaultQueryResponse.data.project.issues.nodes[0].healthStatus = null;
defaultQueryResponse.data.project.issues.nodes[0].weight = 5;
}
......
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