Inline helper methods to the npm endpoint classes
This is a follow-up to https://gitlab.com/gitlab-org/gitlab/-/merge_requests/154577 Like the earlier MR, this is also a refactoring to remove the `if endpoint_scope...` checks in the code. For this MR, as the title says, we're removing methods in the shared helper module into inline helper methods in the individual endpoint (project, group, instance) classes.
显示
- lib/api/concerns/packages/npm_endpoints.rb 5 个添加, 6 个删除lib/api/concerns/packages/npm_endpoints.rb
- lib/api/concerns/packages/npm_namespace_endpoints.rb 31 个添加, 1 个删除lib/api/concerns/packages/npm_namespace_endpoints.rb
- lib/api/helpers/packages/npm.rb 0 个添加, 86 个删除lib/api/helpers/packages/npm.rb
- lib/api/npm_group_packages.rb 4 个添加, 6 个删除lib/api/npm_group_packages.rb
- lib/api/npm_instance_packages.rb 4 个添加, 7 个删除lib/api/npm_instance_packages.rb
- lib/api/npm_project_packages.rb 15 个添加, 3 个删除lib/api/npm_project_packages.rb
- spec/lib/api/helpers/packages/npm_spec.rb 2 个添加, 125 个删除spec/lib/api/helpers/packages/npm_spec.rb
加载中
想要评论请 注册 或 登录