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-14Display a link to external issue tracker when enabledJarka Kadlecová
2018-02-13Use more specific #avatar_icon_for_user.Andreas Brandl
Whenever we already deal with a User object, let's use the more specific method avatar_icon_for_user.
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2018-01-04Remove downcase from special path helperJames Ramsay
2017-11-23Allow password authentication to be disabled entirelyMarkus Koller
2017-11-03Make sure the settings page renders when root of a fork is deletedBob Van Landuyt
2017-10-20Decrease Perceived Complexity threshold to 14Maxim Rydkin
2017-10-04Introduce policy check for clusters navigation optionKamil Trzcinski
2017-09-28Add lazy_load option to participant avatar helperLuke "Jared" Bennett
2017-09-22Fixes dashboard/projects empty state showing when viewing personal projectsPhil Hughes
This was caused by the `@projects` value being empty when the current user does not have any personal projects.
2017-09-13escape characters in git user nameBrandon Everett
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-07Resolve "Make project and features visibility settings less confusing"Mike Greiling
2017-09-07remove unnecessary args from `link_to_member_avatar` method in ↵Maxim Rydkin
`app/helpers/projects_helper.rb`
2017-09-07fix project_helper.rb and add couple specs to itMaxim Rydkin
2017-09-07fix helper and specMaxim Rydkin
2017-09-07refactor `app/helpers/projects_helper.rb:21:3`Maxim Rydkin
2017-09-06removed show_new_nav? referencesPhil Hughes
2017-09-06Merge branch 'master' into breadcrumbs-improvementsPhil Hughes
2017-09-06Clean up new navigation templatesPhil Hughes
2017-09-06fixed up JS to use a js-* classPhil Hughes
fixed up Ruby based on review
2017-09-05Merge branch 'master' into breadcrumbs-improvementsPhil Hughes
2017-09-05Remove project select dropdown from breadcrumbkushalpandya
2017-09-05fixed images changing height of breadcrumbsPhil Hughes
2017-09-04Merge branch 'master' into breadcrumbs-improvementsPhil Hughes
2017-09-01Merge branch 'enable-new-navigaton-by-default' into 'master'Tim Zallmann
Enable the new navigation by default See merge request !13387
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-29more spec fixesPhil Hughes
2017-08-18style updatesPhil Hughes
fixed some more breadcrumb titles
2017-08-18fix some inconsistencies with the breadcrumbsPhil Hughes
2017-08-18added collapsible sub-groups & wiki pagesPhil Hughes
[ci skip]
2017-08-18updated a bunch of breadcrumb titlesPhil Hughes
[ci skip]
2017-08-18Improvements to breadcrumbsPhil Hughes
Closes #35269
2017-08-16Merge branch 'rs-more-public-send-whitelists' into 'master'Rémy Coutable
Whitelist or fix additional `Gitlab/PublicSend` cop violations See merge request !13467
2017-08-15Allow usage of any_projects? with an ArrayYorick Peterse
In some cases we pass an Array to this method which would previously fail since Array does not respond to "limit_value". Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/3646
2017-08-14Whitelist or fix additional `Gitlab/PublicSend` cop violationsRobert Speicher
An upcoming update to rubocop-gitlab-security added additional violations.
2017-08-14Remove `\n` from translationsBob Van Landuyt
They seem to confuse some translation tools and aren't rendered in HTML anyway.
2017-08-07Improve checking if projects would be returnedYorick Peterse
In various places we check if the same relation would return projects. This is done using "any?" which will run a COUNT query with any LIMIT/OFFSET values still applied. To work around all this we introduce 2 helper methods that take care of doing the right thing. This leads to the produced queries being simpler and fewer queries being executed.
2017-08-01Rename many path_with_namespace -> full_pathGabriel Mazetto
2017-07-18Invalidate project list cacheBob Van Landuyt
So the avatars would be reloaded from their new path
2017-07-14Merge branch 'find-file-no-longer-inline' into 'master'Filipa Lacerda
Move find file URL out of global variable See merge request !12846
2017-07-13Move find file URL out of global variablePhil Hughes
Part of #34903
2017-07-13Fixes needed when GitLab sign-in is not enabledRobin Bobbitt
When sign-in is disabled: - skip password expiration checks - prevent password reset requests - don’t show Password tab in User Settings - don’t allow login with username/password for Git over HTTP requests - render 404 on requests to Profiles::PasswordsController
2017-07-07Resolve "Inconsistent location of members page between groups and projects"Tim Zallmann
2017-07-05Create and use project path helpers that only need a project, no namespaceDouwe Maan
2017-06-30New navigation breadcrumbsPhil Hughes
2017-06-26Provide hint to create a personal access token for Git over HTTPRobin Bobbitt
If internal auth is disabled and user is not an LDAP user, present the user with an alert to create a personal access token if he does not have one already.
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-19[#27697] Make the arrow icons consistent in dropdownTM Lee
2017-06-15Update Spanish translations after code reviewRuben Davila