gitlab-org--gitlab-foss/spec/models
Yorick Peterse e116a356b8 Refactor User#authorized_groups/projects
These methods no longer include public groups/projects (that don't
belong to the actual user) as this is handled by the various finder
classes now. This also removes the need for passing extra arguments.

Note that memoizing was removed _explicitly_. For whatever reason doing
so messes up the users controller to a point where it claims a certain
user does _not_ have access to certain groups/projects when it does have
access. Existing code shouldn't be affected as these methods are only
called in ways that they'd run queries anyway (e.g. a combination of
"any?" and "each" which would run 2 queries regardless of memoizing).
2015-11-18 13:05:45 +01:00
..
ci Merge branch 'annotate-models' into 'master' 2015-11-14 08:27:12 +00:00
concerns Only accept open issues and merge requests 2015-10-16 09:59:32 +02:00
hooks Fix rubocop warnings in spec/models 2015-10-03 01:48:54 -05:00
members Rename abilities to correspond contoller/model action names 2015-06-26 15:55:56 +02:00
project_services CI details cleanup 2015-11-05 15:24:27 +01:00
abuse_report_spec.rb Streamline the "Report button" 2015-09-29 21:47:01 +02:00
application_setting_spec.rb Annotate models 2015-11-13 19:22:46 +01:00
broadcast_message_spec.rb Fix rubocop warnings in spec/models 2015-10-03 01:48:54 -05:00
build_spec.rb Implement Build Artifacts 2015-11-10 12:51:50 +01:00
commit_range_spec.rb Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
commit_spec.rb Fix mentionable specs 2015-10-12 16:23:15 +02:00
commit_status_spec.rb Annotate models 2015-11-13 19:22:46 +01:00
deploy_key_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
deploy_keys_project_spec.rb Fix Style/Blocks cop violations 2015-06-22 16:00:54 -04:00
event_spec.rb Added Event.limit_recent 2015-11-18 13:05:45 +01:00
external_issue_spec.rb Add to_reference for models that support references 2015-05-26 15:48:30 -04:00
external_wiki_service_spec.rb Change foo.should syntax to expect(foo).to in specs 2015-06-13 18:37:30 -04:00
forked_project_link_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00
generic_commit_status_spec.rb Annotate models 2015-11-13 19:22:46 +01:00
global_milestone_spec.rb Move global milestone specs 2015-11-16 14:38:34 +01:00
group_spec.rb Group methods for filtering public/visible groups 2015-11-18 13:05:45 +01:00
issue_spec.rb Only accept open issues and merge requests 2015-10-16 09:59:32 +02:00
key_spec.rb Only publish ssh key-type and key 2015-08-04 14:33:18 +02:00
label_link_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
label_spec.rb Annotate models 2015-11-13 19:22:46 +01:00
member_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
merge_request_spec.rb Annotate models 2015-11-13 19:22:46 +01:00
milestone_spec.rb Improve performance of sorting milestone issues 2015-10-19 11:37:14 +02:00
namespace_spec.rb Annotate models 2015-11-13 19:22:46 +01:00
note_spec.rb Fix mentionable specs 2015-10-12 16:23:15 +02:00
project_security_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00
project_snippet_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
project_spec.rb Added Project.visible_to_user 2015-11-18 13:05:45 +01:00
project_team_spec.rb Wrong access level badge on MR comments 2015-10-02 15:11:17 +03:00
project_wiki_spec.rb Make ProjectWiki touch Project#last_activity_at after wiki actions 2015-11-16 13:08:25 -05:00
protected_branch_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
release_spec.rb Annotate models 2015-11-13 19:22:46 +01:00
repository_spec.rb Refactor search by commits message 2015-11-02 16:39:24 +01:00
service_spec.rb Improve invalidation of stored service password if the endpoint URL is changed 2015-10-15 12:07:59 +02:00
snippet_spec.rb Make snippet filename optional. 2015-06-20 01:06:57 +02:00
user_spec.rb Refactor User#authorized_groups/projects 2015-11-18 13:05:45 +01:00
wiki_page_spec.rb Fix rubocop warnings in spec/models 2015-10-03 01:48:54 -05:00