GitLab Bot
65be6f9dd4
Add latest changes from gitlab-org/gitlab@master
2021-04-02 21:09:22 +00:00
GitLab Bot
63eb68d335
Add latest changes from gitlab-org/gitlab@master
2021-04-01 00:09:32 +00:00
GitLab Bot
9c918ae5c6
Add latest changes from gitlab-org/gitlab@master
2021-03-31 21:09:15 +00:00
GitLab Bot
889bf7a0ee
Add latest changes from gitlab-org/gitlab@master
2021-03-16 18:11:53 +00:00
GitLab Bot
c1ccb69fc9
Add latest changes from gitlab-org/gitlab@master
2021-02-25 06:10:51 +00:00
GitLab Bot
958d8a85d3
Add latest changes from gitlab-org/gitlab@master
2021-02-24 15:11:10 +00:00
GitLab Bot
c37dd28c4a
Add latest changes from gitlab-org/gitlab@master
2021-02-23 18:10:40 +00:00
GitLab Bot
8215fc964a
Add latest changes from gitlab-org/gitlab@master
2021-02-16 12:09:03 +00:00
GitLab Bot
367e7db836
Add latest changes from gitlab-org/gitlab@master
2021-02-15 21:08:59 +00:00
GitLab Bot
6d533fe8b4
Add latest changes from gitlab-org/gitlab@master
2021-02-12 18:08:59 +00:00
GitLab Bot
2d66c59d59
Add latest changes from gitlab-org/gitlab@master
2021-02-02 18:09:42 +00:00
GitLab Bot
f23a9a17ed
Add latest changes from gitlab-org/gitlab@master
2021-01-18 12:10:41 +00:00
GitLab Bot
a40c1d5046
Add latest changes from gitlab-org/gitlab@master
2020-12-24 12:10:03 +00:00
GitLab Bot
15ea3fec22
Add latest changes from gitlab-org/gitlab@master
2020-11-23 12:09:11 +00:00
GitLab Bot
127e6d9610
Add latest changes from gitlab-org/gitlab@master
2020-11-16 12:09:05 +00:00
GitLab Bot
ce27ba9f6c
Add latest changes from gitlab-org/gitlab@master
2020-10-29 18:09:11 +00:00
GitLab Bot
a683d38a36
Add latest changes from gitlab-org/gitlab@master
2020-10-26 18:08:27 +00:00
GitLab Bot
6a0085290e
Add latest changes from gitlab-org/gitlab@master
2020-10-15 00:08:42 +00:00
GitLab Bot
4a159b9f98
Add latest changes from gitlab-org/gitlab@master
2020-10-14 06:08:33 +00:00
GitLab Bot
1850d48925
Add latest changes from gitlab-org/gitlab@master
2020-10-07 18:08:34 +00:00
GitLab Bot
ae4a39e57e
Add latest changes from gitlab-org/gitlab@master
2020-09-30 00:09:53 +00:00
GitLab Bot
a865379008
Add latest changes from gitlab-org/gitlab@master
2020-09-07 12:08:27 +00:00
GitLab Bot
477c2c2604
Add latest changes from gitlab-org/gitlab@master
2020-09-04 09:08:38 +00:00
GitLab Bot
2368893df7
Add latest changes from gitlab-org/gitlab@master
2020-08-31 15:10:41 +00:00
GitLab Bot
0bfb62457b
Add latest changes from gitlab-org/gitlab@master
2020-08-19 06:10:04 +00:00
GitLab Bot
b2cb8c48c5
Add latest changes from gitlab-org/gitlab@master
2020-07-10 00:09:13 +00:00
GitLab Bot
777f6da99a
Add latest changes from gitlab-org/gitlab@master
2020-06-29 21:09:07 +00:00
GitLab Bot
b7e512c897
Add latest changes from gitlab-org/gitlab@master
2020-06-23 12:09:20 +00:00
GitLab Bot
6046a605fd
Add latest changes from gitlab-org/gitlab@master
2020-06-22 12:08:47 +00:00
GitLab Bot
235dc61f47
Add latest changes from gitlab-org/gitlab@master
2020-06-19 12:09:07 +00:00
GitLab Bot
8eef083ccd
Add latest changes from gitlab-org/gitlab@master
2020-06-18 12:09:25 +00:00
GitLab Bot
c61d90dbfa
Add latest changes from gitlab-org/gitlab@master
2020-06-17 15:08:36 +00:00
GitLab Bot
10fd79745d
Add latest changes from gitlab-org/gitlab@master
2020-06-16 15:08:32 +00:00
GitLab Bot
3caf5a8a00
Add latest changes from gitlab-org/gitlab@master
2020-06-15 18:08:43 +00:00
GitLab Bot
6744162376
Add latest changes from gitlab-org/gitlab@master
2020-06-15 12:08:44 +00:00
GitLab Bot
340fd2966e
Add latest changes from gitlab-org/gitlab@master
2020-06-04 00:08:17 +00:00
GitLab Bot
4c788f43cb
Add latest changes from gitlab-org/gitlab@master
2020-05-28 09:08:05 +00:00
GitLab Bot
2e4d8b3449
Add latest changes from gitlab-org/gitlab@master
2020-04-28 03:09:53 +00:00
GitLab Bot
f569792df8
Add latest changes from gitlab-org/gitlab@master
2020-04-27 18:09:41 +00:00
GitLab Bot
221b529789
Add latest changes from gitlab-org/gitlab@master
2020-04-15 09:09:46 +00:00
GitLab Bot
e4bf776a88
Add latest changes from gitlab-org/gitlab@master
2020-03-23 09:09:42 +00:00
GitLab Bot
8957ace315
Add latest changes from gitlab-org/gitlab@master
2020-03-14 00:09:30 +00:00
GitLab Bot
73f2527660
Add latest changes from gitlab-org/gitlab@master
2020-03-07 03:08:03 +00:00
GitLab Bot
c6c7437861
Add latest changes from gitlab-org/gitlab@master
2020-03-04 12:07:52 +00:00
GitLab Bot
5366964a10
Add latest changes from gitlab-org/gitlab@master
2020-02-14 12:09:03 +00:00
GitLab Bot
6168721025
Add latest changes from gitlab-org/gitlab@master
2020-02-07 00:09:12 +00:00
GitLab Bot
a89cb5cbdd
Add latest changes from gitlab-org/gitlab@master
2020-02-06 21:08:48 +00:00
GitLab Bot
180cd023a1
Add latest changes from gitlab-org/gitlab@master
2020-01-22 15:08:48 +00:00
GitLab Bot
2ee5991b42
Add latest changes from gitlab-org/gitlab@master
2020-01-20 09:08:32 +00:00
GitLab Bot
aa0f0e9921
Add latest changes from gitlab-org/gitlab@master
2020-01-16 18:08:46 +00:00
GitLab Bot
016af097cb
Add latest changes from gitlab-org/gitlab@master
2019-12-14 15:07:56 +00:00
GitLab Bot
2e3cbf7d89
Add latest changes from gitlab-org/gitlab@master
2019-12-12 00:07:43 +00:00
GitLab Bot
308146dc39
Add latest changes from gitlab-org/gitlab@master
2019-10-10 00:06:44 +00:00
GitLab Bot
80f61b4035
Add latest changes from gitlab-org/gitlab@master
2019-09-18 14:02:45 +00:00
Alessio Caiazza
daf7810e2e
Add Scalability/FileUploads cop
...
This cop prevents you from using file in API, it points you to the
development documentation about workhorse file acceleration.
2019-09-10 16:24:10 +00:00
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