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
2016-12-13Be smarter when finding a sudoed user in API::HelpersRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-07Merge branch '25209-improve-length-validators' into 'master' Rémy Coutable
Use :maximum instead of :within for length validators with a 0..N range Closes #25209 See merge request !7894
2016-12-06Use :maximum instead of :within for length validators with a 0..N rangeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-02Test all values for `enabled_git_access_protocol`Andrew Smith
2016-12-01If SSH prototol is disabled don't say the user requires SSH keysAndrew Smith
2016-11-25Refresh project authorizations using a Redis leaseYorick Peterse
When I proposed using serializable transactions I was hoping we would be able to refresh data of individual users concurrently. Unfortunately upon closer inspection it was revealed this was not the case. This could result in a lot of queries failing due to serialization errors, overloading the database in the process (given enough workers trying to update the target table). To work around this we're now using a Redis lease that is cancelled upon completion. This ensures we can update the data of different users concurrently without overloading the database. The code will try to obtain the lease until it succeeds, waiting at least 1 second between retries. This is necessary as we may otherwise end up _not_ updating the data which is not an option.
2016-11-23Add nested groups support to the routingDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-11-18Merge branch 'feature/precalculate-authorized-projects' into 'master' Douwe Maan
Precalculate authorized projects in database ## What does this MR do? It caches user's authorized projects in database instead of using multiple unions, which should simplify and speed-up things since this operation (getting authorized projects) is used a lot. ## Are there points in the code the reviewer needs to double check? Did we miss a scenario where we need to refresh the list of projects? ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~ - [ ] ~~API support added~~ - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? #23150 See merge request !6839
2016-11-18Precalculate user's authorized projects in databaseAhmad Sherif
Closes #23150
2016-11-17Merge branch 'chat-name-authorize' into 'master' Rémy Coutable
Allows to authorize chat user against GitLab. This is needed for: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7438 See merge request !7450
2016-11-16Fix some failing specs due to missing access_requestable traitNick Thomas
2016-11-16Merge branch 'patch-5' into 'master' Rémy Coutable
Fix issue where "Without projects" filter admin area shows 0 users incorrectly. Before this fix, if any outstanding group or project invitations exist the count show as 0. Fixes #3367 See merge request !6611
2016-11-16Add most of specs for chat namesKamil Trzcinski
2016-11-16fix "Without projects" filterBen Bodenmiller
2016-11-11Make access request specs explicitly enable or disable access requests as ↵Nick Thomas
required
2016-11-07Add User#projects_with_reporter_access_limited_toYorick Peterse
This method can be used to retrieve a list of projects for a user that said user has reporter access to. This list is then be reduced down to a specific set of projects. This allows you to reduce a list of projects to a list of projects you have reporter access to in an efficient manner.
2016-11-04Fix: Todos Filter Shows All UsersValery Sizov
2016-11-01Allow to search for user by secondary email address in the admin interfaceYar
It is not possible to search for a user by his secondary email address in the Users search bar in the admin interface(/admin/users). A use-case could be that an admin wants to remove a specific secondary email address of an user, because it interferes with another user. Issue #23761 This commit adds ability to search not only by main email, but also by any secondary email in the admin interface.
2016-10-24Remove redundant class_name and foreign_key overridesDavid Wagner
They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
2016-10-05Refactor Gitlab::IdentifierYorick Peterse
This refactors Gitlab::Identifier so it uses fewer queries and is actually tested. Queries are reduced by caching the output as well as using 1 query (instead of 2) to find a user using an SSH key.
2016-09-01Project tools visibility levelFelipe Artur
2016-08-24Show "Create Merge Request" widget for push events to fork projects on the ↵Paco Guzman
source project
2016-08-17Move to project dropdown with infinite scroll for better performancePaco Guzman
Use just SQL to check is a user can admin_issue on a project Tradeoff - we duplicate how we check admin_issue in a SQL relation in the Ability class
2016-08-12Simplify the name for data builder, feedback:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13671791
2016-08-11Merge remote-tracking branch 'upstream/master' into pipeline-hooks-without-slackLin Jen-Shin
* upstream/master: (233 commits) Fix awardable button mutuality loading spinners Update CHANGELOG for 8.10.5 Clean up project destruction Small refactor of doc/development/README.md Avoid commit lookup on diff_helper Removed extra newline from redis_spec.rb Used cached value of project count to reduce DB load Remove duplicate link_to statements Mention add_column_with_default in downtime guide Add missing space to generic badge template Rename `run` task helper method to prevent conflict with StateMachine Add a method in Project to return a cached value of total count of projects spellcheck Add svg guidelines to ui guide Add Changelog entry for Grape upgrade [ci skip] Fix Grape tests. Retain old behavior Update Grape from 0.13.0 to 0.15.0. adds second batch of tests changed to active tense fixes part1 of files to start using active tense ...
2016-08-09adds second batch of tests changed to active tensetiagonbotelho
2016-08-04Move those builders to their own namespace, feedback:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13540099
2016-08-02Tidy the key spec and fix failing user specKeith Pope
2016-07-20Merge branch 'email-domain-blacklist' into 'master' Robert Speicher
Added the ability to block sign ups using a domain blacklist. As part of this MR, I restructured the Application Settings form to separate **Sign up** related settings from **Sign in** related settings and make everything cleaner and easier to read. Fixes #19749 Related to #5573 See merge request !5259
2016-07-19Ensure Owners are included in the scope for authorized_projectsRobert Speicher
Prior, when providing a `min_access_level` parameter to this method, we called `Gitlab::Access.values` instead of `all_values`, mistakenly omitting the `OWNER` level. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/19878
2016-07-19Default to manual input for `domain_whitelist`, syntax fixes and added new ↵Patricio Cano
tests.
2016-07-19Refactor and rename `restricted_signup_domains` to `domain_whitelist` to ↵Patricio Cano
better conform to its behavior and newly introduced behavior.
2016-07-19Refactored the domain separator regex, plus syntax and grammar fixes.Patricio Cano
2016-07-19Added the ability to block sign ups using a domain blacklist.Patricio Cano
2016-07-15Track a user who created a pipelineKamil Trzcinski
2016-07-12Avoid `describe`-ing symbols in specsRobert Speicher
2016-07-07Added setting to set new users by default as externalDravere
As requested by the issue #14508 this adds an option in the application settings to set newly registered users by default as external. The default setting is set to false to stay backward compatible.
2016-06-24Fix an information disclosure when requesting access to a group containing ↵Rémy Coutable
private projects The issue was with the `User#groups` and `User#projects` associations which goes through the `User#group_members` and `User#project_members`. Initially I chose to use a secure approach by storing the requester's user ID in `Member#created_by_id` instead of `Member#user_id` because I was aware that there was a security risk since I didn't know the codebase well enough. Then during the review, we decided to change that and directly store the requester's user ID into `Member#user_id` (for the sake of simplifying the code I believe), meaning that every `group_members` / `project_members` association would include the requesters by default... My bad for not checking that all the `group_members` / `project_members` associations and the ones that go through them (e.g. `Group#users` and `Project#users`) were made safe with the `where(requested_at: nil)` / `where(members: { requested_at: nil })` scopes. Now they are all secure. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-07Add a blank line between before and it:Lin Jen-Shin
Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12301563
2016-06-07Avoid using subject and is_expected.to:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12274602
2016-06-07Prefer do and end for before/after:Lin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12217415
2016-06-07Fix method definition styleLin Jen-Shin
2016-06-07Use rspec's matchers and update style:Lin Jen-Shin
Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12194552
2016-06-07Use subject for more consistent testing style:Lin Jen-Shin
Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12194489
2016-06-07This is easier to write:Lin Jen-Shin
Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12194471
2016-06-07Add a test for User#ci_authorized_runnersLin Jen-Shin
2016-06-06Add a `U2fRegistrations` table/model.Timothy Andrew
- To hold registrations from U2F devices, and to authenticate them. - Previously, `User#two_factor_enabled` was aliased to the `otp_required_for_login` column on `users`. - This commit changes things a bit: - `User#two_factor_enabled` is not a method anymore - `User#two_factor_enabled?` checks both the `otp_required_for_login` column, as well as `U2fRegistration`s - Change all instances of `User#two_factor_enabled` to `User#two_factor_enabled?` - Add the `u2f` gem, and implement registration/authentication at the model level.
2016-06-03Merge branch 'master' into awardablesZ.J. van de Weg
2016-05-28Update tests for the current_application_settings request store changesDJ Mountney
2016-05-18Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardablesFatih Acet
# Conflicts: # app/controllers/projects/merge_requests_controller.rb # app/models/note.rb # db/schema.rb # spec/models/note_spec.rb