summaryrefslogtreecommitdiff
path: root/spec/factories
Commit message (Collapse)AuthorAgeFilesLines
* Use title and description fields for issue trackers63690-issue-trackers-titleJarka Košanová2019-07-021-2/+32
| | | | | - instead of using properties - backward compatibility has to be kept for now
* Merge branch 'add-clusters-to-deployment' into 'master'Lin Jen-Shin2019-07-011-0/+4
|\ | | | | | | | | Add clusters association to deployment See merge request gitlab-org/gitlab-ce!29960
| * Use #cluster for prometheus_adapteradd-clusters-to-deploymentThong Kuah2019-06-271-0/+4
| | | | | | | | | | We still fallback to environment.deployment_platform until we can backfill
* | GraphQL mutations for add, remove and toggle emoji62826-graphql-emoji-mutationsLuke Duncalfe2019-06-281-1/+1
|/ | | | | | | | | | | | Adding new `AddAwardEmoji`, `RemoveAwardEmoji` and `ToggleAwardEmoji` GraphQL mutations. Adding new `#authorized_find_with_pre_checks!` and (unused, but for completeness `#authorized_find_with_post_checks!`) authorization methods. These allow us to perform an authorized find, and run our own additional checks before or after the authorization runs. https://gitlab.com/gitlab-org/gitlab-ce/issues/62826
* Add two new ActiveRecord models62214-migrations-and-modelsMayra Cabrera2019-06-253-0/+22
| | | | | | | | - Namespace::Storagestatistics will persist root namespace statistics - Namespace::AggregationSchedule will save information when a new update to the namespace statistics needs to be scheduled Both tables use 'namespace_id' as primary key
* Renew Let's Encrypt certificatesVladimir Shushlin2019-06-241-0/+1
| | | | | | | | Add index for pages domain ssl auto renewal Add PagesDomain.needs_ssl_renewal scope Add cron worker for ssl renewal Add worker for ssl renewal Add pages ssl renewal worker queues settings
* Don't show private keys for letsencrypt certsVladimir Shushlin2019-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | Adds enum certificate_source to pages_domains table with default manually_uploaded Mark certificates as 'gitlab_provided' if the were obtained through Let's Encrypt Mark certificates as 'user_provided' if they were uploaded through controller or api Only show private key in domain edit form if it is 'user_provided' Only show LetsEncrypt option if is enabled by application settings (and feature flag) Refactor and fix some specs to match new logic Don't show Let's Encrypt certificates as well
* Make KubernetesService readonlyJames Fargher2019-06-181-0/+2
| | | | | | | | We are deprecating this service in favor of instance wide clusters. Therefore we removed some code that is not anymore needed for a readonly cluster and also we added some flags to allow for this deprecation. These flags are to be removed in the next release when we finally completelly remove KubernetesService.
* Merge branch '55362-refresh-blank-service-account-token' into 'master'Thong Kuah2019-06-171-0/+4
|\ | | | | | | | | Refresh service_account_token for kubernetes_namespaces See merge request gitlab-org/gitlab-ce!29657
| * Refresh service_account_token for kubernetes_namespaces55362-refresh-blank-service-account-tokenDylan Griffith2019-06-141-0/+4
| | | | | | | | | | | | | | There seems to be several examples where service_account_token is blank even in GitLab.com newly created kubernetes_namespaces . We have not figured out why they are blank but this should hopefully fix some issues similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/55362
* | Merge branch 'generate-spans-for-sections' into 'master'Sean McGivern2019-06-171-0/+20
|\ \ | | | | | | | | | | | | Add collapsible sections to job log See merge request gitlab-org/gitlab-ce!28642
| * | Extract shared examples for duplicate sections and nonFabio Pitino2019-06-171-0/+10
| | |
| * | Ensure duplicate sections collapseFabio Pitino2019-06-171-2/+2
| | |
| * | Add feature spec for collapsible sectionsFabio Pitino2019-06-131-0/+10
| |/
* | Merge branch '58886-issue-tracker-fields' into 'master'Sean McGivern2019-06-171-0/+18
|\ \ | | | | | | | | | | | | Create models for issue trackers data See merge request gitlab-org/gitlab-ce!28598
| * | Create models for issue trackers data58886-issue-tracker-fieldsJarka Košanová2019-06-131-0/+18
| |/ | | | | | | | | - create tables for storing issue trackers properties - add model and basic logic & spec
* | Merge branch '9490-record-repository_type-on-lfs_objects_projects-ce' into ↵Grzegorz Bizon2019-06-171-0/+1
|\ \ | | | | | | | | | | | | | | | | | | 'master' CE backport for gitlab-ee!13894 (Save repository_type to LfsObjectsProject) See merge request gitlab-org/gitlab-ce!29179
| * | CE backport for changes in EE MR 138949490-record-repository_type-on-lfs_objects_projects-ceLuke Duncalfe2019-06-171-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This backports to CE changes that allow the recording of the repository_type in the table lfs_objects_projects. This is in order to allow future pruning of unreferenced LFS objects, as we will need to know which repository to look in for the LFS pointer file. The EE MR that contains the original code and a full explanation of the changes is https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894 EE Issue https://gitlab.com/gitlab-org/gitlab-ee/issues/9490 Note that there was a lot of CE code changed in the EE MR because we want to allow the wiki repository to also use LFS. See https://gitlab.com/gitlab-org/gitlab-ce/issues/43721. As the wiki is an unlicensed feature, a full backport is required to enable this.
* | Merge branch 'error-pipelines-for-blocked-users' into 'master'Grzegorz Bizon2019-06-171-0/+10
|\ \ | |/ |/| | | | | | | | | Preventing blocked users and their PipelineSchdules from creating new Pipelines Closes #47756 See merge request gitlab-org/gitlab-ce!27318
| * preventing blocked users and their PipelineSchdules from creating new Pipelinesdrew cimino2019-06-041-0/+10
| | | | | | | | updated several specs and factories to accomodate new permissions
* | Revert "Merge branch '50070-legacy-attachments' into 'master'"sh-revert-mr-24679Stan Hu2019-06-091-1/+4
| | | | | | | | | | This reverts commit fd19f887dfeeeedb483c4a4fb32f9f768e89389c, reversing changes made to abb2d4c601d796339c8d7cb0c00946696730f198.
* | Merge branch '50070-legacy-attachments' into 'master'Kamil Trzciński2019-06-071-4/+1
|\ \ | | | | | | | | | | | | | | | | | | Migrate legacy uploads Closes #57217 See merge request gitlab-org/gitlab-ce!24679
| * | Migrate legacy uploads to the project location50070-legacy-attachmentsJarka Košanová2019-06-061-4/+1
| |/ | | | | | | | | | | Uploads coming from AttachmentUploader need to be moved to the currently supported location (FileUploader)
* | Add pages domains acme ordersVladimir Shushlin2019-06-061-0/+17
|/ | | | | | | | | | | | | | | | | | | | | | | Extract acme double to helper Create ACME challanges for pages domains * Create order & challange through API * save them to database * request challenge validation We're saving order and challenge as one entity, that wouldn't be correct if we would order certificates for several domains simultaneously, but we always order certificate per domain Add controller for processing acme challenges redirected from pages Don't save acme challenge url - we don't use it Validate acme challenge attributes Encrypt private_key in acme orders
* Merge branch ↵Kamil Trzciński2019-06-041-0/+10
|\ | | | | | | | | | | | | | | | | 'set-real-next-run-at-for-preventing-duplciate-pipeline-creations' into 'master' Make pipeline schedule worker resilient Closes gitlab-com/gl-infra/production#805 and #61955 See merge request gitlab-org/gitlab-ce!28407
| * Make pipeline schedule worker resilientset-real-next-run-at-for-preventing-duplciate-pipeline-creationsShinya Maeda2019-06-031-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, pipeline schedule worker is unstable because it's sometimes killed by excessive memory consumption. In order to improve the performance, we add the following fixes: 1. next_run_at is always real_next_run, which means the value always takes into account of worker's cron schedule 1. Remove exlusive lock. This is already covered by real_next_run change. 1. Use RunPipelineScheduleWorker for avoiding memory killer. Memory consumption is spread to the multiple sidekiq worker.
* | Abstract auto merge processesShinya Maeda2019-06-031-1/+2
|/ | | | | | | | | | | | We have one auto merge strategy today - Merge When Pipeline Succeeds. In order to add more strategies for Merge Train feature, we abstract the architecture to be more extensible. Removed arguments Fix spec
* Merge branch '56959-drop-project_auto_devops_domain' into 'master'Robert Speicher2019-05-311-1/+0
|\ | | | | | | | | | | | | Removes project_auto_devops#domain column Closes #56959 See merge request gitlab-org/gitlab-ce!28574
| * Ignore ProjectAutoDevops domain columnThong Kuah2019-05-311-1/+0
| | | | | | | | | | | | | | | | | | This column is no longer used. The form was removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24580 and other usages removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28460. Remove final usages of :domain
* | Remove legacy artifact related coderemove-legacy-artifacts-related-codeShinya Maeda2019-05-312-17/+12
|/ | | | | | We've already migrated all the legacy artifacts to the new realm, which is ci_job_artifacts table. It's time to remove the old code base that is no longer used.
* Optimise upload path callsSean McGivern2019-05-141-1/+1
| | | | | | | | String#underscore isn't particularly slow, but it's possible for us to call it many times in a users autocomplete request, with mostly-static values ('User', 'Group', etc.). We can memoise this and save a surprising amount of time (around 10% of the total request time in some cases).
* Add improvements to the global search processFrancisco Javier López2019-05-071-0/+1
| | | | | | | 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.
* Implement support for CI variables of type fileKrasimir Angelov2019-05-061-0/+1
| | | | | | | | | 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.
* Fix merge request pipeline exist methodfix-merge-request-pipeline-exist-methodShinya Maeda2019-05-061-3/+3
| | | | Refactor
* Add gitlab-managed option to clusters formMayra Cabrera2019-05-031-1/+1
| | | | | | | | 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
* Remove disabled pages domainsVladimir Shushlin2019-04-301-0/+4
| | | | | Domain will be removed by verification worker after 1 week of being disabled
* Rename #timeouted -> #timed_outDylan Griffith2019-04-291-1/+1
|
* Destroy app on successful uninstallationThong Kuah2019-04-291-4/+0
| | | | | | | | Rescue and put into :uninstall_errored if something goes wrong while destroying, which can happen. I think it is safe to expose the full error message from the destroy error. Remove the :uninstalled state as no longer used.
* Define state transitions for uninstalling appsThong Kuah2019-04-291-4/+17
| | | | | Added :uninstalled state as wasn't sure if we should be destroying the cluster apps
* Add deployment events to chat notification servicesJason Goodman2019-04-261-1/+1
| | | | | 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/+8
| | | | | | 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.
* Fix wrong use of ActiveRecord in PoolRepositoryJacob Vosmaer2019-04-201-0/+1
|
* Revert "Remove HipChat integration from GitLab"Sean McGivern2019-04-101-0/+6
| | | | This reverts commit a5378665a1dc0b9c8dc3a4fa279a0eb78aac5aac.
* Mark unverified pages domains for removalVladimir Shushlin2019-04-091-0/+4
| | | | | | | Set pages_domain.remove_at when disabling it Add specs for marking pages domain for removal Notify user that domain is being removed Add documentation
* Add part of needed codeGosia Ksionek2019-04-051-0/+1
| | | | | | | | | | | | | | | | | Add columns to store project creation settings Add project creation level column in groups and default project creation column in application settings Remove obsolete line from schema Update migration with project_creation_level column existence check Rename migrations to avoid conflicts Update migration methods Update migration method
* Merge branch '54506-show-error-when-namespace-svc-missing' into 'master'Grzegorz Bizon2019-04-051-0/+5
|\ | | | | | | | | | | | | Show error when namespace/svc account missing Closes #54506 See merge request gitlab-org/gitlab-ce!26362
| * Detailed status for builds that fail prerequisitesTiger2019-04-021-0/+5
| | | | | | | | | | | | | | Create FailedUnmetPrerequisites status to allow custom messaging for builds that were unable to be queued due to failing to meet prerequisites (eg. failing to create Kubernetes namespace for deployment).
* | Add new field to Clusters tableMayra Cabrera2019-04-021-0/+5
|/ | | | | | | | Adds boolean field 'managed' to clusters table. This new column will be used to distinguish those clusters that are automatically managed by gitlab. Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
* Create detached merge request pipelinespersist-fulll-ref-path-for-mr-pipelinesShinya Maeda2019-03-291-3/+14
| | | | | | | | | | | | | | | | | | By using `refs/merge-requests/:iid/head` ok ok Improve naming nicely Add nice tests add nice tests fix some more revert
* Merge branch '54670-external-diffs-when-outdated' into 'master'Sean McGivern2019-03-281-0/+16
|\ | | | | | | | | | | | | Allow external diffs to be used conditionally Closes #54670 See merge request gitlab-org/gitlab-ce!25432