forgejo/models/fixtures/org_user.yml
Antoine GIRARD 76408d50fb org/members: display 2FA members states + optimize sql requests (#7621)
* org/members: display 2FA state

* fix comment typo

* lay down UserList bases

* add basic test for previous methods

* add comment for UserList type

* add valid two-fa account

* test new UserList methods

* optimize MembersIsPublic by side loading info on GetMembers + fix integrations tests

* respect fmt rules

* use map for data

* Optimize GetTwoFaStatus

* rewrite by using existing sub func

* Optimize IsUserOrgOwner

* remove un-used code

* tests: cover empty org + fix import order

* tests: add ErrTeamNotExist path

* tests: fix wrong expected result
2019-08-02 12:06:27 -04:00

48 lines
410 B
YAML

-
id: 1
uid: 2
org_id: 3
is_public: true
-
id: 2
uid: 4
org_id: 3
is_public: false
-
id: 3
uid: 5
org_id: 6
is_public: true
-
id: 4
uid: 5
org_id: 7
is_public: false
-
id: 5
uid: 15
org_id: 17
is_public: true
-
id: 6
uid: 18
org_id: 17
is_public: false
-
id: 7
uid: 20
org_id: 19
is_public: true
-
id: 8
uid: 24
org_id: 25
is_public: true