Hide unactive on explore users and some refactors (#2741)

* hide unactive on explore users and some refactors

* fix test for removed Organizations

* fix test for removed Organizations

* fix imports

* fix logic bug

* refactor the toConds

* Rename TestOrganizations to TestSearchUsers and add tests for users

* fix other tests

* fix other tests

* fix watchers tests

* fix comments and remove unused code
This commit is contained in:
Lunny Xiao 2017-10-25 01:36:19 +08:00 committed by Lauris BH
parent 03900303a9
commit 6eeadb2082
15 changed files with 143 additions and 151 deletions

View file

@ -1,6 +1,6 @@
-
id: 1
user_id: 1
user_id: 9
issue_id: 1
is_watching: true
created_unix: 946684800

View file

@ -13,6 +13,7 @@
avatar: avatar1
avatar_email: user1@example.com
num_repos: 0
is_active: true
-
id: 2
@ -62,6 +63,7 @@
avatar_email: user4@example.com
num_repos: 0
num_following: 1
is_active: true
-
id: 5

View file

@ -10,5 +10,5 @@
-
id: 3
user_id: 10
user_id: 9
repo_id: 1