summaryrefslogtreecommitdiff
path: root/app/services
Commit message (Collapse)AuthorAgeFilesLines
* Enable GitLabb runner to be uninstalled from clusterJoão Cunha2019-07-161-0/+1
| | | | | | - Set as uninstallable app - Update docs - Adjust specs
* Add result to MoveService#execute_multiplePatrick Derichs2019-07-161-7/+32
| | | | | | | | It adds a hash response which includes the count, success state and the moved issues itself so the caller has additional information about the result of the process.
* Merge branch 'upgrade-rails-5-2-ce' into 'master'Bob Van Landuyt2019-07-122-4/+3
|\ | | | | | | | | [CE] Upgrade to Rails 5.2 See merge request gitlab-org/gitlab-ce!30052
| * Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-122-4/+3
| | | | | | | | Updates changed method names and fixes spec failures
* | Fix reply to discussion on promoted epic11445-fix-promoted-epic-inherited-discussions-ceAlexandru Croitor2019-07-121-1/+5
| | | | | | | | | | | | | | Regenerate discussion_id for notes that are being copied over to the epic when issue is promoted to epic. https://gitlab.com/gitlab-org/gitlab-ee/issues/11445
* | Merge branch '55623-group-cluster-apis' into 'master'Grzegorz Bizon2019-07-121-7/+10
|\ \ | | | | | | | | | | | | | | | | | | Resolve "API support for group-level clusters" Closes #55623 See merge request gitlab-org/gitlab-ce!30213
| * | Refactor: model errors for multi cluster validationDylan Griffith2019-07-111-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current approach requires catching exceptions to handle these errors and callers are already handling model validations so it seems more appropriate. Also it seemed to convoluted to add this logic directly to the model since the model needs to check too many possible associations to determine whether or not there are more than one cluster since the model doesn't know what it's being created on. Additionally we only wanted to validate during create to avoid the risk of existing models becoming invalid by many different edge cases.
* | | Format `from` and `to` fields in JSON audit logsh-audit-event-json-log-format-from-and-toStan Hu2019-07-111-1/+5
| |/ |/| | | | | | | | | | | | | To make it possible to index the `from` and `to` fields with Elasticsearch and other tools, we need the types to be the same. Currently they are a mix of boolean and string values. Part of https://gitlab.com/gitlab-org/gitlab-ee/issues/12599
* | Merge branch '35757-move-issues-in-boards-pderichs' into 'master'Jan Provaznik2019-07-111-7/+31
|\ \ | | | | | | | | | | | | Add endpoint to move issues in boards See merge request gitlab-org/gitlab-ce!30216
| * | Add endpoint to move multiple issues35757-move-issues-in-boards-pderichsPatrick Derichs2019-07-111-7/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add specs for new endpoint to move multiple issues. Add changelog entry Just check the first issue for the ability to move / update Add specs for exceeding limits and malformed requests Changed name of shared examples Change title of changelog entry Use %i instead of %w Check permission to update issue on project instead of board Use admin_issue permission to check for issue move ability Changed variable name to avoid shadow issue_params method Rename route to bulk_move Change route definition Check permissions for each issue Combine methods for parameters permit check Remove extra context Change description of context Check param for type Array Add unit tests to MoveService Use before_action for permission check Use set instead of let! Use let's instead of set
* | | Give Knative serving permissions to service accountHordur Freyr Yngvason2019-07-112-1/+42
|/ / | | | | | | | | | | | | | | GitLab uses a kubernetes service account to perform deployments. For serverless deployments to work as expected with externally created clusters with their own knative installations (e.g. via Cloud Run), this account requires additional permissions in the serving.knative.dev API group.
* | Add a rubocop for Rails.loggerMayra Cabrera2019-07-1017-21/+21
| | | | | | | | | | | | Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
* | Adds 15m bucket for CI job queueElliot Rushton2019-07-091-1/+1
| |
* | Merge branch 'osw-bypass-push-rules-for-merge-to-ref' into 'master'Stan Hu2019-07-093-17/+16
|\ \ | | | | | | | | | | | | [CE port] Bypass push rules for merge to ref service See merge request gitlab-org/gitlab-ce!30426
| * | [CE port] Bypass push rules for merge to ref serviceosw-bypass-push-rules-for-merge-to-refOswaldo Ferreira2019-07-093-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out push rules to validate commit message does not apply in the context of automatic merge to the refs/merge-requests/:iid/merge. Mainly because if it fails to merge to it, we currently can't give enough preemptive feedback to the user and it'll turn the merge request unmergeable (given we automatically mark it as unmergeable if we can't merge to the ref). In general, it's a systematic operation, which already bypasses user authorization and git hooks. Therefore, this commit makes it bypass the push rules at EE as well.
* | | Skip spam check for task list updatesFelipe Artur2019-07-092-4/+4
| | | | | | | | | | | | Task list updates should not mark users action as spam on akismet.
* | | CE Port of Allow bulk update for group issuesFatih Acet2019-07-091-1/+9
|/ / | | | | | | | | | | | | | | This is a port MR for CE Original MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14141
* | Merge branch 'create-merge-train-ref-ce' into 'master'Douwe Maan2019-07-051-3/+13
|\ \ | | | | | | | | | | | | CE Port: Extend `MergeToRefService` to create merge ref from an arbitrary ref See merge request gitlab-org/gitlab-ce!30361
| * | Extend MergeToRefService for creating merge ref from the other refShinya Maeda2019-07-051-3/+13
| | | | | | | | | | | | | | | | | | | | | Currently, MergeToRefService is specifically designed for createing merge commits from source branch and target branch of merge reqeusts. We extend this behavior to source branch and any target ref paths.
* | | Merge branch 'make-explicit-endpoint-abort-in-auto-merge-ce' into 'master'Kamil Trzciński2019-07-058-10/+42
|\ \ \ | | | | | | | | | | | | | | | | CE Port: Split AutoMergeService interfaces into two `cancel` and `abort` See merge request gitlab-org/gitlab-ce!30249
| * | | Split AutoMergeService interfaces into two `cancel` and `abort`make-explicit-endpoint-abort-in-auto-merge-ceShinya Maeda2019-07-058-10/+42
| |/ / | | | | | | | | | Create explicit endpoint - abort.
* | | Refactor PositionTracer to support different typesPatrick Bajao2019-07-052-4/+7
| | | | | | | | | | | | This is to prepare for supporing image type position tracing
* | | Remove now unused KubernetesService methodsremove_unused_k8s_service_methodsJames Fargher2019-07-051-5/+2
|/ / | | | | | | | | Now that KubernetesService can no longer be a DeploymentPlatform we can remove all kubernetes client code and KubernetesService edge cases.
* | Merge branch '54117-transactional-rebase' into 'master'Douglas Barbosa Alexandre2019-07-041-1/+3
|\ \ | | | | | | | | | | | | | | | | | | Allow asynchronous rebase operations to be monitored Closes #54117 See merge request gitlab-org/gitlab-ce!29940
| * | Allow asynchronous rebase operations to be monitoredNick Thomas2019-07-041-1/+3
| |/ | | | | | | | | | | | | | | | | This MR introduces tracking of the `rebase_jid` for merge requests. As with `merge_ongoing?`, `rebase_in_progress?` will now return true if a rebase is proceeding in sidekiq. After one release, we should remove the Gitaly-based lookup of rebases. It is much better to track this kind of thing via the database.
* | Merge branch 'refactor-pipeline-errors_message-ce' into 'master'Kamil Trzciński2019-07-041-1/+1
|\ \ | | | | | | | | | | | | CE Port: Refactor pipeline errors_message See merge request gitlab-org/gitlab-ce!30116
| * | Refactor pipeline errors_messagerefactor-pipeline-errors_message-ceShinya Maeda2019-07-041-1/+1
| |/ | | | | | | Use the shared method in Ci::Pipeline
* | Fix MWPS system notes shows inconsistent shafix-mwps-shows-inconsistent-sha-ceShinya Maeda2019-07-042-3/+3
|/ | | | Fix the system note service
* Merge branch 'limit-amount-of-tests-returned' into 'master'Stan Hu2019-07-031-1/+5
|\ | | | | | | | | | | | | Limit amount of JUnit tests returned Closes #64035 See merge request gitlab-org/gitlab-ce!30274
| * Limit amount of JUnit tests returnedKamil Trzciński2019-07-031-1/+5
| | | | | | | | | | | | | | | | | | | | Currently, we do not cap amount of tests returned to frontend, thus in some extreme cases we can see a MBs of data stored in Redis. This adds an upper limit of 100 tests per-suite. We will continue showing the total counters correctly, but we will limit amount of tests that will be presented.
* | Merge branch 'issue/55953' into 'master'Sean McGivern2019-07-031-1/+1
|\ \ | | | | | | | | | | | | | | | | | | rename `discussion` to `thread` Closes #55953 See merge request gitlab-org/gitlab-ce!29553
| * \ Merge branch 'master' into michel.engelen/gitlab-ce-issue/55953Sean McGivern2019-07-034-1/+30
| |\ \
| * | | changed string `discussion` to `thread` in timeline update ("[user] resolved ↵Michel Engelen2019-07-021-1/+1
| | | | | | | | | | | | | | | | all threads")
* | | | Merge branch 'jc-deprecate-diverging-count-with-max' into 'master'Jan Provaznik2019-07-031-23/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Deprecate diverging commit count with max parameter Closes gitaly#1702 See merge request gitlab-org/gitlab-ce!30275
| * | | Deprecate diverging commit count with max parameterjc-deprecate-diverging-count-with-maxJohn Cai2019-07-021-23/+1
| | |/ | |/| | | | | | | | | | | | | | | | In 12.0, we turned the feature flag on that effectively turned off the --max-count flag for the count diverging commits call. Since we have commit graphs turned on, this did not affect preformance negatively. Thus, we want to deprecate the call that passes --max-count
* | | Show upcoming status for releasesJason Goodman2019-07-032-0/+5
| | | | | | | | | | | | | | | | | | Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
* | | Add username to deploy tokensKrasimir Angelov2019-07-021-1/+3
|/ / | | | | | | | | | | | | | | | | This new attribute is optional and used when set instead of the default format `gitlab+deploy-token-#{id}`. Empty usernames will be saved as null in the database. Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/50228.
* | Includes logic to persist namespace statisticsMayra Cabrera2019-07-021-0/+22
|/ | | | | | | | | | | | | | | | | | | | | - Add two new ActiveRecord models: - RootNamespaceStoragestatistics will persist root namespace statistics - NamespaceAggregationSchedule will save information when a new update to the namespace statistics needs to be scheduled - Inject into UpdateProjectStatistics concern a new callback that will call an async job to insert a new row onto NamespaceAggregationSchedule table - When a new row is inserted a new job is scheduled. This job will update call an specific service to update the statistics and after that it will delete thee aggregated scheduled row - The RefresherServices makes heavy use of arel to build composable queries to update Namespace::RootStorageStatistics attributes. - Add an extra worker to traverse pending rows on NAmespace::AggregationSchedule table and schedule a worker for each one of this rows. - Add an extra worker to traverse pending rows on NAmespace::AggregationSchedule table and schedule a worker for each one of this rows
* Merge branch '58583-confidential-mr-branch-backend' into 'master'Rémy Coutable2019-07-012-13/+30
|\ | | | | | | | | Support creating an MR/branch on a fork from an issue See merge request gitlab-org/gitlab-ce!29831
| * Fix issues when creating system notes58583-confidential-mr-branch-backendPatrick Bajao2019-06-292-5/+6
| | | | | | | | | | | | | | | | | | | | When `confidential_issue_project_id` is set and the issue is under that project, create the a note about branch creation in that project. If not, do nothing. When creating `new_merge_request` system note, set the project where the MR will be referenced from so it'll be linked to when the MR is created in another project.
| * Support creating an MR on a fork from an issuePatrick Bajao2019-06-291-11/+27
| |
* | Merge branch 'id-stale-branches' into 'master'Grzegorz Bizon2019-07-011-0/+54
|\ \ | |/ |/| | | | | 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/+54
| | | | | | | | Extract diverging_commit_counts into a service class
* | Do not change updated_at on an issue when reordering on an issue boardEugenia Grieff2019-06-281-2/+11
| |
* | Backport CE changes for multiple GroupSAML supportsh-fix-issue-12303Stan Hu2019-06-271-1/+9
| | | | | | | | | | | | This commit makes it possible for https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14420 to handle multiple SAML providers.
* | Merge branch '53811-issue-boards-to-core-projects-backend-ce' into 'master'Stan Hu2019-06-274-20/+21
|\ \ | | | | | | | | | | | | Move Multiple Issue Boards for Projects to Core See merge request gitlab-org/gitlab-ce!29757
| * | Move Multiple Issue Boards for Projects to Core53811-issue-boards-to-core-projects-backend-ceAlexandru Croitor2019-06-264-20/+21
| |/ | | | | | | | | Refactor code to allow multiple issue boards management for projects in CE
* | Speed up obtaining Let's Encrypt certificatesVladimir Shushlin2019-06-261-0/+10
| |
* | Disable Rails SQL query cache when applying service templatessh-service-template-bugStan Hu2019-06-251-1/+1
|/ | | | | | | | | | When the SQL query cache is active, the SELECT query for finding projects to apply service templates returns the same values. This causes an infinite loop because even though bulk INSERT queries are made, the cached results never reflect that progress. To fix this, we call `Project.uncached` around the query to ensure new data is retrieved. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63595
* Merge branch 'sync-merge-ref-upon-mergeability-check' into 'master'Douwe Maan2019-06-243-18/+137
|\ | | | | | | | | Automatically update MR merge-ref along merge status See merge request gitlab-org/gitlab-ce!29569