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-04-18Revert "Don't include projects shared as group-descendants"Bob Van Landuyt
This reverts commit 2c3c5b35549185080296670cfe6710aa80f99944. Revisit this after https://gitlab.com/gitlab-org/gitlab-ce/issues/45441
2018-04-12Merge branch 'dm-archived-read-only' into 'master'Robert Speicher
Make archived projects completely read-only Closes #44788 See merge request gitlab-org/gitlab-ce!18136
2018-04-11Prevent new merge requests for archived projectsBob Van Landuyt
This prevents creating merge requests targeting archived projects. This could happen when a project was already forked, but then the source was archived.
2018-04-09Reduce complexity of issuable finder query.Andreas Brandl
This removes the extra check for project-ids which is not needed at all. This does not necessarily reduce execution time of the query, but improves planning time by a few millseconds. Closes #37125.
2018-04-04Allow assigning and filtering issuables by ancestor group labelsFelipe Artur
2018-04-04[Rails5] Rename `sort` methods to `sort_by_attribute`blackst0ne
2018-03-19Remove N+1 queries in /admin/projects pageStan Hu
2018-03-16Fix timeouts loading /admin/projects pageStan Hu
These extra sort keys caused sequential scans on the namespaces and projects page. Removing them makes the page load on GitLab.com. Closes #44338
2018-03-07Leverage user_contributed_projects to find recent events.Andreas Brandl
Closes #40525.
2018-03-06Merge branch '40187-project-branch-dashboard-with-active-stale-branches' ↵Rémy Coutable
into 'master' Add overview of branches and filtered views for active/stale branches Closes #40187 et #17293 See merge request gitlab-org/gitlab-ce!15402
2018-03-06Add overview of branches and a filter for active/stale branchesTakuya Noguchi
2018-03-05Remove default scope from todosSean McGivern
This was causing todo priority sorting to fail.
2018-03-05Merge branch '41616-api-issues-between-date' into 'master'Sean McGivern
Resolve "API support for selecting only updated issues before/after a given date" Closes #41616 See merge request gitlab-org/gitlab-ce!17417
2018-03-05Use limited count queries also for scoped searchesJan Provaznik
2018-03-05Adds updated_at filter to issues and merge_requests APIJacopo
2018-03-05Merge branch 'remove-projects-finder-from-todos-finder' into 'master'Sean McGivern
Don't use ProjectsFinder in TodosFinder Closes #43767 See merge request gitlab-org/gitlab-ce!17462
2018-03-02Merge branch '42877-fix-visibility-change-performance' into 'master'Yorick Peterse
Revert Project.public_or_visible_to_user changes but apply change to SnippetsFinder Closes #42877 See merge request gitlab-org/gitlab-ce!17476
2018-03-02Extract method User#authorizations_for_projects.Andreas Brandl
2018-03-02Don't use ProjectsFinder in TodosFinderYorick Peterse
Using ProjectsFinder in TodosFinder to limit todos to the right projects leads to overly complicated and slow database queries. This commit removes the use of ProjectsFinder in favour of using Project.public_or_visible_to_current_user directly. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/43767
2018-03-02Allow to include also descendant group labelsJan Provaznik
Because epic index page includes also epics from subgroups it's necessary to also get descendant group labels for filtering. https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4773#note_61236542
2018-03-02Use yield instead of block.call.Andreas Brandl
2018-03-02Apply query changes to snippets only.Andreas Brandl
This applies the changes introduced in `Project.public_or_visible_to_user` to the snippets finder only. We know that for `SnippetsFinder`, this change improves SQL timing from 5/23/25s to 0.7/2/4s (mean/p95/p99). At the same time, the scope was too broad, (negatively) affecting SQL timings in various other places: https://gitlab.com/gitlab-com/infrastructure/issues/3772 With this commit, the snippets dashboard stays usuable as we generally don't run into statement timeouts. In contrast to the earlier change in !17088, the scope of the change is limited to `SnippetsFinder` only, thus not affecting other places.
2018-03-02Revert Project.public_or_visible_to_user changesYorick Peterse
These changes were introduced in MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17088. In https://gitlab.com/gitlab-com/infrastructure/issues/3772 we discovered these changes lead to a pretty drastic increase in SQL response timings. We'll revert these changes so we can work on a better solution in the mean time without GitLab.com (or other installations) experiecing reduced performance in the mean time.
2018-03-01Merge branch 'merge-requests-api-filter-by-branch' into 'master'Rémy Coutable
Add source and target branch filters to merge requests API Closes #42492 See merge request gitlab-org/gitlab-ce!17355
2018-03-01Add source and target branch filters to merge requests APISean McGivern
2018-02-26Allow to find labels in ancestor groups and better group support in label ↵Jan Provaznik
service
2018-02-23Merge branch 'users-autocomplete' into 'master'Douwe Maan
Improve performance of searching for and auto completing of users See merge request gitlab-org/gitlab-ce!17158
2018-02-22Added changelog for user search improvementsYorick Peterse
2018-02-22Removed pagination from AutocompleteUsersFinderYorick Peterse
The frontend code doesn't use this so there's no practical point in supporting this. We also hardcode the limit to 20 so users can no longer request their own limit, which could overload the database (depending on any upper bounds perhaps enforced by Kaminari).
2018-02-22Don't pluck IDs in AutocompleteUsersFinderYorick Peterse
We can instead just use a UNION. This removes the need for plucking hundreds if not thousands of IDs into memory when a project has many members.
2018-02-22Port `read_cross_project` ability from EEBob Van Landuyt
2018-02-21Merge branch 'refactor-issuable-finder-to-use-inheritance' into 'master'Rémy Coutable
Refactor IssuableFinder to extract model-specific logic See merge request gitlab-org/gitlab-ce!17236
2018-02-21Merge branch '41461-project-members-slow-due-to-sql' into 'master'Yorick Peterse
Simplify database queries in MembersFinder and improve performance for Projects::ProjectMembersController#index Closes #41461 See merge request gitlab-org/gitlab-ce!17190
2018-02-21More readable SQL query.Andreas Brandl
2018-02-21Refactor IssuableFinder to extract model-specific logicSean McGivern
By extracting a new `filter_items` method, we can override that in the IssuesFinder and MergeRequestsFinder separately, so we don't need checks that the model is the correct one, because we can just use the class we're in to know that. We can do the same for the VALID_PARAMS constant, by making it a class method.
2018-02-20Fix MembersFinder to never include group invitees.Andreas Brandl
This was the default behavior, because all members with `user_id` set to `null` were excluded.
2018-02-20Fix N+1 query problem for users on members view.Andreas Brandl
For each member being rendered on Projects::ProjectMembersController#index, there was a query to the users table to retrieve the corresponding user: ``` SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 ```
2018-02-20Use DISTINCT ON and translate to MySQL.Andreas Brandl
Realized window functions are not available in older MySQL versions either. Falling back to DISTINCT ON for postgresql and a convoluted translation for MySQL.
2018-02-20Rename use_conditions_only option to use_where_in.Andreas Brandl
2018-02-20Simplify database queries in MembersFinder.Andreas Brandl
Closes #41461.
2018-02-20Allow choice between #where or #from.Andreas Brandl
Immediately using #from here requires a lot of changes in other finders (e.g. IssuableFinder, TodosFinder). In all places where we use #merge, this goes completely the wrong way when passed in a relation that was built with `#from(...)`: The original query's FROM part gets completely replaced. This avoids changing all other places and focuses on improving SnippetFinder with the downside of two (small) codepaths to do the same thing.
2018-02-20Remove duplication in Project methods.Andreas Brandl
2018-02-20Push feature-related query part up.Andreas Brandl
2018-02-13Always eagerly load a note's author.Andreas Brandl
2018-02-13Always eagerly load an issue's author.Andreas Brandl
Rather radical but avoids n+1 queries in the rather common case we want to include information about the author.
2018-02-09Merge branch ↵Douwe Maan
'security-10-4-25223-snippets-finder-doesnt-obey-feature-visibility' into 'security-10-4' [Port for security-10-4]: Makes SnippetFinder ensure feature visibility
2018-02-07Fix N+1 query problem for snippets dashboard.Andreas Brandl
Closes #40755.
2018-02-01Include subgroup issuables on the group pageJarka Kadlecová
2018-01-24Use limit for search count queriesJan Provaznik
Search query is especially slow if a user searches a generic string which matches many records, in such case search can take tens of seconds or time out. To speed up the search query, we search only for first 1000 records, if there is >1000 matching records we just display "1000+" instead of precise total count supposing that with such amount the exact count is not so important for the user. Because for issues even limited search was not fast enough, 2-phase approach is used for issues: first we use simpler/faster query to get all public issues, if this exceeds the limit, we just return the limit. If the amount of matching results is lower than limit, we re-run more complex search query (which includes also confidential issues). Re-running the complex query should be fast enough in such case because the amount of matching issues is lower than limit. Because exact total_count is now limited, this patch also switches to to "prev/next" pagination. Related #40540
2018-01-22Preload ancestors for subgroups matching filterBob Van Landuyt
Otherwise we'd only preload the ancestors that would fit the page. That way, when a search result was on the first page, but the ancestor didn't fit the page anymore. We would not have the preloaded ancestor when rendering the hierarchy.