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
board_policy_spec.rb
commit_policy_spec.rb
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
issuable_policy_spec.rb
issue_policy_spec.rb
merge_request_policy_spec.rb
namespace_policy_spec.rb Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
note_policy_spec.rb
personal_snippet_policy_spec.rb
project_policy_spec.rb Guard against deleted project feature entry 2019-08-26 13:37:42 -07:00
project_snippet_policy_spec.rb
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