Refactor GraphQL CI variables to use interfaces
There is a growing number of differences between the GraphQL functionality for different variable types. Moving to an interface pattern now will spare us from having to write a lot of specific logic for checking the variable type
显示
- app/assets/javascripts/graphql_shared/possible_types.json 6 个添加, 0 个删除app/assets/javascripts/graphql_shared/possible_types.json
- app/graphql/types/ci/group_variable_type.rb 16 个添加, 0 个删除app/graphql/types/ci/group_variable_type.rb
- app/graphql/types/ci/instance_variable_type.rb 24 个添加, 0 个删除app/graphql/types/ci/instance_variable_type.rb
- app/graphql/types/ci/job_type.rb 1 个添加, 1 个删除app/graphql/types/ci/job_type.rb
- app/graphql/types/ci/manual_variable_type.rb 24 个添加, 0 个删除app/graphql/types/ci/manual_variable_type.rb
- app/graphql/types/ci/project_variable_type.rb 16 个添加, 0 个删除app/graphql/types/ci/project_variable_type.rb
- app/graphql/types/ci/variable_interface.rb 3 个添加, 11 个删除app/graphql/types/ci/variable_interface.rb
- app/graphql/types/group_type.rb 1 个添加, 1 个删除app/graphql/types/group_type.rb
- app/graphql/types/project_type.rb 1 个添加, 1 个删除app/graphql/types/project_type.rb
- app/graphql/types/query_type.rb 1 个添加, 1 个删除app/graphql/types/query_type.rb
- doc/api/graphql/reference/index.md 185 个添加, 42 个删除doc/api/graphql/reference/index.md
- spec/graphql/types/ci/group_variable_type_spec.rb 9 个添加, 0 个删除spec/graphql/types/ci/group_variable_type_spec.rb
- spec/graphql/types/ci/instance_variable_type_spec.rb 7 个添加, 0 个删除spec/graphql/types/ci/instance_variable_type_spec.rb
- spec/graphql/types/ci/manual_variable_type_spec.rb 7 个添加, 0 个删除spec/graphql/types/ci/manual_variable_type_spec.rb
- spec/graphql/types/ci/project_variable_type_spec.rb 9 个添加, 0 个删除spec/graphql/types/ci/project_variable_type_spec.rb
- spec/graphql/types/ci/variable_interface_spec.rb 3 个添加, 3 个删除spec/graphql/types/ci/variable_interface_spec.rb
加载中
想要评论请 注册 或 登录