Deprecate confidential attribute for notes
This deprecates the `confidential` parameter for the Notes API in favour of `internal`. This affects the GraphQL API, REST API, and internal Notes creation API. We also expose the `internal` attribute now for a `Note` and the behaviour of `internal` and `confidential` is the same. In the case of submitting a request to create a note with `internal: true`, and `confidential: false`, `internal` overrules the `confidential` parameter. In a follow-up work, the remaining mentions of `confidential` in the Services, Models, and Database column will be renamed. Changelog: deprecated
显示
- app/controllers/concerns/notes_actions.rb 2 个添加, 1 个删除app/controllers/concerns/notes_actions.rb
- app/graphql/mutations/notes/create/base.rb 8 个添加, 2 个删除app/graphql/mutations/notes/create/base.rb
- app/graphql/types/notes/note_type.rb 11 个添加, 1 个删除app/graphql/types/notes/note_type.rb
- app/services/notes/build_service.rb 8 个添加, 0 个删除app/services/notes/build_service.rb
- doc/api/graphql/reference/index.md 8 个添加, 4 个删除doc/api/graphql/reference/index.md
- doc/api/notes.md 12 个添加, 6 个删除doc/api/notes.md
- ee/spec/requests/api/graphql/mutations/notes/create/note_spec.rb 18 个添加, 6 个删除.../requests/api/graphql/mutations/notes/create/note_spec.rb
- lib/api/entities/note.rb 1 个添加, 0 个删除lib/api/entities/note.rb
- lib/api/notes.rb 3 个添加, 2 个删除lib/api/notes.rb
- spec/controllers/projects/notes_controller_spec.rb 57 个添加, 14 个删除spec/controllers/projects/notes_controller_spec.rb
- spec/fixtures/api/schemas/entities/discussion.json 2 个添加, 1 个删除spec/fixtures/api/schemas/entities/discussion.json
- spec/fixtures/api/schemas/public_api/v4/notes.json 2 个添加, 1 个删除spec/fixtures/api/schemas/public_api/v4/notes.json
- spec/graphql/types/notes/note_type_spec.rb 1 个添加, 0 个删除spec/graphql/types/notes/note_type_spec.rb
- spec/requests/api/graphql/mutations/notes/create/note_spec.rb 16 个添加, 8 个删除.../requests/api/graphql/mutations/notes/create/note_spec.rb
- spec/services/notes/build_service_spec.rb 9 个添加, 1 个删除spec/services/notes/build_service_spec.rb
- spec/services/notes/create_service_spec.rb 48 个添加, 13 个删除spec/services/notes/create_service_spec.rb
- spec/support/shared_examples/graphql/notes_creation_shared_examples.rb 1 个添加, 0 个删除...shared_examples/graphql/notes_creation_shared_examples.rb
- spec/support/shared_examples/requests/api/notes_shared_examples.rb 21 个添加, 6 个删除...ort/shared_examples/requests/api/notes_shared_examples.rb
加载中
想要评论请 注册 或 登录