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
2020-03-31Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-05-07Add improvements to the global search processFrancisco Javier López
Removed the conditions added to Project.with_feature_available_for_user, and moved to the IssuableFinder. Now, we ensure that, in the projects retrieved in the Finder, the user has enough access for the feature.
2019-04-09[CE] Support multiple assignees for merge requestsOswaldo Ferreira
Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
2019-02-26Merge branch 'filter-confidential-issues' into 'master'Kamil Trzciński
Ability to filter confidential issues Closes #50747 See merge request gitlab-org/gitlab-ce!24960
2019-02-25Revert "Merge branch 'filter-confidential-issues' into 'master'"Michael Kozono
This reverts commit d133bf84c668df3dfc9938bb04150754cb873c8b, reversing changes made to 7981c0292b07a0138b096fa082341fcb13e9ce2b.
2019-02-22Only use boolean parameters internallyRobert Schilling
Use internally only boolean params.
2019-02-21Add confidential_only scop to issue modelRobert Schilling
2019-02-21Ability to filter confidential issuesRobert Schilling
Add a new search bar filter for confidential issues. Add filtering support to the IssuesFinder.
2019-02-05Fix grammar and spellingHiroyuki Sato
2019-01-14Add 'in' filter that modifies scope of 'search' filter to issues and merge ↵Hiroyuki Sato
requests API
2018-10-31Whitelist none method from ActiveRecord::QueryingDouglas Barbosa Alexandre
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-05Remove confidential access checks if user has group accessSean McGivern
We simplify the query generated if the user can see all confidential issues in a project context. This change applies the same simplification to group issue lists.
2018-09-13Merge branch 'frozen-string-app-finders-graphql' into 'master'Stan Hu
Enable frozen string in app/graphql + app/finders See merge request gitlab-org/gitlab-ce!21681
2018-09-11Enable frozen string in app/graphql + app/findersgfyoung
Partially addresses #47424.
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-06-06Simplify issuable finder queriesSean McGivern
We had `item_project_ids` to help make slow queries on the dashboard faster, but this isn't necessary any more - the queries are plenty fast, and we forbid searching the dashboard without filters.
2018-05-31Export assigned issues in iCalendar feedImre Farkas
2018-05-21Add created_by_me and assigned_to_me scopesMark Chao
Deprecate corresponding dash versions created-by-me and assigned-to-me
2018-03-05Adds updated_at filter to issues and merge_requests APIJacopo
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-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-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
2017-09-05Add my_reaction_emoji param to /issues APIHiroyuki Sato
2017-08-31Remove issuable finder count cachingSean McGivern
We're going to cache the total open count separately, and then just perform these counts on the list. We already do that to get the pagination information, through Kaminari, and a future change will make Kaminari reuse the query results from earlier in the request.
2017-07-19Clear issuable counter caches on updateSean McGivern
When an issuable's state changes, or one is created, we should clear the cache counts for a user's assigned issuables, and also the project-wide caches for this user type.
2017-07-19Fix issuable state counter cache keysSean McGivern
These cache a hash of counts by state, so the state isn't needed in the key itself.
2017-06-30Fix typo in IssuesFinder commentSean McGivern
[ci skip]
2017-06-30Clarify counter caching for users without project accessSean McGivern
2017-06-30Make finders responsible for counter cache keysSean McGivern
2017-06-30Don't count any confidential issues for non-project-membersSean McGivern
2017-06-30Cache total issue / MR counts for project by user typeSean McGivern
This runs a slightly slower query to get the issue and MR counts in the navigation, but caches by user type (can see all / none confidential issues) for two minutes.
2017-06-30Only do complicated confidentiality checks when necessarySean McGivern
When we are filtering by a single project, and the current user has access to see confidential issues on that project, we don't need to filter by confidentiality at all - just as if the user were an admin. The filter by confidentiality often picks a non-optimal query plan: for instance, AND-ing the results of all issues in the project (a relatively small set), and all issues in the states requested (a huge set), rather than just starting small and winnowing further.
2017-06-23Add User#full_private_access? to check if user has Private accessToon Claes
In CE only the admin has access to all private groups & projects. In EE also an auditor can have full private access. To overcome merge conflicts, or accidental incorrect access rights, abstract this out in `User#full_private_access?`. `User#admin?` now only should be used for admin-only features. For private access-related features `User#full_private_access?` should be used. Backported from gitlab-org/gitlab-ee!2199
2017-05-04Backport of multiple_assignees_feature [ci skip]Valery Sizov
2017-04-03Fixes milestone/merge_request API endpoint to really scope the resultsJoren De Groof
The MergeRequestsFinder uses the milestone_title instead of the milestone_id
2017-03-06Improve issues filtering performanceJarka Kadlecova
2017-02-17add a :iids param to IssuableFindermhasbini
2016-12-15Merge branch 'jej-24637-move-issue-visible_to_user-to-finder' into 'security' Sean McGivern
Issue#visible_to_user moved to IssuesFinder Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/24637. See merge request !2039
2016-09-20fix issues mr counterbarthc
2016-03-18Restrict access to confidential issuesDouglas Barbosa Alexandre
2014-09-02Refactor finders. Prevent circular dependency errorDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-25Move services for collecting items to FindersDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>