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-01-28Modify MergeRequestsFinder to allow filtering by commitPatrick Bajao
2019-01-25Merge branch 'security-contributed-projects' into 'master'Yorick Peterse
[master] Fix contributed projects info is still visible even user enable private profile See merge request gitlab/gitlabhq!2743
2019-01-24Adds milestone searchJacopo
Adds to search ILIKE search for milestones title in: - Milestones dashboard - Group milestones page - Project milestones page
2019-01-14Add 'in' filter that modifies scope of 'search' filter to issues and merge ↵Hiroyuki Sato
requests API
2019-01-11Fix MilestonesFinder to pass relations to scopeHeinrich Lee Yu
Instead of querying relations into ids we just pass them to the model scope because the scope supports it now. Also changes other calls to `Milestone.for_projects_and_groups`
2019-01-11Merge branch '53431-fix-upcoming-milestone-filter-for-groups' into 'master'Sean McGivern
Add group milestones in upcoming filter Closes #53431 See merge request gitlab-org/gitlab-ce!23098
2019-01-11Initial Serverless Functions detailed viewChris Baumbauer
2019-01-08Fix contributed projects finder shown private infoJames Lopez
2018-12-31Refactor Milestone.for_projects_and_groupsHeinrich Lee Yu
Refactored to use Rails 5 ActiveRecord `or` so that it can handle ids, objects, array of objects, or relations properly.
2018-12-31ReleasesFinder will always return a relationAlessio Caiazza
2018-12-31Add releases APIAlessio Caiazza
This commit introduces Releases API under /api/v4/projects/:id/releases * We are introducing release policies at project level. * We are deprecating releases changes from tags, both api and web interface. * Tags::CreateService no longer create a release This feature is controlled by :releases_page feature flag
2018-12-31Add group milestones in upcoming filterHeinrich Lee Yu
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-17Hide confidential events in rubyBob Van Landuyt
We're filtering the events using `Event#visible_to_user?`. At most we're loading 100 events at once. Pagination is also dealt with in the finder, but the resulting array is wrapped in a `Kaminari.paginate_array` so the API's pagination helpers keep working. We're passing the total count into that paginatable array, which would include confidential events. But we're not disclosing anything.
2018-12-16Use finder to decide to show note to userThong Kuah
Given the note is about how to interpret ancestor clusters, use the finder which actually knows if there are any ancestor clusters to find out if the note should be shown, rather than passing the same info via a view to a helper Added note about Kaminari.paginate_array Link to followup issue too
2018-12-16Check can :read_clusters in finderThong Kuah
This is in addtion to the can checks we have in the controller, as a finder can be used elsewhere in the future.
2018-12-16Show clusters of ancestors in cluster list pageThong Kuah
Show both the cluster(s) of the clusterable, and the cluster(s) of ancestor groups.
2018-12-12Send a notification email on mirror update errorsAlejandro Rodríguez
The email is sent to project maintainers containing the last mirror update error. This will allow maintainers to set alarms and react accordingly.
2018-12-07Merge branch 'move-group-issues-search-cte-up-the-chain' into 'master'Douwe Maan
Add a flag to use a subquery for group issues search See merge request gitlab-org/gitlab-ce!23445
2018-12-07Remove trailing whitespaceDouwe Maan
2018-12-06Introduce Knative Serverless TabDylan Griffith
2018-12-06Restructure `foo ? bar : false` as `foo && bar`Douwe Maan
2018-12-05Rename project's pipelines relationFrancisco Javier López
2018-11-30Add a flag to use a subquery for group issues searchSean McGivern
We already had a flag to use a CTE, but this broke searching in some cases where we need to sort by a joined table. Disabling the CTE flag makes searches much slower. The new flag, to use a subquery, makes them slightly slower than the CTE, while maintaining correctness. If both it and the CTE flag are enabled, the subquery takes precedence.
2018-11-23Filter by `None`/`Any` for labels in issues/mrs APIJacopo
By using the parameters `?labels=None|Any` the user can filter issues/mrs from the API that has `none/any` label. Affected endpoints are: - /api/issues - /api/projects/:id/issues - /api/groups/:id/issues - /api/merge_requests - /api/projects/:id/merge_requests - /api/groups/:id/merge_requests
2018-11-20Merge branch '53290-incorrect-project-list-order-select-default-label' into ↵Grzegorz Bizon
'master' Resolve "Incorrect project list order select default label" Closes #53290 See merge request gitlab-org/gitlab-ce!23058
2018-11-20Merge branch 'rails5-active-record-class-value' into 'master'Stan Hu
Rails5 deprecation: Passing a class as a value in an Active Record query is deprecated See merge request gitlab-org/gitlab-ce!23164
2018-11-17Rails5: Passing a class as a value in an Active Record query is deprecatedJasper Maes
2018-11-14Refactor whitelisting of filter paramsHeinrich Lee Yu
2018-11-14Fix default sorting for subgroups and projects listJacopo
2018-11-06Merge branch 'master' into 'refactor-snippets-finder'Douwe Maan
# Conflicts: # spec/models/project_spec.rb
2018-11-05Rewrite SnippetsFinder to improve performanceYorick Peterse
This completely rewrites the SnippetsFinder class from the ground up in order to improve its performance. The old code was beyond salvaging. It was complex, included various Rails 5 workarounds, comments that shouldn't be necessary, and most important of all: it produced a really poorly performing database query. As a result, I opted for rewriting the finder from scratch, instead of trying to patch the existing code. Instead of trying to reuse as many existing methods as possible, I opted for defining new methods specifically meant for the SnippetsFinder. This requires some extra code here and there, but allows us to have much more control over the resulting SQL queries. It is these changes that then allow us to produce a _much_ more efficient query. To illustrate how bad the old query was, we will use my own snippets as an example. Currently I have 52 snippets, most of which are global ones. To retrieve these, you would run the following Ruby code: user = User.find_by(username: 'yorickpeterse') SnippetsFinder.new(user, author: user).execute On GitLab.com the resulting query will take between 10 and 15 seconds to run, producing the query plan found at https://explain.depesz.com/s/Y5IX. Apart from the long execution time, the total number of buffers (the sum of all shared hits) is around 185 GB, though the real number is probably (hopefully) much lower as I doubt simply summing these numbers produces the true total number of buffers used. The new query's plan can be found at https://explain.depesz.com/s/wHdN, and this query takes between 10 and 100-ish milliseconds to run. The total number of buffers used is only about 30 MB. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/52639
2018-11-05Merge branch 'use_tokenauthenticatable_method_for_token_lookup' into 'master'Sean McGivern
Remove PersonalAccessTokensFinder#find_by method See merge request gitlab-org/gitlab-ce!22617
2018-11-05Remove PersonalAccessTokensFinder#find_by methodImre Farkas
find_by_token is overriden by TokenAuthenticatable which can be easily missed or confused with #find_by(:token) defined by ActiveRecord. First step for safer usage is to remove #find_by.
2018-11-02Merge branch 'top_level_clusters_controller' into 'master'Kamil Trzciński
Top level clusters controller See merge request gitlab-org/gitlab-ce!22438
2018-11-01Merge branch 'engwan/gitlab-ce-44012-filter-reactions-none-any'Sean McGivern
2018-11-01Abstract out project out of ClustersControllerThong Kuah
To the extent possible swap out `project` with `clusterable` - Abstract paths for showing cluster or clusters. This will allow us to swap in alternative paths for group level cluster - Push :project_id and :namespace_id params from the URL to the POST body. - Create a nice helper for to generate links for the destroy action For some reason, spec :project_id and :namespace_id param are not going through `to_param` for a JSON format. Manually call `to_param` to fix specs. - Move :layout to BaseController
2018-11-01Rearrange code for readabilityHeinrich Lee Yu
2018-11-01Fix testsHeinrich Lee Yu
2018-11-01Add None / Any options to reaction filter in issues / MRs APIHeinrich Lee Yu
2018-11-01Update API to accept None and AnyHeinrich Lee Yu
2018-10-31Whitelist none method from ActiveRecord::QueryingDouglas Barbosa Alexandre
2018-10-30Merge remote-tracking branch 'origin/master' into dev-masterDJ Mountney
2018-10-29Merge branch 'fix_pat_auth-11-4' into 'security-11-4'Robert Speicher
[11.4] Fix Token lookup for Git over HTTP and registry authentication See merge request gitlab/gitlabhq!2577
2018-10-26Support lowercase none / anyHeinrich Lee Yu
2018-10-26Apply similar change to MRs APIHeinrich Lee Yu
2018-10-26Issues API: Add None/Any option to assignee_idHeinrich Lee Yu
2018-10-23Resolve "Filter discussion (tab) by comments or activity in issues and merge ↵Oswaldo Ferreira
requests"
2018-10-22Merge branch '52559-applications-api-get-delete' into 'master'Rémy Coutable
Add Applications API endpoints for listing and deleting entries. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52559 See merge request https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22296
2018-10-19Disable offense on the appropriate line only !22296JB Vasseur