summaryrefslogtreecommitdiff
path: root/app/finders
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-141-2/+24
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-101-0/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-091-8/+12
|
* Filter not accessible label eventsJan Provaznik2019-09-301-0/+41
| | | | | | Label events may use cross-project or cross-group references, if the projects are not accessible by user, we don't show these label events.
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-231-4/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-0/+24
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-182-4/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-171-8/+57
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-1310-0/+20
|
* Add projects parameter to IssuableFinderLin Jen-Shin2019-09-061-4/+19
|
* Avoid calling freeze on already frozen strings in app/findersdineshpanda2019-09-042-4/+4
|
* Merge branch ↵James Lopez2019-08-291-9/+26
|\ | | | | | | | | | | | | | | | | '62284-follow-up-from-resolve-api-to-get-all-project-group-members-returns-duplicates' into 'master' Resolve "Follow-up from "Resolve "API to get all project/group members returns duplicates""" Closes #62284 See merge request gitlab-org/gitlab-ce!28887
| * Uses projects_authorizations.access_level in MembersFinder62284-follow-up-from-resolve-api-to-get-all-project-group-members-returns-duplicatesJacopo2019-08-281-9/+26
| |
* | Update CE files for GSD projects filterVictor Zagorodny2019-08-281-5/+7
| | | | | | | | | | | | | | | | | | A new param with_security_reports was added to GET /groups/:id/projects API and the code to support this logic in GroupProjectsFinder and Project model. Also, a DB index was added to ci_job_artifacts table to speed up the search of security reports artifacts for projects
* | Add service classes for mutating AwardEmojiLuke Duncalfe2019-08-211-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding, destroying and toggling emoji previously lacked services and instead were performed through methods called on Awardable models. This led to inconsistencies where relevant todos would be marked as done only when emoji were awarded through our controllers, but not through the API. Todos could also be marked as done when an emoji was being removed. Behaviour changes - Awarding emoji through the API will now mark a relevant Todo as done - Toggling an emoji off (destroying it) through our controllers will no longer mark a relevant Todo as done Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
* | Renaming AwardedEmojiFinder to a ServiceLuke Duncalfe2019-08-211-21/+0
|/ | | | | | | | | | This finder class acts more as a service, as it only returns mapped data. Renaming this class allows us to create a new AwardEmojiFinder without the ambiguity of there being two similarly-named finders. https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
* Rework retry strategy for remote mirrorsBob Van Landuyt2019-08-131-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Prevention of running 2 simultaneous updates** Instead of using `RemoteMirror#update_status` and raise an error if it's already running to prevent the same mirror being updated at the same time we now use `Gitlab::ExclusiveLease` for that. When we fail to obtain a lease in 3 tries, 30 seconds apart, we bail and reschedule. We'll reschedule faster for the protected branches. If the mirror already ran since it was scheduled, the job will be skipped. **Error handling: Remote side** When an update fails because of a `Gitlab::Git::CommandError`, we won't track this error in sentry, this could be on the remote side: for example when branches have diverged. In this case, we'll try 3 times scheduled 1 or 5 minutes apart. In between, the mirror is marked as "to_retry", the error would be visible to the user when they visit the settings page. After 3 tries we'll mark the mirror as failed and notify the user. We won't track this error in sentry, as it's not likely we can help it. The next event that would trigger a new refresh. **Error handling: our side** If an unexpected error occurs, we mark the mirror as failed, but we'd still retry the job based on the regular sidekiq retries with backoff. Same as we used to The error would be reported in sentry, since its likely we need to do something about it.
* Revert "Merge branch ↵Winnie Hellmann2019-08-091-12/+15
| | | | | | '4221-board-milestone-should-persist-any-none-properly-ce' into 'master'" This reverts merge request !30613
* Handle reviewer comments on !24690Camil Staps2019-08-072-4/+6
|
* Address reviewer commentsCamil Staps2019-08-071-0/+1
|
* Fix testsCamil Staps2019-08-071-1/+1
|
* Remove private profiles from starrers view of projectsCamil Staps2019-08-071-1/+13
|
* Avoid unnecessary includes in StarredProjectsFinderCamil Staps2019-08-071-1/+1
|
* Rewrite StarredProjectsFinder to use ProjectsFinderCamil Staps2019-08-071-29/+4
|
* Add pagination to {project}/starrers viewCamil Staps2019-08-071-8/+1
|
* Change sorting options for starrers: name (asc/desc), most/least recent starCamil Staps2019-08-072-5/+31
|
* Add "Starred projects" tab to user overviewCamil Staps2019-08-071-0/+33
|
* Add /starrers view for projectsCamil Staps2019-08-071-0/+5
|
* Use separate Kubernetes namespaces per environmentTiger Watson2019-08-073-41/+81
| | | | | | | | | | | | Kubernetes deployments on new clusters will now have a separate namespace per project environment, instead of sharing a single namespace for the project. Behaviour of existing clusters is unchanged. All new functionality is controlled by the :kubernetes_namespace_per_environment feature flag, which is safe to enable/disable at any time.
* Add group level container repository endpointsSteve Abrams2019-08-051-0/+34
| | | | | | | API endpoints for requesting container repositories and container repositories with their tag information are enabled for users that want to specify the group containing the repository rather than the specific project.
* Use select instead of filter to support 2.5Igor2019-08-051-1/+1
|
* Merge branch '52123-issuable-actions-notesfinder-pderichs' into 'master'Stan Hu2019-08-011-12/+30
|\ | | | | | | | | | | | | Use NotesFinder to fetch notes on API and Controllers Closes #52123 See merge request gitlab-org/gitlab-ce!31300
| * Use NotesFinder in IssuableActions modulePatrick Derichs2019-08-011-12/+30
| | | | | | | | | | | | | | | | | | | | Remove project from NotesFinder constructor Add project parameter to specs Also look for methods in private scope Fix specs to match new NotesFinder constructor
* | Port CE changes from EEcharlie ablett2019-07-311-15/+12
|/ | | | | - DB migration of board milestone values - issue finder & spec updates
* Resolve "MembersFinder contains slow database query with OR conditions"🙈 jacopo beschi 🙉2019-07-291-6/+6
|
* Further remove code branches by database typeAndreas Brandl2019-07-292-31/+11
| | | | | | | | We dropped MySQL support and a lot of mysql specific code has been removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29608. This comes in from the other direction and removes any `if postgresql?` branches.
* Revert "Merge branch '52123-issuable-actions-notesfinder-pderichs' into ↵Stan Hu2019-07-271-28/+10
| | | | | 'master'" This reverts merge request !29733
* Merge branch '52123-issuable-actions-notesfinder-pderichs' into 'master'Stan Hu2019-07-261-10/+28
|\ | | | | | | | | | | | | Use NotesFinder to fetch notes in module IssuableActions Closes #52123 See merge request gitlab-org/gitlab-ce!29733
| * Use NotesFinder in module IssuableActionsPatrick Derichs2019-07-261-10/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add spec for concern IssuableActions Add shared samples for discussions endpoint Add schema validations for discussions Fix rubocop style issue Make target assignable Use new possibility to provide target
* | Remove code related to object hierarchy in MySQLremove-nested-groups-checksHeinrich Lee Yu2019-07-251-2/+0
|/ | | | | These are not required because MySQL is not supported anymore
* Removed project autocomplete paginationJan Provaznik2019-07-221-5/+4
| | | | | | This pagination is not used anywhere so there is no reason to keep it. It seems the usage of offset_id was probably removed in 90c60138db4e1f86026aac5760febe4ba066ca30
* Merge branch '40379-CJK-search-min-chars' into 'master'Andreas Brandl2019-07-081-1/+1
|\ | | | | | | | | Remove minimum required characters for fuzzy search if no trigram is used See merge request gitlab-org/gitlab-ce!29810
| * Ignore min_chars_for_partial_matching unles trigrm40379-CJK-search-min-charsMario de la Ossa2019-07-041-1/+1
| | | | | | | | | | If we're not using a trigram index, then ignore the min_chars_for_partial_matching setting
* | Adding order by to list runner jobs api.sujay patel2019-07-051-7/+4
| |
* | Adding order by to list runner jobs api.sujay patel2019-07-051-1/+21
|/
* Merge branch 'id-stale-branches' into 'master'Grzegorz Bizon2019-07-011-0/+14
|\ | | | | | | | | Add endpoint for fetching diverging commit counts See merge request gitlab-org/gitlab-ce!29802
| * Add endpoint for fetching diverging commit countsid-stale-branchesIgor Drozdov2019-06-281-0/+14
| | | | | | | | Extract diverging_commit_counts into a service class
* | Move Multiple Issue Boards for Projects to Core53811-issue-boards-to-core-projects-backend-ceAlexandru Croitor2019-06-261-0/+26
|/ | | | | Refactor code to allow multiple issue boards management for projects in CE
* Merge branch '63656-runner-tags-search-dropdown-is-empty' into 'master'Jan Provaznik2019-06-241-2/+1
|\ | | | | | | | | | | | | Resolve "Runner tags search dropdown is empty" Closes #63656 See merge request gitlab-org/gitlab-ce!29985
| * Return all runner tags when search is empty63656-runner-tags-search-dropdown-is-emptyDmitriy Zaporozhets2019-06-241-2/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>