summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-05-16 09:49:17 +0000
committerGitHub <noreply@github.com>2022-05-16 17:49:17 +0800
commit71ca131582fff51da614291732ed43b2bf48d8a1 (patch)
tree0d7d69b3c5e2110ba00f7049e7b0bd08ef8fff75 /models/fixtures
parentd494cc335633ff838eaea547438b95e753aeec0f (diff)
downloadgitea-71ca131582fff51da614291732ed43b2bf48d8a1.tar.gz
gitea-71ca131582fff51da614291732ed43b2bf48d8a1.zip
Fix issue overview for teams (#19652)
- Don't use hacky solution to limit to the correct RepoID's, instead use current code to handle these limits. The existing code is more correct than the hacky solution. - Resolves #19636 - Add test-case
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/issue.yml24
-rw-r--r--models/fixtures/issue_assignees.yml4
-rw-r--r--models/fixtures/issue_index.yml5
-rw-r--r--models/fixtures/repository.yml2
-rw-r--r--models/fixtures/team_unit.yml1
5 files changed, 34 insertions, 2 deletions
diff --git a/models/fixtures/issue.yml b/models/fixtures/issue.yml
index d5738d5db4..39dacc92ff 100644
--- a/models/fixtures/issue.yml
+++ b/models/fixtures/issue.yml
@@ -184,3 +184,27 @@
is_pull: false
created_unix: 1602935696
updated_unix: 1602935696
+
+-
+ id: 16
+ repo_id: 32
+ index: 1
+ poster_id: 2
+ name: just a normal issue
+ content: content
+ is_closed: false
+ is_pull: false
+ created_unix: 1602935696
+ updated_unix: 1602935696
+
+-
+ id: 17
+ repo_id: 32
+ index: 2
+ poster_id: 15
+ name: a issue with a assignment
+ content: content
+ is_closed: false
+ is_pull: false
+ created_unix: 1602935696
+ updated_unix: 1602935696
diff --git a/models/fixtures/issue_assignees.yml b/models/fixtures/issue_assignees.yml
index 2e89b2b0b3..e5d36f921a 100644
--- a/models/fixtures/issue_assignees.yml
+++ b/models/fixtures/issue_assignees.yml
@@ -10,3 +10,7 @@
id: 3
assignee_id: 2
issue_id: 6
+-
+ id: 4
+ assignee_id: 2
+ issue_id: 17
diff --git a/models/fixtures/issue_index.yml b/models/fixtures/issue_index.yml
index 49d95c57ab..de6e955804 100644
--- a/models/fixtures/issue_index.yml
+++ b/models/fixtures/issue_index.yml
@@ -11,6 +11,9 @@
group_id: 10
max_index: 1
-
+ group_id: 32
+ max_index: 2
+-
group_id: 48
max_index: 1
-
@@ -21,4 +24,4 @@
max_index: 1
-
group_id: 51
- max_index: 1 \ No newline at end of file
+ max_index: 1
diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml
index 475cda3b55..450c2f26af 100644
--- a/models/fixtures/repository.yml
+++ b/models/fixtures/repository.yml
@@ -483,7 +483,7 @@
is_private: false
num_stars: 0
num_forks: 0
- num_issues: 0
+ num_issues: 2
is_mirror: false
status: 0
diff --git a/models/fixtures/team_unit.yml b/models/fixtures/team_unit.yml
index 66f0d22efd..2e23a63129 100644
--- a/models/fixtures/team_unit.yml
+++ b/models/fixtures/team_unit.yml
@@ -252,6 +252,7 @@
-
id: 43
+ org_id: 3
team_id: 7
type: 2 # issues
access_mode: 2