Add a new method to `Api.js`: `projectUsers`
requested to merge ee-2502-refactor-ee-app-assets-javascripts-approvals-components-approvers_select-vue-to-remove-approverusers into master
What does this MR do?
Adds a new method to Api.js
: projectUsers
This new method can be used to fetch all users under a particular project. In the future this function can be used to replace the current instances of /autocomplete/users
endpoint.
This new method is backported from gitlab-ee!15146 in order to fix a tech debt issue in EE: gitlab-ee#2502
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry for user-facing changes, or community contribution. Check the link for other scenarios. -
Documentation created/updated or follow-up review issue created -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content -
backend Add support for attribute skip_users
in the api endpoint/api/v4/project/:id/users
Performance and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
Others
-
create a new issue to clear the ~"technical debt" for other functions in the file.
Edited by Himanshu Kapoor