Commit 92182433 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch...

Merge branch '323554-setting-updating-assignees-in-the-graphql-sidebar-doesn-t-update-boards-cards' into 'master'

Fix updating GraphQL boards cards on assignees update

See merge request gitlab-org/gitlab!57687
parents 3987d1fe 0d805e56
...@@ -51,10 +51,6 @@ export default { ...@@ -51,10 +51,6 @@ export default {
}, },
methods: { methods: {
...mapActions(['toggleBoardItem', 'setAssignees']), ...mapActions(['toggleBoardItem', 'setAssignees']),
updateAssignees(data) {
const assignees = data.issueSetAssignees?.issue?.assignees?.nodes || [];
this.setAssignees(assignees);
},
handleClose() { handleClose() {
this.toggleBoardItem({ boardItem: this.activeIssue, sidebarType: this.sidebarType }); this.toggleBoardItem({ boardItem: this.activeIssue, sidebarType: this.sidebarType });
}, },
...@@ -78,7 +74,7 @@ export default { ...@@ -78,7 +74,7 @@ export default {
:full-path="fullPath" :full-path="fullPath"
:initial-assignees="activeIssue.assignees" :initial-assignees="activeIssue.assignees"
class="assignee" class="assignee"
@assignees-updated="updateAssignees" @assignees-updated="setAssignees"
/> />
<board-sidebar-epic-select class="epic" /> <board-sidebar-epic-select class="epic" />
<div> <div>
......
---
title: Fix updating GraphQL boards cards on assignees update
merge_request: 57687
author:
type: fixed
...@@ -17,8 +17,6 @@ RSpec.describe 'Project issue boards sidebar assignee', :js do ...@@ -17,8 +17,6 @@ RSpec.describe 'Project issue boards sidebar assignee', :js do
let(:card) { find('.board:nth-child(2)').first('.board-card') } let(:card) { find('.board:nth-child(2)').first('.board-card') }
before do before do
stub_feature_flags(graphql_board_lists: false)
project.add_maintainer(user) project.add_maintainer(user)
sign_in(user) sign_in(user)
......
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