gitlab-org--gitlab-foss/spec/models
Stan Hu c408be48ca Optimize /api/v4/projects endpoint for visibility level
Previously when a user requested a list of projects,
`Project#public_or_visible_to_user` would search all authorized projects
and public/internal projects as well. However, when a user requests a
specific `visibility_level` (e.g. private), that should reduce the
search space, and we shouldn't need to load public/internal projects.

Improves https://gitlab.com/gitlab-org/gitlab-ce/issues/59329
2019-03-27 06:15:33 -05:00
..
application_setting
badges
blob_viewer Allow to include files from another projects 2019-01-07 09:38:05 +01:00
ci Update merge request widget pipeline block 2019-03-21 15:31:09 +00:00
clusters Allow runners to be installed on group clusters 2019-03-26 09:59:48 +00:00
concerns Merge branch '57115-just-in-time-k8s-resource-creation' into 'master' 2019-03-20 22:25:23 +00:00
conversational_development_index
cycle_analytics
diff_viewer Fixing image lfs bug and also displaying text lfs 2018-12-27 16:51:07 +01:00
error_tracking Refactor model and spec 2019-03-01 14:51:54 +00:00
hooks Migrate sensitive web hook data in the background 2018-10-01 15:34:16 +01:00
issue Check issue milestone availability 2019-02-14 15:28:02 +01:00
members Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
merge_request
network
postgresql Disable replication lag check for Aurora PostgreSQL databases 2018-11-03 07:00:31 -07:00
project_services Update dashboards to additionally use new environment selector 2019-03-21 08:06:47 +00:00
protected_branch
releases Add support for FTP assets for releases 2019-02-13 10:51:12 +00:00
uploads Use FastDestroy for deleting uploads 2018-12-06 22:00:19 +01:00
ability_spec.rb Fixed bug when external wiki is enabled 2019-01-31 16:51:53 +01:00
abuse_report_spec.rb
active_session_spec.rb Filter active sessions belonging to an admin impersonating the user 2019-02-27 11:44:58 +01:00
appearance_spec.rb Show header and footer system messages in email 2019-02-27 22:07:50 +02:00
application_record_spec.rb Avoid race conditions when creating GpgSignature 2019-02-06 15:24:46 +01:00
application_setting_spec.rb Move some application setting examples to be shared 2019-03-19 13:01:37 +08:00
award_emoji_spec.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
badge_spec.rb
blob_spec.rb Fixing image lfs bug and also displaying text lfs 2018-12-27 16:51:07 +01:00
board_group_recent_visit_spec.rb CE-port for 7714-view-recent-boards 2019-03-01 19:47:52 +08:00
board_project_recent_visit_spec.rb CE-port for 7714-view-recent-boards 2019-03-01 19:47:52 +08:00
board_spec.rb
broadcast_message_spec.rb Does not exclude message_html from attributes 2019-03-20 16:51:46 -03:00
chat_name_spec.rb
chat_team_spec.rb
commit_collection_spec.rb Enrich commits with full data in CommitCollection 2019-03-22 10:26:15 +13:00
commit_range_spec.rb
commit_spec.rb Add back Rugged support for retrieving a commit tree entry 2019-03-08 16:01:59 -08:00
commit_status_spec.rb Create framework for build prerequisites 2019-03-20 12:04:40 +11:00
compare_spec.rb Allow getting all paths (old & new) involved in MR 2018-11-07 11:28:43 +08:00
container_repository_spec.rb
cycle_analytics_spec.rb
deploy_key_spec.rb
deploy_keys_project_spec.rb
deploy_token_spec.rb Fix deploy tokens without expire_at crashes 2018-08-02 19:43:36 +02:00
deployment_spec.rb Create one Kubernetes namespace for a deployment 2019-03-20 12:04:46 +11:00
diff_discussion_spec.rb
diff_note_spec.rb Implement multi-line suggestions filtering 2019-03-20 11:30:24 -03:00
discussion_spec.rb
email_spec.rb
environment_spec.rb Add name_without_type to environments.json 2019-02-26 19:13:09 +00:00
environment_status_spec.rb Update merge request widget pipeline block 2019-03-21 15:31:09 +00:00
event_collection_spec.rb Refactor EventFilter and increase its test coverage 2018-09-26 18:34:26 +02:00
event_spec.rb Allow admins/auditors to read private personal snippets 2019-01-24 12:44:46 +00:00
external_issue_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
fork_network_member_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
fork_network_spec.rb
generic_commit_status_spec.rb
global_milestone_spec.rb Adds milestone search 2019-01-24 18:44:09 +01:00
gpg_key_spec.rb Fix deprecation: Passing an argument to force an association to reload is now deprecated 2019-01-11 19:28:38 +01:00
gpg_key_subkey_spec.rb
gpg_signature_spec.rb Avoid race conditions when creating GpgSignature 2019-02-06 15:24:46 +01:00
group_custom_attribute_spec.rb
group_label_spec.rb
group_milestone_spec.rb Add project milestone link to dashboard milestones 2018-12-20 13:33:09 +01:00
group_spec.rb Enable/disable Auto DevOps at Group level 2019-03-12 10:15:33 +00:00
guest_spec.rb
identity_spec.rb Fix failed LDAP logins when nil user_id present 2019-01-29 11:15:06 -08:00
import_export_upload_spec.rb
instance_configuration_spec.rb Instance Configuration page now displays correct SSH fingerprints 2018-10-03 15:25:42 +01:00
internal_id_spec.rb Flush InternalId records after import 2019-01-29 15:38:40 +01:00
issue_collection_spec.rb
issue_spec.rb Merge branch 'filter-confidential-issues' into 'master' 2019-02-26 12:24:39 +01:00
key_spec.rb
label_link_spec.rb
label_note_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
label_priority_spec.rb
label_spec.rb Add subscribe filter to labels page 2018-10-04 10:24:50 +02:00
legacy_diff_discussion_spec.rb
lfs_download_object_spec.rb Revert "Merge branch 'use_gitlab_current_settings' into 'master'" 2019-02-19 12:58:05 +00:00
lfs_file_lock_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
lfs_object_spec.rb Merge branch 'gt-update-typos-in-comments-and-specs' into 'master' 2018-11-01 10:34:23 +00:00
lfs_objects_project_spec.rb
license_template_spec.rb Backport project template API to CE 2018-10-05 11:34:43 +01:00
list_spec.rb fix wording 2018-12-03 22:01:30 +09:00
member_spec.rb Resolve "Can add an existing group member into a group project with new permissions but permissions are not overridden" 2018-12-06 13:15:29 +00:00
merge_request_diff_commit_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
merge_request_diff_file_spec.rb
merge_request_diff_spec.rb Fix error creating a merge request when diff includes a null byte 2019-03-14 12:55:45 -07:00
merge_request_spec.rb Merge branch 'osw-multi-assignees-merge-requests-migration' into 'master' 2019-03-26 18:00:46 +00:00
milestone_spec.rb Add failing test for milestone with far-future date 2019-03-06 13:40:03 +00:00
namespace_spec.rb Enable/disable Auto DevOps at Group level 2019-03-12 10:15:33 +00:00
note_diff_file_spec.rb
note_spec.rb Hide "Edited" when note is transformed or resolved 2019-03-14 12:46:23 +08:00
notification_recipient_spec.rb
notification_setting_spec.rb Remove rails4 specific code 2018-12-16 10:48:41 +01:00
pages_domain_spec.rb
personal_access_token_spec.rb [master] Persist only SHA digest of PersonalAccessToken#token 2018-10-29 16:06:45 +00:00
pool_repository_spec.rb Leave object pools when destroying projects 2018-12-19 13:21:56 +01:00
programming_language_spec.rb
project_authorization_spec.rb
project_auto_devops_spec.rb Fix coding offence 2018-12-04 19:24:21 +09:00
project_ci_cd_setting_spec.rb
project_custom_attribute_spec.rb
project_daily_statistic_spec.rb Add project http fetch statistics API 2019-02-27 11:52:35 +01:00
project_deploy_token_spec.rb
project_feature_spec.rb Make GitLab pages support access control 2018-10-05 13:41:11 +00:00
project_group_link_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
project_import_data_spec.rb Add clear_credentials method to ProjectImportData 2019-01-14 11:45:46 -08:00
project_import_state_spec.rb Removes all the irrelevant import related code and columns 2018-11-27 12:58:13 +00:00
project_label_spec.rb
project_repository_spec.rb Store hashed storage paths in the database 2018-11-29 16:08:14 +00:00
project_snippet_spec.rb
project_spec.rb Optimize /api/v4/projects endpoint for visibility level 2019-03-27 06:15:33 -05:00
project_statistics_spec.rb
project_team_spec.rb Sent notification only to authorized users 2019-01-31 16:52:49 +01:00
project_wiki_spec.rb Fix Error 500 when user commits Wiki page with no commit message 2019-03-16 21:32:22 -07:00
prometheus_metric_spec.rb Fix and document an RSpec::Parameterized::TableSyntax edge-case 2019-02-20 19:51:26 +01:00
protectable_dropdown_spec.rb
protected_branch_spec.rb Allow protected branch creation via web and API 2019-03-06 12:20:27 +00:00
protected_tag_spec.rb
push_event_payload_spec.rb fix wording 2018-12-03 22:01:30 +09:00
push_event_spec.rb
redirect_route_spec.rb
release_spec.rb Add spec for Releases::Source and Link models 2019-01-04 22:17:02 +09:00
remote_mirror_spec.rb Only send one notification for failed remote mirror 2019-01-15 00:15:40 -08:00
repository_language_spec.rb
repository_spec.rb Revert "Merge branch..." 2019-03-19 09:36:05 +00:00
resource_label_event_spec.rb Add local markdown version 2019-02-06 19:46:59 +01:00
route_spec.rb
sent_notification_spec.rb Add reply to notes to turn into discussions 2019-02-06 10:31:46 +00:00
service_spec.rb Move project services log to a separate file 2018-09-06 14:48:31 -03:00
shard_spec.rb Start tracking shards in the database 2018-11-05 01:30:04 +00:00
snippet_blob_spec.rb
snippet_spec.rb Move embeddable? to model to be used outside view 2018-12-20 14:32:51 +08:00
spam_log_spec.rb
ssh_host_key_spec.rb Allow SshHostKey.find_by to accept string keys 2019-02-04 12:52:22 +00:00
subscription_spec.rb
suggestion_spec.rb Allow suggesting single line changes in diffs 2018-12-13 19:17:19 +00:00
system_note_metadata_spec.rb
term_agreement_spec.rb
timelog_spec.rb
todo_spec.rb Add additional scope check to Todo#for_target spec 2018-11-30 13:47:08 -06:00
tree_spec.rb
trending_project_spec.rb
upload_spec.rb Backport changes from EE 2018-11-07 11:29:31 +01:00
user_agent_detail_spec.rb
user_callout_spec.rb Fix coding offence 2018-12-04 19:24:21 +09:00
user_custom_attribute_spec.rb
user_interacted_project_spec.rb
user_preference_spec.rb Save sorting preference for Issues/MRs in BE 2019-01-28 12:48:05 -06:00
user_spec.rb Add highest_role method to User 2019-03-22 09:54:03 +00:00
user_status_spec.rb
wiki_directory_spec.rb
wiki_page_spec.rb Revert "Merge branch 'revert-e2aa2177' into 'master'" 2018-11-20 12:29:56 +00:00