summaryrefslogtreecommitdiff
path: root/spec/models
Commit message (Collapse)AuthorAgeFilesLines
* Show disabled project repo mirrorsshow-disabled-mirrorsLuke Bennett2019-05-071-0/+16
| | | | | Show disabled mirrors with a badge so that they can be deleted by project owners.
* Implement support for CI variables of type fileKrasimir Angelov2019-05-064-4/+7
| | | | | | | | | Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
* Merge branch '30093-apply-bfg-object-map-to-database' into 'master'Douwe Maan2019-05-061-0/+27
|\ | | | | | | | | | | | | Remove cleaned up OIDs from database and cache Closes #30093 See merge request gitlab-org/gitlab-ce!26555
| * Remove cleaned up OIDs from database and cacheNick Thomas2019-05-061-0/+27
| |
* | Fix merge request pipeline exist methodfix-merge-request-pipeline-exist-methodShinya Maeda2019-05-063-5/+5
|/ | | | Refactor
* Allow guests users to access project releasesKrasimir Angelov2019-05-031-0/+5
| | | | | | | | | | | | | | | | | | This is step one of resolving https://gitlab.com/gitlab-org/gitlab-ce/issues/56838. Here is what changed: - Revert the security fix from bdee9e8412d. - Do not leak repository information (tag name, commit) to guests in API responses. - Do not include links to source code in API responses for users that do not have download_code access. - Show Releases in sidebar for guests. - Do not display links to source code under Assets for users that do not have download_code access. GET ':id/releases/:tag_name' still do not allow guests to access releases. This is to prevent guessing tag existence.
* Add gitlab-managed option to clusters formMayra Cabrera2019-05-032-0/+30
| | | | | | | | When this option is enabled, GitLab will create namespaces and service accounts as usual. When disabled, GitLab wont create any project specific kubernetes resources Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
* Adds a way to start multiple manual jobs in stageMayra Cabrera2019-05-023-0/+36
| | | | | | | | | | - Adds an endpoint on PipelinesController - Adds a service that iterates over every build in a stage and plays it. - Includes 'play_manual' details on EntitySerializer - Builds a new Stage state: PlayManual. An stage can take this status if it has manual builds or an skipped, scheduled or manual status - Includes FE modifications and specs
* Add support for two-step Gitaly Rebase RPCLuke Duncalfe2019-05-021-0/+85
| | | | | | | | | | | | | | The new two-step Gitaly `Rebase` RPC yields the rebase commit SHA to the client before proceeding with the rebase. This avoids an issue where the rebase commit SHA was returned when the RPC had fully completed, and in some cases this would be after the Rails `post_receive` worker services had already run. In these situations, the merge request did not yet have its rebase_commit_sha attribute set introducing the possibility for bugs (such as previous approvals being reset). https://gitlab.com/gitlab-org/gitlab-ee/issues/5966
* Update deployment chat message notificationJason Goodman2019-05-021-5/+8
| | | | | Include link to user and commit title. Rearrange text
* Add packages_size to ProjectStatisticsAlessio Caiazza2019-05-022-13/+29
| | | | | This new field will allow to keep track of the storage used by the packages features, it provides also aggregation at namespace level.
* Merge branch '9932-fix-deprecated-attribute_changed-ce' into 'master'Andreas Brandl2019-05-022-14/+20
|\ | | | | | | | | [CE] Remove deprecated usage of `attribute_changed?` See merge request gitlab-org/gitlab-ce!27577
| * Remove deprecated uses of attribute_changed?9932-fix-deprecated-attribute_changed-ceHeinrich Lee Yu2019-04-302-14/+20
| | | | | | | | Prepares us for upgrade to Rails 5.2
* | Merge branch ↵Douwe Maan2019-05-021-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | '53064-bypassing-pipeline-jobs-by-canceling-the-pipeline-and-manually-running-later-jobs' into 'master' Disable retrying cancelled jobs Closes #53064 See merge request gitlab-org/gitlab-ce!27503
| * | Update specs that use retryable canceled jobsmfluharty2019-04-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Specs that test canceled jobs now - expect them not to be retryable or playable - expect them not to show retry buttons Specs that test retryability now - use failed status instead of canceled status
* | | Merge branch 'sh-allow-equal-level-in-subgroup-membership' into 'master'James Lopez2019-05-021-0/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Allow a member to have an access level equal to parent group Closes gitlab-ee#11323 See merge request gitlab-org/gitlab-ce!27913
| * | | Allow a member to have an access level equal to parent groupsh-allow-equal-level-in-subgroup-membershipStan Hu2019-04-301-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppose you have this configuration: 1. Subgroup `hello/world` 2. Subgroup `hello/mergers`. 3. Project `hello/world/my-project` has invited group `hello/world` to access protected branches. 4. The rule allows the group to merge but no one can push. 5. User `newuser` has Owner access to the parent group `hello`. Previously, there was no way for the user `newuser` to be added to the `hello/mergers` group since the validation only allowed a user to be added at a higher access level. Since membership in a subgroup confers certain access rights, such as being able to merge or push code to protected branches, we have to loosen the validation and allow someone to be added at an equal level granted by the parent group. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/11323
* | | | Update metrics dashboard API to load yml from repoSarah Yasonik2019-05-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the EnvironmentController#metrics_dashboard endpoint to support a "dashboard" param, which can be used to specify the filepath of a dashboard configuration from a project repository. Dashboard configurations are expected to be stored in .gitlab/dashboards/. Updates dashboard post-processing steps to exclude custom metrics, which should only display on the system dashboard.
* | | | Merge branch 'add-project-level-config-for-merge-train-ce' into 'master'Sean McGivern2019-05-011-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | CE Backport: Add project level config for merge train See merge request gitlab-org/gitlab-ce!27819
| * | | Add project level config for merge trainadd-project-level-config-for-merge-train-ceShinya Maeda2019-04-301-1/+1
| | | | | | | | | | | | | | | | We add the option and expose the parameter for frontend work
* | | | Fix environment automatic on_stop triggerShinya Maeda2019-04-301-0/+44
|/ / / | | | | | | | | | | | | | | | | | | Due to the nature of pipelines for merge requests, deployments.ref can be a merge request ref instead of a branch name. We support the environment auto-stop hook for this case
* | | Remove disabled pages domainsVladimir Shushlin2019-04-301-0/+28
| | | | | | | | | | | | | | | Domain will be removed by verification worker after 1 week of being disabled
* | | Minor refactor of prometheus_specDylan Griffith2019-04-291-4/+2
| | |
* | | In Prometheus use update! instead of updateDylan Griffith2019-04-291-1/+1
| | | | | | | | | | | | | | | In order to not miss any errors since we are not checking the return value of update
* | | Deactivate any prometheus_service upon destroyThong Kuah2019-04-291-0/+17
| | | | | | | | | | | | Basically does the reverse of after_transition to :installed.
* | | Teach Prometheus about #uninstall_commandThong Kuah2019-04-291-0/+28
| | | | | | | | | | | | Add specs
* | | Expose can_uninstall in cluster_status.jsonThong Kuah2019-04-297-0/+51
| |/ |/| | | | | | | | | | | | | Only prometheus can be uninstalled atm, the rest will be dealt with later. Presumption is that new application types will have uninstallation implmemented at the same time.
* | Merge branch 'fix-ci-commit-ref-name-and-slug' into 'master'Sean McGivern2019-04-293-0/+68
|\ \ | | | | | | | | | | | | | | | | | | Make `CI_COMMIT_REF_NAME` and `SLUG` variable idempotent Closes #60822 See merge request gitlab-org/gitlab-ce!27663
| * | Fix CI_COMMIT_REF_NAME and SLUG variableShinya Maeda2019-04-293-0/+68
| | | | | | | | | | | | | | | | | | | | | With Pipelines for Merge Requests feature, users cannout keep using $CI_COMMIT_REF_NAME and _SLUG predefined variables for dynamic environments. We fix this problem by explicitly looking at the source ref.
* | | Merge branch 'use-keyword-args-for-databuilder-push' into 'master'Douglas Barbosa Alexandre2019-04-291-6/+5
|\ \ \ | | | | | | | | | | | | | | | | Use keyword args for databuilder push See merge request gitlab-org/gitlab-ce!24088
| * | | Use all keyword args for DataBuilder::Push.build()Jonathon Reinhart2019-04-251-6/+5
| | | |
* | | | Merge remote-tracking branch 'origin/master'John T Skarbek2019-04-298-2/+323
|\ \ \ \
| * \ \ \ Merge branch 'bvl-initialize-design-repo-ce' into 'master'Douwe Maan2019-04-291-0/+65
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Port changes for design management to CE See merge request gitlab-org/gitlab-ce!27555
| | * | | | Port changes for design management to CEBob Van Landuyt2019-04-291-0/+65
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | This ports the changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10462/ to CE
| * | | | Fix deployments for Kubernetes service templatesTiger2019-04-291-0/+6
| |/ / / | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27687
| * | | Add Let's Encrypt application settingsVladimir Shushlin2019-04-271-0/+14
| | | | | | | | | | | | | | | | | | | | Store Let's Encrypt account email in application settings Also add explicit terms of service consent
| * | | Add deployment events to chat notification servicesJason Goodman2019-04-264-0/+181
| | | | | | | | | | | | | | | | | | | | This enables sending a chat message to Slack or Mattermost upon a successful, failed, or canceled deployment
| * | | Add ProjectMetricsDashboardSetting model and tableReuben Pereira2019-04-261-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | This new table will be used to store the external_dashboard_url which allows users to add a link to their external dashboards (ex Grafana) to the Metrics dashboard.
| * | | Merge branch 'use-constant-for-helm-runner-check' into 'master'Grzegorz Bizon2019-04-261-2/+2
| |\ \ \ | | |/ / | |/| | | | | | | | | | Use constants for asserstion for helm chart test See merge request gitlab-org/gitlab-ce!27629
| | * | Use constants for assertion for helm chart testSteve Azzopardi2019-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We are duplicating the value from the constant `Clusters::Applications::Runner::VERSION` inside of the tests which results into developers having to update the tests as well when they want to upgrade the Helm chart used for GitLab Runner
* | | | Merge branch 'security-approval-race-condition' into 'master'GitLab Release Tools Bot2019-04-251-0/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add ApplicationRecord#safe_ensure_unique method See merge request gitlab/gitlabhq!3054
| * | | | Add ApplicationRecord#safe_ensure_unique methodPatrick Bajao2019-04-121-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port of https://dev.gitlab.org/gitlab/gitlab-ee/merge_requests/866 to CE excluding the migration and service changes as they don't apply to CE.
* | | | | Merge branch 'security-pb-email-watchers-no-access' into 'master'GitLab Release Tools Bot2019-04-251-4/+36
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | Stop sending emails to users who can't read commit See merge request gitlab/gitlabhq!3060
| * | | | Stop sending emails to users who can't read commitPatrick Bajao2019-04-161-4/+36
| |/ / / | | | | | | | | | | | | | | | | | | | | This is to ensure that only users will be able receive an email if they can read a commit from the repository even if they are watching the activity of it.
* | | | Merge branch 'fix-lazy-blobs-requesting-all-previous-blobs' into 'master'Dmitriy Zaporozhets2019-04-251-0/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that we only request blobs in one batch Closes #60829 See merge request gitlab-org/gitlab-ce!27625
| * | | | Ensure that we only request blobs in one batchSean McGivern2019-04-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blob.lazy adds a blob to a batch to load at a later point, using the BatchLoader library. Whenever any lazy blob's attributes are accessed, all lazy blobs requested to that point will be loaded. BatchLoader, the library we use for this, should only request items in a batch once. That is, if we have these batches: 1. a, b, c 2. d, e, f Then a, b, and c should only be requested in the first batch. But if you modify the list of items in the batch, then the second batch will request a, b, c, d, e, f, which is almost certainly not what we want! https://github.com/exAspArk/batch-loader/issues/44 is the upstream issue for this, but we can also solve this in our application by not modifying the arguments we're using inside a BatchLoader batch.
* | | | | Update list_last_commits_for_tree response path field to path_bytesJohn Cai2019-04-241-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the gitaly client to use path_bytes field instead of the deprecated path field in list_last_commits_for_tree_response. Also adds a test to guard against non-utf8 path data
* | | | | Added list_pages method to avoid loading all wiki pages contentFrancisco Javier López2019-04-252-48/+92
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inside a wiki, when we show the sidebar or browse to the `pages`, all page contents are retrieved from Gitaly and that is a waste of resources, since no content from that pages are going to be showed. This MR introduces the method `ProjectWiki#list_pages`, which uses new wiki_list_pages RPC call to retrieve pages without content Also in the `WikisController` we're using the method to show pages in the sidebar and also on the `pages` page.
* | | | Merge branch 'add-ci-variable-protected-ref' into 'master'Grzegorz Bizon2019-04-243-3/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add CI variable CI_REF_PROTECTED See merge request gitlab-org/gitlab-ce!26716
| * | | | Make sure that CI_COMMIT_REF_PROTECTED is a boolJason van den Hurk2019-04-181-1/+1
| | | | |