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
2019-04-15Merge branch 'forbid-the-usage-of-reload' into 'master'Lin Jen-Shin
Forbid the usage of reload Closes #60218 See merge request gitlab-org/gitlab-ce!27125
2019-04-15Forbid the use of `#reload` and prefer `#reset`Kamil Trzciński
The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
2019-04-12Fix typo in activity leaseCindy Pallares
2019-04-05Add saml provider to user build serviceJames Lopez
2019-02-14Optimize Redis usage in User::ActivityServiceImre Farkas
Avoid checking Redis when User#last_activity_on is already up to date.
2019-01-11Fix several ActionController::Parameters deprecationsJasper Maes
2018-12-19Rename GroupHierarchy into ObjectHierarchyJarka Košanová
- we now use the hierarchy class also for epics - also rename supports_nested_groups? into supports_nested_objects? - move it to a concern
2018-12-17Change deprecated `except!` usagesRobert Speicher
These can just be `delete` calls, with the caveat that it only takes one argument.
2018-11-15Use gitlab-default_value_with Rails 5Rémy Coutable
This forks live at https://github.com/gitlabhq/default_value_for/tree/69-fix-action_controller-parameters-handling and fixes an issue where default_value_for wouldn't handle `ActionController::Parameters` correctly with Rails 5. This fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/54093. Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-11-13Fix a bug where internal email pattern wasn't respectedRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-01allow users api to set public_emailAlexis Reigel
2018-10-01add missing allowed attributesAlexis Reigel
2018-09-26remove obsolete allowed attributeAlexis Reigel
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-08-30Allow whitelisting for "external collaborator by default" settingRoger Rüttimann
2018-08-17Fix: Project deletion may not log audit events during user deletionValery Sizov
2018-08-03Merge branch 'sh-fix-failing-deploy-token-clones' into 'master'Robert Speicher
Fix failing 500 errors when deploy tokens are used to clone Closes gitlab-ee#7080 See merge request gitlab-org/gitlab-ce!20993
2018-08-02Fix failing 500 errors when deploy tokens are used to cloneStan Hu
A DeployToken responds to `:username`, but it returns the username for the token, not a User object. Don't attempt to log user activity in this case. Closes gitlab-org/gitlab-ee#7080
2018-07-30Show the status of a user in interactionsBob Van Landuyt
The status is shown for - The author of a commit when viewing a commit - Notes on a commit (regular/diff) - The user that triggered a pipeline when viewing a pipeline - The author of a merge request when viewing a merge request - The author of notes on a merge request (regular/diff) - The author of an issue when viewing an issue - The author of notes on an issue - The author of a snippet when viewing a snippet - The author of notes on a snippet - A user's profile page - The list of members of a group/user
2018-07-30Allow users to set a statusBob Van Landuyt
This can be done trough the API for the current user, or on the profile page.
2018-07-24Add an option to have a private profile on GitLabJX Terry
2018-07-19Merge branch 'frozen-string-enable-apps-services-inner-even-more' into 'master'Rémy Coutable
Enable more frozen string in app/services/**/*.rb See merge request gitlab-org/gitlab-ce!20702
2018-07-19Enable more frozen string in app/services/**/*.rbgfyoung
Partially addresses #47424.
2018-07-18Delete UserActivities and related workersImre Farkas
2018-05-08Cleanly handle plural name for ghost user migrationOlivier Gonzalez
2018-05-04Allow a user to accept/decline termsBob Van Landuyt
When a user accepts, we store this in the agreements to keep track of which terms they accepted. We also update the flag on the user.
2018-03-07Backport relevant changes from EE ↵Tiago Botelho
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4827 to CE
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2018-01-08Remove soft removals related codeYorick Peterse
This removes all usage of soft removals except for the "pending delete" system implemented for projects. This in turn simplifies all the query plans of the models that used soft removals. Since we don't really use soft removals for anything useful there's no point in keeping it around. This _does_ mean that hard removals of issues (which only admins can do if I'm not mistaken) can influence the "iid" values, but that code is broken to begin with. More on this (and how to fix it) can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/31114. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
2018-01-02Fix user membership destroy relationFrancisco Javier López
2017-11-23Allow password authentication to be disabled entirelyMarkus Koller
2017-11-16Cache the number of user SSH keysYorick Peterse
By caching the number of personal SSH keys we reduce the number of queries necessary on pages such as ProjectsController#show (which can end up querying this data multiple times). The cache is refreshed/flushed whenever an SSH key is added, removed, or when a user is removed.
2017-11-06Refactor issuable destroy actionJarka Kadlecova
2017-10-22Only cache the event for the fork-source when it existsBob Van Landuyt
It is possible for a fork not to have a source anymore, in this case we don't need to keep track of the push event.
2017-10-06Create idea of read-only databaseToon Claes
In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo secondary node). But in GitLab CE it also might be useful to have the "read-only" idea around. So port it back to GitLab CE. Also having the principle of read-only in GitLab CE would hopefully lead to less errors introduced, doing write operations when there aren't allowed for read-only calls. Closes gitlab-org/gitlab-ce#37534.
2017-09-28fix update serviceJames Lopez
2017-09-28refactor users update serviceJames Lopez
2017-09-28fix users update serviceJames Lopez
2017-09-28update initializersJames Lopez
2017-09-28refactor services to match EE signatureJames Lopez
2017-09-08Rework how recent push events are retrievedYorick Peterse
Whenever you push to a branch GitLab will show a button to create a merge request (should one not exist already). The underlying code to display this data was quite inefficient. For example, it involved multiple slow queries just to figure out what the most recent push event was. This commit changes the way this data is retrieved so it's much faster. This is achieved by caching the ID of the last push event on every push, which is then retrieved when loading certain pages. Database queries are only executed if necessary and the cached data is removed automatically once a merge request has been created, or 2 hours after being stored. A trade-off of this approach is that we _only_ track the last event. Previously if you were to push to branch A and B then create a merge request for branch B we'd still show the widget for branch A. As of this commit this is no longer the case, instead we will only show the widget for the branch you pushed to most recently. Once a merge request exists the widget is no longer displayed. Alternative solutions are either too complex and/or too slow, hence the decision was made to settle for this trade-off. Performance Impact ------------------ In the best case scenario (= a user didn't push anything for more than 2 hours) we perform a single Redis GET per page. Should there be cached data we will run a single (and lightweight) SQL query to get the event data from the database. If a merge request already exists we will run an additional DEL to remove the cache key. The difference in response timings can vary a bit per project. On GitLab.com the 99th percentile of time spent in User#recent_push hovers between 100 milliseconds and 1 second, while the mean hovers around 50 milliseconds. With the changes in this MR the expected time spent in User#recent_push is expected to be reduced down to just a few milliseconds. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/35990
2017-09-06Profile updates from providersAlexander Keramidas
2017-08-31`current_application_settings` belongs on `Gitlab::CurrentSettings`Sean McGivern
The initializers including this were doing so at the top level, so every object loaded after them had a `current_application_settings` method. However, if someone had rack-attack enabled (which was loaded before these initializers), it would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't have that method. To fix this: 1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need `Object.new.current_application_settings` to work. 2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it like that in several places. 3. Change the initializers to use that new form.
2017-08-26Fire system hooks when a user is created via LDAP or OAuthStan Hu
Closes #37073
2017-08-22Make sure repository's removal work for legacy and hashed storagesGabriel Mazetto
2017-07-19Use Ghost user when edited_by, merged_by deletedJarka Kadlecova
2017-06-28Fix current feature related specsTiago Botelho
2017-06-23update code based on feedbackJames Lopez
2017-06-23refactor update user service not to do auth checksJames Lopez
2017-06-23fix specsJames Lopez