Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
289dfc0e
Commit
289dfc0e
authored
Jul 22, 2020
by
Marvin Karegyeya
Committed by
Kushal Pandya
Jul 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove createissues logic from list model
parent
e35e7584
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
app/assets/javascripts/boards/models/list.js
app/assets/javascripts/boards/models/list.js
+1
-8
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+4
-2
changelogs/unreleased/Remove-createIssues-function-logic-from-list-model.yml
...ed/Remove-createIssues-function-logic-from-list-model.yml
+5
-0
No files found.
app/assets/javascripts/boards/models/list.js
View file @
289dfc0e
/* 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
);
}
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
289dfc0e
/* 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
;
});
...
...
changelogs/unreleased/Remove-createIssues-function-logic-from-list-model.yml
0 → 100644
View file @
289dfc0e
---
title
:
Remove createIssues logic from list model
merge_request
:
32236
author
:
nuwe1
type
:
other
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment