Reuse existing projects & groups resolvers for Organization
Here we have changed the base class of Organizations::GroupsResolver and Organizations::ProjectsResolver from BaseResolver to GroupsResolver and ProjectsResolver respectively to use the existing functionalities of both the resolvers. We also need a `search` argument in the Organizations::ProjectsResolver and changing its base class added this argument as well. The `GroupsResolver` was missing the sort argument which has been added as well. Changelog: added
显示
- app/assets/javascripts/organizations/shared/components/groups_view.vue 1 个添加, 1 个删除...vascripts/organizations/shared/components/groups_view.vue
- app/assets/javascripts/organizations/shared/graphql/queries/groups.query.graphql 1 个添加, 1 个删除...organizations/shared/graphql/queries/groups.query.graphql
- app/finders/groups_finder.rb 8 个添加, 1 个删除app/finders/groups_finder.rb
- app/graphql/resolvers/groups_resolver.rb 11 个添加, 4 个删除app/graphql/resolvers/groups_resolver.rb
- app/graphql/resolvers/organizations/groups_resolver.rb 6 个添加, 20 个删除app/graphql/resolvers/organizations/groups_resolver.rb
- app/graphql/resolvers/organizations/projects_resolver.rb 8 个添加, 14 个删除app/graphql/resolvers/organizations/projects_resolver.rb
- app/graphql/types/organizations/group_sort_enum.rb 0 个添加, 24 个删除app/graphql/types/organizations/group_sort_enum.rb
- doc/api/graphql/reference/index.md 12 个添加, 20 个删除doc/api/graphql/reference/index.md
- spec/finders/groups_finder_spec.rb 23 个添加, 2 个删除spec/finders/groups_finder_spec.rb
- spec/frontend/organizations/shared/components/groups_view_spec.js 3 个添加, 3 个删除...ntend/organizations/shared/components/groups_view_spec.js
- spec/graphql/types/organizations/group_sort_enum_spec.rb 0 个添加, 26 个删除spec/graphql/types/organizations/group_sort_enum_spec.rb
- spec/requests/api/graphql/groups_query_spec.rb 33 个添加, 0 个删除spec/requests/api/graphql/groups_query_spec.rb
- spec/requests/api/graphql/organizations/organization_query_spec.rb 41 个添加, 18 个删除...ests/api/graphql/organizations/organization_query_spec.rb
加载中
想要评论请 注册 或 登录