summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-02-22 21:15:14 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-22 21:15:14 +0800
commit83b6d032318c7ba082531a9d0060b7109094b828 (patch)
tree4f76f95ea7defa5ae6465f63cdbf8659ee32b744 /models/fixtures
parentd6748284bd6b4424d0e50cb4b952d12c74203960 (diff)
downloadgitea-83b6d032318c7ba082531a9d0060b7109094b828.tar.gz
gitea-83b6d032318c7ba082531a9d0060b7109094b828.zip
fix: Wrong repo list on Explore page if user already loggin. (#1009)
* fix: Wrong repo list on Explore page if user already loggin. * fix: code readable. * fix: declare variable
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/repository.yml36
-rw-r--r--models/fixtures/user.yml15
2 files changed, 51 insertions, 0 deletions
diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml
index 0e2aa5fd0d..7c3426b3fc 100644
--- a/models/fixtures/repository.yml
+++ b/models/fixtures/repository.yml
@@ -132,3 +132,39 @@
num_pulls: 0
num_closed_pulls: 0
is_mirror: false
+
+-
+ id: 12
+ owner_id: 14
+ lower_name: test_repo_12
+ name: test_repo_12
+ is_private: false
+ num_issues: 0
+ num_closed_issues: 0
+ num_pulls: 0
+ num_closed_pulls: 0
+ is_mirror: false
+
+-
+ id: 13
+ owner_id: 14
+ lower_name: test_repo_13
+ name: test_repo_13
+ is_private: true
+ num_issues: 0
+ num_closed_issues: 0
+ num_pulls: 0
+ num_closed_pulls: 0
+ is_mirror: false
+
+-
+ id: 14
+ owner_id: 14
+ lower_name: test_repo_14
+ name: test_repo_14
+ is_private: false
+ num_issues: 0
+ num_closed_issues: 0
+ num_pulls: 0
+ num_closed_pulls: 0
+ is_mirror: false
diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml
index 8874498c91..5a2dd2f080 100644
--- a/models/fixtures/user.yml
+++ b/models/fixtures/user.yml
@@ -194,3 +194,18 @@
avatar_email: user13@example.com
num_repos: 1
is_active: true
+
+-
+ id: 14
+ lower_name: user14
+ name: user14
+ full_name: User 14
+ email: user14@example.com
+ passwd: password
+ type: 0 # individual
+ salt: salt
+ is_admin: false
+ avatar: avatar14
+ avatar_email: user13@example.com
+ num_repos: 3
+ is_active: true