summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '12800-read-and-write-user-admin-notes-via-api-ce' into 'master'Stan Hu2019-07-161-4/+4
|\ | | | | | | | | CE Backport: Read and write User "Admin notes" via API See merge request gitlab-org/gitlab-ce!30775
| * CE: Read and write User "Admin notes" via APImanojmj2019-07-171-4/+4
| | | | | | | | | | | | This change adds the ability to read and write admin notes for a user via the USER API
* | Migrate null values for users.private_profileAdam Hegyi2019-07-151-1/+1
|/ | | | | - Background migration for changing null values to false - Set false as default value for private_profile DB column
* Add support for creating random passwords in user creation APIsh-add-force-random-password-user-apiStan Hu2019-06-271-0/+1
| | | | | | | | To avoid having to specify an actual password to create users, admins can now use the `force_random_password` parameter to let Devise generate a password. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63826
* Updating CE repo to include new EE users API changesMichael Leopard2019-06-191-14/+1
| | | | | Updated users API documentation Moved API level changes to the service level
* CE port of Move EE specific lines in API::UsersImre Farkas2019-05-281-8/+4
|
* Backport some changes from EE3314-add-on-runner-minutes-for-gitlab-com-ceRubén Dávila2019-04-021-0/+1
| | | | MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9815
* Backport parameters for API::UsersYorick Peterse2019-03-261-0/+8
| | | | | This backports the EE specific parameters for API::Users, and wraps them in a conditional.
* Add highest_role method to UserThiago Presa2019-03-221-1/+1
|
* Added: Include order by ID desc for tie breakers in paginationNermin Vehabovic2019-02-161-1/+1
|
* Unify user requirements for API slugsRobert Schilling2019-01-311-3/+3
|
* API: Support username with dotsRobert Schilling2019-01-151-1/+1
|
* Display impersonation token value only after creationif-53347_fix_impersonation_tokensImre Farkas2018-11-121-2/+2
| | | | | Since we migrated all PersonlAccessTokens to store only its hash in the DB, the token value can no longer be shown to the user.
* Remove PersonalAccessTokensFinder#find_by methoduse_tokenauthenticatable_method_for_token_lookupImre Farkas2018-11-051-3/+1
| | | | | | find_by_token is overriden by TokenAuthenticatable which can be easily missed or confused with #find_by(:token) defined by ActiveRecord. First step for safer usage is to remove #find_by.
* Make getting a user by the username case insensitiveWilliam George2018-10-181-8/+6
|
* Merge branch 'features/unauth-access-ssh-keys' into 'master'Douwe Maan2018-10-051-4/+2
|\ | | | | | | | | List public ssh keys by id or username without authentication See merge request gitlab-org/gitlab-ce!20118
| * List public ssh keys by id or username without authenticationRonald Claveau2018-10-031-4/+2
| |
* | Merge branch 'lib-api-frozen-string-enable' into 'master'Rémy Coutable2018-10-011-0/+2
|\ \ | | | | | | | | | | | | Enable frozen string in lib/api and lib/backup See merge request gitlab-org/gitlab-ce!22005
| * | Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| |/ | | | | | | | | | | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* | allow users api to set public_emailAlexis Reigel2018-10-011-0/+1
| |
* | remove obsolete parameter from users apiAlexis Reigel2018-09-261-1/+0
|/
* Merge branch 'rubocop-code-reuse' into 'master'Robert Speicher2018-09-131-0/+56
|\ | | | | | | | | Add RuboCop cops to enforce code reusing rules See merge request gitlab-org/gitlab-ce!21391
| * Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+56
| | | | | | | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* | Add ability to skip user email confirmation with APIStan Hu2018-09-101-0/+1
|/ | | | | | | | This gives admins the ability to send a `skip_confirmation` flag in the `POST /users/:id/email` API endpoint to skip the verification step and assume the given e-mail address is verified. Closes #50876
* Allow users to set a statusBob Van Landuyt2018-07-301-0/+35
| | | | | This can be done trough the API for the current user, or on the profile page.
* Add an option to have a private profile on GitLabJX Terry2018-07-241-5/+6
|
* Add min_access_level filter to projects APIMarko, Peter2018-07-231-0/+1
| | | | Signed-off-by: Marko, Peter <peter.marko@siemens.com>
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-1/+1
|
* Restoring user v3 endpointFrancisco Javier López2018-06-131-11/+15
|
* Add 2FA filter to users API for admins onlyDmitriy Zaporozhets2018-04-231-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow including custom attributes in API responsesMarkus Koller2018-02-081-1/+8
|
* Add sorting options for /users API (admin only)42669-allow-order_by-users-in-gitlab-apiDmitriy Zaporozhets2018-02-061-1/+18
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Track and act upon the number of executed queriesquery-countsYorick Peterse2018-02-011-0/+2
| | | | | | | | | | | This ensures that we have more visibility in the number of SQL queries that are executed in web requests. The current threshold is hardcoded to 100 as we will rarely (maybe once or twice) change it. In production and development we use Sentry if enabled, in the test environment we raise an error. This feature is also only enabled in production/staging when running on GitLab.com as it's not very useful to other users.
* Added default order to UserFinderFrancisco Javier López2017-12-041-0/+2
|
* Skip confirmation user apiDaniel Juarez2017-11-211-1/+2
|
* Remove private_token from API user entityDouwe Maan2017-11-021-3/+1
|
* Merge branch 'master' into ↵Douwe Maan2017-10-051-11/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | digitalmoksha/gitlab-ce-feature/verify_secondary_emails # Conflicts: # app/controllers/admin/users_controller.rb # app/controllers/confirmations_controller.rb # app/controllers/profiles/emails_controller.rb # app/models/user.rb # app/services/emails/base_service.rb # app/services/emails/destroy_service.rb # app/views/devise/mailer/confirmation_instructions.html.haml # lib/api/users.rb # spec/services/emails/destroy_service_spec.rb
| * Support custom attributes on usersMarkus Koller2017-09-281-0/+2
| |
| * refactor emails servicerefactor-servicesJames Lopez2017-09-281-4/+4
| |
| * refactor users update serviceJames Lopez2017-09-281-1/+1
| |
| * refactor services to match EE signatureJames Lopez2017-09-281-5/+5
| |
| * find_user users helper method no longer overrides find_user API helper method.37467-helper-method-from-users-endpoint-overrides-api-helper-methodTiago Botelho2017-09-261-2/+2
| |
* | fix calls to Emails::DestroyServiceBrett Walker2017-09-231-2/+2
| |
* | Send a confirmation email when the user adds a secondary email address. ↵Brett Walker2017-09-231-2/+0
|/ | | | Utilizes the Devise `confirmable` capabilities. Issue #37385
* Ensure we use `Entities::User` for non-admin `users/:id` API requestsRobert Speicher2017-09-151-1/+1
|
* API: Add GPG key management for adminsRobert Schilling2017-09-051-0/+80
|
* API: Add GPG key managementRobert Schilling2017-09-051-0/+70
|
* Update remaining endpointsRobert Schilling2017-08-281-2/+5
|
* Conditionally destroy a ressourceRobert Schilling2017-08-281-34/+13
|
* API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+28
|