gitlab-org--gitlab-foss/spec/policies
Stan Hu 6fa5f510e8 Guard against deleted project feature entry
In https://gitlab.com/gitlab-org/gitlab-ce/issues/66482, we see that a
project's `project_feature` association may be lazily loaded and hence
return `nil` if the entry is deleted if the `Project` is already loaded
in memory. To ensure we don't fail hard when this happens, assume all
features are disabled.

We can fix this issue by eager loading the `project_feature` in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32169, but we
shouldn't have to depend on that.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66482
2019-08-26 13:37:42 -07:00
..
application_setting
ci Allow use of legacy triggers with feature flag 2019-07-15 15:05:22 +02:00
clusters Improve cluster policy spec coverage 2019-08-12 12:04:55 +12:00
concerns
namespace Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
award_emoji_policy_spec.rb GraphQL mutations for add, remove and toggle emoji 2019-06-28 12:03:33 +12:00
base_policy_spec.rb Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
board_policy_spec.rb Factorize policy helpers into PolicyHelpers 2019-03-27 15:41:46 +01:00
commit_policy_spec.rb Add frozen_string_literal to new files 2019-03-04 23:19:19 -08:00
deploy_key_policy_spec.rb
deploy_token_policy_spec.rb
environment_policy_spec.rb
global_policy_spec.rb Restrict slash commands to users who can log in 2019-07-19 11:32:06 +02:00
group_member_policy_spec.rb Remove code related to object hierarchy in MySQL 2019-07-25 15:35:06 +08:00
group_policy_spec.rb Remove code related to object hierarchy in MySQL 2019-07-25 15:35:06 +08:00
identity_provider_policy_spec.rb Move out link\unlink ability checks to a policy 2019-03-19 15:38:16 +03:00
issuable_policy_spec.rb Disallow reopening of locked merge requests 2019-03-08 08:34:20 +00:00
issue_policy_spec.rb Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
merge_request_policy_spec.rb Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
namespace_policy_spec.rb Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
note_policy_spec.rb Expose comments on Noteables in GraphQL 2019-06-14 12:36:27 +02:00
personal_snippet_policy_spec.rb Remove the comment_personal_snippet permission 2019-05-02 11:13:42 +01:00
project_policy_spec.rb Guard against deleted project feature entry 2019-08-26 13:37:42 -07:00
project_snippet_policy_spec.rb Factorize policy helpers into PolicyHelpers 2019-03-27 15:41:46 +01:00
project_statistics_policy_spec.rb Do not blindly expose public project statistics 2019-06-14 20:40:21 +00:00
protected_branch_policy_spec.rb
user_policy_spec.rb