Add a GraphQL type for the audit event definitions
We now have audit event type YMLs that are defined under [`ee/config/audit_events/types/*`][0] and [`config/audit_events/types/*`][1]. We want to expose these type definitions in the GraphQL API. This change adds a GraphQL type for the audit event definitions along with exposing the yaml definitions via and added query resolver Rubocop required a policy to be added, however this data is already public via the codebase, so I wasn't sure what to do there. Open to suggestions [0]:https://gitlab.com/gitlab-org/gitlab/-/tree/master/ee/config/audit_events/types [1]:https://gitlab.com/gitlab-org/gitlab/-/tree/master/config/audit_events/types Changelog: added
显示
- app/graphql/resolvers/audit_events/audit_event_definitions_resolver.rb 13 个添加, 0 个删除...esolvers/audit_events/audit_event_definitions_resolver.rb
- app/graphql/types/audit_events/definition_type.rb 50 个添加, 0 个删除app/graphql/types/audit_events/definition_type.rb
- app/graphql/types/query_type.rb 6 个添加, 0 个删除app/graphql/types/query_type.rb
- app/policies/audit_events/definition_policy.rb 11 个添加, 0 个删除app/policies/audit_events/definition_policy.rb
- doc/api/graphql/reference/index.md 50 个添加, 0 个删除doc/api/graphql/reference/index.md
- lib/gitlab/audit/type/definition.rb 4 个添加, 0 个删除lib/gitlab/audit/type/definition.rb
- spec/graphql/resolvers/audit_events/audit_event_definitions_resolver_spec.rb 22 个添加, 0 个删除...ers/audit_events/audit_event_definitions_resolver_spec.rb
- spec/graphql/types/audit_events/definition_type_spec.rb 15 个添加, 0 个删除spec/graphql/types/audit_events/definition_type_spec.rb
- spec/requests/api/graphql/audit_events/definitions_spec.rb 24 个添加, 0 个删除spec/requests/api/graphql/audit_events/definitions_spec.rb
- spec/support/shared_contexts/graphql/types/query_type_shared_context.rb 2 个添加, 1 个删除...hared_contexts/graphql/types/query_type_shared_context.rb
加载中
想要评论请 注册 或 登录