summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorLanre Adelowo <yo@lanre.wtf>2020-08-17 04:07:38 +0100
committerGitHub <noreply@github.com>2020-08-16 23:07:38 -0400
commit4027c5dd7c11c1256094e202be591ec1b86a011e (patch)
tree49e361a50395f0496c49d52bfd571ee47c1ebf44 /models/fixtures
parentd285b5d35a44bf9fde0682532aeef9550f78cf83 (diff)
downloadgitea-4027c5dd7c11c1256094e202be591ec1b86a011e.tar.gz
gitea-4027c5dd7c11c1256094e202be591ec1b86a011e.zip
Kanban board (#8346)
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com> Co-authored-by: Kerry <flatline-studios@users.noreply.github.com> Co-authored-by: Jaqra <jaqra@hotmail.com> Co-authored-by: Kyle Evans <kevans91@users.noreply.github.com> Co-authored-by: Tsakiridis Ilias <TsakiDev@users.noreply.github.com> Co-authored-by: Ilias Tsakiridis <ilias.tsakiridis@outlook.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/project.yml26
-rw-r--r--models/fixtures/project_board.yml23
-rw-r--r--models/fixtures/project_issue.yml23
-rw-r--r--models/fixtures/repo_unit.yml18
-rw-r--r--models/fixtures/repository.yml6
5 files changed, 96 insertions, 0 deletions
diff --git a/models/fixtures/project.yml b/models/fixtures/project.yml
new file mode 100644
index 0000000000..3d42597c5e
--- /dev/null
+++ b/models/fixtures/project.yml
@@ -0,0 +1,26 @@
+-
+ id: 1
+ title: First project
+ repo_id: 1
+ is_closed: false
+ creator_id: 2
+ board_type: 1
+ type: 2
+
+-
+ id: 2
+ title: second project
+ repo_id: 3
+ is_closed: false
+ creator_id: 3
+ board_type: 1
+ type: 2
+
+-
+ id: 3
+ title: project on repo with disabled project
+ repo_id: 4
+ is_closed: true
+ creator_id: 5
+ board_type: 1
+ type: 2
diff --git a/models/fixtures/project_board.yml b/models/fixtures/project_board.yml
new file mode 100644
index 0000000000..9e06e8c239
--- /dev/null
+++ b/models/fixtures/project_board.yml
@@ -0,0 +1,23 @@
+-
+ id: 1
+ project_id: 1
+ title: To Do
+ creator_id: 2
+ created_unix: 1588117528
+ updated_unix: 1588117528
+
+-
+ id: 2
+ project_id: 1
+ title: In Progress
+ creator_id: 2
+ created_unix: 1588117528
+ updated_unix: 1588117528
+
+-
+ id: 3
+ project_id: 1
+ title: Done
+ creator_id: 2
+ created_unix: 1588117528
+ updated_unix: 1588117528
diff --git a/models/fixtures/project_issue.yml b/models/fixtures/project_issue.yml
new file mode 100644
index 0000000000..b1af05908a
--- /dev/null
+++ b/models/fixtures/project_issue.yml
@@ -0,0 +1,23 @@
+-
+ id: 1
+ issue_id: 1
+ project_id: 1
+ project_board_id: 1
+
+-
+ id: 2
+ issue_id: 2
+ project_id: 1
+ project_board_id: 0 # no board assigned
+
+-
+ id: 3
+ issue_id: 3
+ project_id: 1
+ project_board_id: 2
+
+-
+ id: 4
+ issue_id: 5
+ project_id: 1
+ project_board_id: 3
diff --git a/models/fixtures/repo_unit.yml b/models/fixtures/repo_unit.yml
index 35b9b92b79..726abf9af9 100644
--- a/models/fixtures/repo_unit.yml
+++ b/models/fixtures/repo_unit.yml
@@ -514,3 +514,21 @@
type: 3
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}"
created_unix: 946684810
+
+-
+ id: 75
+ repo_id: 1
+ type: 8
+ created_unix: 946684810
+
+-
+ id: 76
+ repo_id: 2
+ type: 8
+ created_unix: 946684810
+
+-
+ id: 77
+ repo_id: 3
+ type: 8
+ created_unix: 946684810
diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml
index 3b86dd0f81..a44e480270 100644
--- a/models/fixtures/repository.yml
+++ b/models/fixtures/repository.yml
@@ -13,6 +13,8 @@
num_milestones: 3
num_closed_milestones: 1
num_watches: 4
+ num_projects: 1
+ num_closed_projects: 0
status: 0
-
@@ -42,6 +44,8 @@
num_pulls: 0
num_closed_pulls: 0
num_watches: 0
+ num_projects: 1
+ num_closed_projects: 0
status: 0
-
@@ -56,6 +60,8 @@
num_pulls: 0
num_closed_pulls: 0
num_stars: 1
+ num_projects: 0
+ num_closed_projects: 1
status: 0
-