Commit 289dfc0e authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove createissues logic from list model

parent e35e7584
/* eslint-disable no-underscore-dangle, class-methods-use-this */
import ListIssue from 'ee_else_ce/boards/models/issue';
import { __ } from '~/locale';
import ListLabel from './label';
import ListAssignee from './assignee';
import flash from '~/flash';
import boardsStore from '../stores/boards_store';
import ListMilestone from './milestone';
import 'ee_else_ce/boards/models/issue';
const TYPES = {
backlog: {
......@@ -100,12 +99,6 @@ class List {
return boardsStore.newListIssue(this, issue);
}
createIssues(data) {
data.forEach(issueObj => {
this.addIssue(new ListIssue(issueObj));
});
}
addMultipleIssues(issues, listFrom, newIndex) {
boardsStore.addMultipleListIssues(this, issues, listFrom, newIndex);
}
......
/* eslint-disable no-shadow, no-param-reassign,consistent-return */
/* global List */
/* global ListIssue */
import $ from 'jquery';
import { sortBy } from 'lodash';
import Vue from 'vue';
......@@ -641,7 +641,9 @@ const boardsStore = {
list.issues = [];
}
list.createIssues(data.issues);
data.issues.forEach(issueObj => {
list.addIssue(new ListIssue(issueObj));
});
return data;
});
......
---
title: Remove createIssues logic from list model
merge_request: 32236
author: nuwe1
type: other
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