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-03-28[CE] Reduce the diff with EE in spec/helpers/projects_helper_spec.rbRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-03-01Refactor model and specReuben Pereira
- Move some specs into contexts - Let get_slugs method take a parameter and return a specific slug. - Add rescues when using Addressable::URI.
2019-02-05Merge branch 'jprovazn-remove-redcarpet' into 'master'Grzegorz Bizon
Remove Redcarpet markdown engine Closes #51374 See merge request gitlab-org/gitlab-ce!24819
2019-02-04Changed external wiki query method to prevent attribute cachingFrancisco Javier López
2019-02-04Remove Redcarpet markdown engineJan Provaznik
This engine was replaced with CommonMarker in 11.4, it was deprecated since then.
2019-01-31[master] Pipelines section is available to unauthorized usersKamil Trzciński
2019-01-31Fixed bug when external wiki is enabledFrancisco Javier López
When the external wiki is enabled, the internal wiki link is replaced by the external wiki url. But the internal wiki is still accessible. In this change the external wiki will have its own tab in the sidebar and only if the services are disabled the tab (and access rights) will not be displayed.
2019-01-05Hides ADO banner for certain projectsMayra Cabrera
ADO banner is being hidden if: - Project has no CI configuration - Project has CI disabled Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52446
2018-12-19Add test for compact mode and for helpersMartin Wortschack
- add tests for merge_request_count - add tests for show_issue_count - add tests for explore_projects_tab - change interface for show_merge_request_count and show_issue_count
2018-12-10Reduce N+1 from Activity Dashboard and BanzaiGabriel Mazetto
There is a combination of few strategies implemented here: 1. Few relations were eager loaded 2. Changed few polymorphic routes to specific ones so we don't have to use `#becomes(Namespace)` which doesn't preserve association cache
2018-12-06Use BFG object maps to clean projectsNick Thomas
2018-09-05move logic into legacy_render_context helper methodBrett Walker
2018-07-17Remove sanitize_repo_pathZeger-Jan van de Weg
This method is unneeded given its been pushed to Gitaly, through https://gitlab.com/gitlab-org/gitaly/merge_requests/780 Closes https://gitlab.com/gitlab-org/gitaly/issues/1235
2018-07-06Fix User role displayed on projects dashboardFrancisco Javier López
2018-06-15HTML escape the name of the user in ProjectsHelper#link_to_memberImre Farkas
2018-06-14Deny repository disk access in development and testJacob Vosmaer (GitLab)
2018-06-13Invalidate cache with project details when repository is updatedRubén Dávila
The partial using this cache key was showing stale information due to the cache not being invalidated.
2018-06-06Fix invisible rows on importer statusStan Hu
2018-06-05Resolve "Add Xcode Button in UI"André Luís
2018-05-09Adjust spec to build correct path when storage path ends in slashDouwe Maan
2018-04-25Gitlab::Shell works on shard name, not pathZeger-Jan van de Weg
Direct disk access is done through Gitaly now, so the legacy path was deprecated. This path was used in Gitlab::Shell however. This required the refactoring in this commit. Added is the removal of direct path access on the project model, as that lookup wasn't needed anymore is most cases. Closes https://gitlab.com/gitlab-org/gitaly/issues/1111
2018-04-12Resolve "Clean up old project permissions frontend code"Mike Greiling
2018-02-23Merge branch 'bvl-external-auth-port' into 'master'Douwe Maan
Port `read_cross_project` ability from EE See merge request gitlab-org/gitlab-ce!17208
2018-02-23Add Tip about Push to Create project on New Project pageAndré Luís
2018-02-22Port `read_cross_project` ability from EEBob Van Landuyt
2018-02-22Merge branch 'master' into 42431-add-auto-devops-and-clusters-button-to-projectsEric Eastwood
2018-02-20Move button list logic to project presenterOswaldo Ferreira
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-01-23fix spacing and wrap method params in parensMike Greiling
2018-01-23add test to can_change_visibility_level? methodMike Greiling
2017-11-23Allow password authentication to be disabled entirelyMarkus Koller
2017-10-07Replaces `tag: true` into `:tag` in the specsJacopo
Replaces all the explicit include metadata syntax in the specs (tag: true) into the implicit one (:tag). Added a cop to prevent future errors and handle autocorrection.
2017-09-28Update projects_helper_specLuke "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-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 CIMaxim Rydkin
2017-09-07fix helper and specMaxim Rydkin
2017-09-07refactor `app/helpers/projects_helper.rb:21:3`Maxim Rydkin
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-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-03Change all `:empty_project` to `:project`Robert Speicher
2017-08-01Ensure all project factories use `:repository` trait or `:empty_project`Robert Speicher
2017-08-01Rename many path_with_namespace -> full_pathGabriel Mazetto
2017-07-14Merge branch 'fixes-for-internal-auth-disabled' into 'master'Sean McGivern
Fixes needed when GitLab sign-in is not enabled See merge request !12491
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-11Support multiple Redis instances based on queue typePaul Charlton
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.