Filter out system notes referencing inaccessible work items
Usually if there are system notes that reference an item that cannot be accessed by the user we filter out that system note altogether. This was not happening for system notes about adding or removing a child work item or a parent work item.
显示
- app/models/group.rb 3 个添加, 0 个删除app/models/group.rb
- app/models/system_note_metadata.rb 4 个添加, 0 个删除app/models/system_note_metadata.rb
- app/policies/issue_policy.rb 4 个添加, 0 个删除app/policies/issue_policy.rb
- ee/spec/models/issue_spec.rb 24 个添加, 0 个删除ee/spec/models/issue_spec.rb
- ee/spec/services/issuable/discussions_list_service_spec.rb 136 个添加, 0 个删除ee/spec/services/issuable/discussions_list_service_spec.rb
- spec/features/projects/work_items/work_item_children_spec.rb 3 个添加, 0 个删除spec/features/projects/work_items/work_item_children_spec.rb
- spec/models/issue_spec.rb 24 个添加, 2 个删除spec/models/issue_spec.rb
- spec/policies/issue_policy_spec.rb 65 个添加, 65 个删除spec/policies/issue_policy_spec.rb
- spec/policies/work_item_policy_spec.rb 30 个添加, 2 个删除spec/policies/work_item_policy_spec.rb
- spec/support/shared_examples/models/concerns/participable_shared_examples.rb 1 个添加, 2 个删除..._examples/models/concerns/participable_shared_examples.rb
加载中
想要评论请 注册 或 登录