Stan Hu
f0400dc7c0
Merge branch '12800-read-and-write-user-admin-notes-via-api-ce' into 'master'
...
CE Backport: Read and write User "Admin notes" via API
See merge request gitlab-org/gitlab-ce!30775
2019-07-16 22:13:26 +00:00
manojmj
ce40c12849
CE: Read and write User "Admin notes" via API
...
This change adds the ability to read and
write admin notes for a user via the
USER API
2019-07-17 01:11:10 +05:30
Adam Hegyi
4959d8fd49
Migrate null values for users.private_profile
...
- Background migration for changing null values to false
- Set false as default value for private_profile DB column
2019-07-15 21:07:54 +00:00
Stan Hu
d6f20b55b8
Add support for creating random passwords in user creation API
...
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
2019-06-27 13:25:37 -07:00
Michael Leopard
8cf85b4bb5
Updating CE repo to include new EE users API changes
...
Updated users API documentation
Moved API level changes to the service level
2019-06-19 20:27:34 +00:00
Imre Farkas
3895e54741
CE port of Move EE specific lines in API::Users
2019-05-28 10:14:26 +00:00
Rubén Dávila
e8da6255d9
Backport some changes from EE
...
MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9815
2019-04-02 23:20:43 -05:00
Yorick Peterse
449d2bb0d8
Backport parameters for API::Users
...
This backports the EE specific parameters for API::Users, and wraps them
in a conditional.
2019-03-26 14:18:29 +01:00
Thiago Presa
538741f230
Add highest_role method to User
2019-03-22 09:54:03 +00:00
Nermin Vehabovic
ff671366cb
Added: Include order by ID desc for tie breakers in pagination
2019-02-16 11:03:42 +01:00
Robert Schilling
a612bd0708
Unify user requirements for API slugs
2019-01-31 11:13:23 +01:00
Robert Schilling
2190704c61
API: Support username with dots
2019-01-15 17:16:03 +01:00
Imre Farkas
f3cd24a9f3
Display impersonation token value only after creation
...
Since we migrated all PersonlAccessTokens to store only its hash in the
DB, the token value can no longer be shown to the user.
2018-11-12 12:16:25 +01:00
Imre Farkas
8d900ade38
Remove PersonalAccessTokensFinder#find_by method
...
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.
2018-11-05 11:36:45 +01:00
William George
1b153d497b
Make getting a user by the username case insensitive
2018-10-18 09:06:44 +00:00
Douwe Maan
9fcd903b60
Merge branch 'features/unauth-access-ssh-keys' into 'master'
...
List public ssh keys by id or username without authentication
See merge request gitlab-org/gitlab-ce!20118
2018-10-05 08:41:04 +00:00
Ronald Claveau
7d55c1353d
List public ssh keys by id or username without authentication
2018-10-03 19:28:13 +02:00
Rémy Coutable
c874a48134
Merge branch 'lib-api-frozen-string-enable' into 'master'
...
Enable frozen string in lib/api and lib/backup
See merge request gitlab-org/gitlab-ce!22005
2018-10-01 16:39:42 +00:00
Alexis Reigel
801fe04be7
allow users api to set public_email
2018-10-01 13:24:16 +02:00
gfyoung
3836d69119
Enable frozen string in lib/api and lib/backup
...
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
2018-09-29 21:04:50 -07:00
Alexis Reigel
921c96ab0c
remove obsolete parameter from users api
2018-09-26 17:29:30 +02:00
Robert Speicher
c7d1eef671
Merge branch 'rubocop-code-reuse' into 'master'
...
Add RuboCop cops to enforce code reusing rules
See merge request gitlab-org/gitlab-ce!21391
2018-09-13 14:53:05 +00:00
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
...
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Stan Hu
ced2a932d7
Add ability to skip user email confirmation with API
...
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
2018-09-10 22:41:53 -07:00
Bob Van Landuyt
b4c4b48a8c
Allow users to set a status
...
This can be done trough the API for the current user, or on the
profile page.
2018-07-30 15:01:26 +02:00
JX Terry
99011a61cf
Add an option to have a private profile on GitLab
2018-07-24 12:46:19 +00:00
Marko, Peter
6d72bb3832
Add min_access_level filter to projects API
...
Signed-off-by: Marko, Peter <peter.marko@siemens.com>
2018-07-23 20:57:50 +02:00
Lin Jen-Shin
4ee08b77bc
Updates from `rubocop -a`
2018-07-09 21:13:08 +08:00
Francisco Javier López
df45623b34
Restoring user v3 endpoint
2018-06-13 08:25:01 +00:00
Dmitriy Zaporozhets
c87c55bb35
Add 2FA filter to users API for admins only
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-04-23 11:54:45 +03:00
Markus Koller
b7cd99c376
Allow including custom attributes in API responses
2018-02-08 13:30:34 +01:00
Dmitriy Zaporozhets
28ef8cc56e
Add sorting options for /users API (admin only)
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-02-06 16:00:33 +02:00
Yorick Peterse
cca61980d5
Track and act upon the number of executed queries
...
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.
2018-02-01 17:00:46 +01:00
Francisco Javier López
7c2b7296d4
Added default order to UserFinder
2017-12-04 09:49:53 +00:00
Daniel Juarez
0b9e1e1662
Skip confirmation user api
2017-11-21 15:47:58 +00:00
Douwe Maan
fbdf057898
Remove private_token from API user entity
2017-11-02 11:39:01 +01:00
Douwe Maan
0c0c2ecd99
Merge branch 'master' into 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
2017-10-05 12:48:22 +02:00
Markus Koller
e9eae3eb0d
Support custom attributes on users
2017-09-28 16:49:42 +00:00
James Lopez
1dcb711110
refactor emails service
2017-09-28 08:46:39 +02:00
James Lopez
67d06dee30
refactor users update service
2017-09-28 08:46:39 +02:00
James Lopez
9621dd0c9d
refactor services to match EE signature
2017-09-28 08:46:39 +02:00
Tiago Botelho
d70b7a490d
find_user users helper method no longer overrides find_user API helper method.
2017-09-26 19:14:19 +01:00
Brett Walker
b2d5379161
fix calls to Emails::DestroyService
2017-09-23 15:24:53 +02:00
Brett Walker
f9f4672275
Send a confirmation email when the user adds a secondary email address. Utilizes the Devise `confirmable` capabilities. Issue #37385
2017-09-23 15:23:11 +02:00
Robert Speicher
3cbaed97f1
Ensure we use `Entities::User` for non-admin `users/:id` API requests
2017-09-15 19:34:52 -04:00
Robert Schilling
97371848c5
API: Add GPG key management for admins
2017-09-05 14:30:53 +02:00
Robert Schilling
b69579742b
API: Add GPG key management
2017-09-05 14:30:53 +02:00
Robert Schilling
dcd4ea473c
Update remaining endpoints
2017-08-28 17:10:30 +02:00
Robert Schilling
e80313f9ee
Conditionally destroy a ressource
2017-08-28 16:40:25 +02:00
Robert Schilling
998afa5f74
API: Respect the 'If-Unmodified-Since' for delete endpoints
2017-08-28 16:40:25 +02:00