Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-01Track and act upon the number of executed queriesYorick Peterse
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.
2017-12-04Added default order to UserFinderFrancisco Javier López
2017-11-21Skip confirmation user apiDaniel Juarez
2017-11-02Remove private_token from API user entityDouwe Maan
2017-10-05Merge branch 'master' into ↵Douwe Maan
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-09-28Support custom attributes on usersMarkus Koller
2017-09-28refactor emails serviceJames Lopez
2017-09-28refactor users update serviceJames Lopez
2017-09-28refactor services to match EE signatureJames Lopez
2017-09-26find_user users helper method no longer overrides find_user API helper method.Tiago Botelho
2017-09-23fix calls to Emails::DestroyServiceBrett Walker
2017-09-23Send a confirmation email when the user adds a secondary email address. ↵Brett Walker
Utilizes the Devise `confirmable` capabilities. Issue #37385
2017-09-16Ensure we use `Entities::User` for non-admin `users/:id` API requestsRobert Speicher
2017-09-05API: Add GPG key management for adminsRobert Schilling
2017-09-05API: Add GPG key managementRobert Schilling
2017-08-28Update remaining endpointsRobert Schilling
2017-08-28Conditionally destroy a ressourceRobert Schilling
2017-08-28API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling
2017-08-11Include the `is_admin` field in the `GET /users/:id` API when current user ↵Rémy Coutable
is an admin Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-20Update grape gemDmitriy Zaporozhets
New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-12Return `is_admin` attribute in the GET /user endpoint for adminsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-07fix specsJames Lopez
2017-07-07add created at filter logic to users finder and APIJames Lopez
2017-07-04Merge branch 'master' into '33580-fix-api-scoping'Douwe Maan
# Conflicts: # lib/api/users.rb
2017-07-04Simplify authentication logic in the v4 users API for !12445.Timothy Andrew
- Rather than using an explicit check to turn off authentication for the `/users` endpoint, simply call `authenticate_non_get!`. - All `GET` endpoints we wish to restrict already call `authenticated_as_admin!`, and so remain inacessible to anonymous users. - This _does_ open up the `/users/:id` endpoint to anonymous access. It contains the same access check that `/users` users, and so is safe for use here. - More context: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12445#note_34031323
2017-06-30Merge remote-tracking branch 'origin/master' into ↵Timothy Andrew
34141-allow-unauthenticated-access-to-the-users-api - Modify policy code to work with the `DeclarativePolicy` refactor in 37c401433b76170f0150d70865f1f4584db01fa8.
2017-06-30Implement review comments for !12445 from @godfat and @rymai.Timothy Andrew
- Use `GlobalPolicy` to authorize the users that a non-authenticated user can fetch from `/api/v4/users`. We allow access if the `Gitlab::VisibilityLevel::PUBLIC` visibility level is not restricted. - Further, as before, `/api/v4/users` is only accessible to unauthenticated users if the `username` parameter is passed. - Turn off `authenticate!` for the `/api/v4/users` endpoint by matching on the actual route + method, rather than the description. - Change the type of `current_user` check in `UsersFinder` to be more compatible with EE.
2017-06-28Initial attempt at refactoring API scope declarations.Timothy Andrew
- Declaring an endpoint's scopes in a `before` block has proved to be unreliable. For example, if we're accessing the `API::Users` endpoint - code in a `before` block in `API::API` wouldn't be able to see the scopes set in `API::Users` since the `API::API` `before` block runs first. - This commit moves these declarations to the class level, since they don't need to change once set.
2017-06-26Allow unauthenticated access to the `/api/v4/users` API.Timothy Andrew
- The issue filtering frontend code needs access to this API for non-logged-in users + public projects. It uses the API to fetch information for a user by username. - We don't authenticate this API anymore, but instead - if the `current_user` is not present: - Verify that the `username` parameter has been passed. This disallows an unauthenticated user from grabbing a list of all users on the instance. The `UsersFinder` class performs an exact match on the `username`, so we are guaranteed to get 0 or 1 users. - Verify that the resulting user (if any) is accessible to be viewed publicly by calling `can?(current_user, :read_user, user)`
2017-06-24fix spec failuresJames Lopez
2017-06-23fix spec failuresJames Lopez
2017-06-23refactor update user service not to do auth checksJames Lopez
2017-06-23fix spec failuresJames Lopez
2017-06-23refactor emails serviceJames Lopez
2017-06-23update missing email actionsJames Lopez
2017-06-23fix specsJames Lopez
2017-06-23update to use emails destroy serviceJames Lopez
2017-06-23fixed specsJames Lopez
2017-06-23added service in the rest of controllers and classesJames Lopez
2017-06-23fix api and controller issuesJames Lopez
2017-06-23update notification settings, fix api specsJames Lopez
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-20Re-instate is_admin flag in users API is current user is an adminMike Ricketts
2017-06-16Accept image for avatar in user APIvanadium23
2017-06-07Merge branch '2563-backport-ee1942' into 'master'Grzegorz Bizon
Backport some EE changes from adding shared_runners_minutes_limit to the API Closes gitlab-ee#2563 See merge request !11936
2017-06-06Backport https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1942Lin Jen-Shin
2017-06-06Introduce an Events APIMark Fletcher
* Meld the following disparate endpoints: * `/projects/:id/events` * `/events` * `/users/:id/events` + Add result filtering to the above endpoints: * action * target_type * before and after dates
2017-06-05Refactor the DeleteUserWorkerNick Thomas
2017-06-02Allow users to be hard-deleted from the APINick Thomas
2017-05-15Create a Users FinderGeorge Andrinopoulos