summaryrefslogtreecommitdiff
path: root/spec/factories
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* 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
| * Allow external diffs to be used conditionallyNick Thomas2019-03-271-0/+16
| | | | | | | | | | | | | | | | | | | | Since external diffs are likely to be a bit slower than in-database ones, add a mode that makes diffs external after they've been obsoleted by events. This should strike a balance between performance and disk space. A background cron drives the majority of migrations, since diffs become outdated through user actions.
* | Prepare suggestion implementation for multi-lineOswaldo Ferreira2019-03-271-0/+6
|/ | | | | | Adds the groundwork needed in order to persist multi-line suggestions, while providing the parsing strategy which will be reused for the **Preview** as well.
* Improvements for Knative installationMayra Cabrera2019-03-251-0/+4
| | | | | | | Displays Knative domain field automatically after Helm is successfully installed. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56954
* Tweak FactoryBot definition for clustersTiger2019-03-201-2/+2
| | | | | Only create an associated project or group if there were none already specified.
* Add :preparing status to HasStatusTiger2019-03-203-0/+16
| | | | | | | | | | | Introduces a new status for builds between :created and :pending that will be used when builds require one or more prerequisite actions to be completed before being picked up by a runner (such as creating Kubernetes resources before deploying). The existing :created > :pending transition is unchanged, so only builds that require preparation will use the :preparing status.
* Add attached flag to pipeline entityShinya Maeda2019-03-131-2/+21
| | | | | | | | | | | | | | | | | | Add spec Fix Fix Add changelog Drop attached Remove attached Update changelog ok
* Make all_pipelines method compatible with pipelines for merge requestsShinya Maeda2019-03-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it sane Include merge ref head Fix union Improve a bit Add spec remove add spec Add changelog fix coding offence Apply suggestion to spec/models/merge_request_spec.rb ok ok Fix Fix spec Fix spec fix Simplify the things Memoize OK a
* Backports EE change for expanded pipelinesFilipa Lacerda2019-03-121-0/+6
|
* Enable/disable Auto DevOps at Group levelMayra Cabrera2019-03-122-0/+12
| | | | | | | | | | | | - Includes instance methods on Group model to detect when a group has AutoDevOps explicitly/implicitly enabled/disabled. - Includes migration to add a new column to namespaces table - Add UI necessary modifications - Add service and controller to update auto devops related instances - Updates project and groups auto devops badges Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52447
* Add suffix for merge request eventShinya Maeda2019-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix ok Add spec Fix ok Fix Add changelog Fix Add memoization a fix
* Fix inconsistent `branch?` behaviorShinya Maeda2019-03-011-0/+9
| | | | | | | | | | between Ci::Pipeline and Ci::Build Add spec Add more tests ok
* Merge branch ↵Kamil Trzciński2019-02-272-0/+2
|\ | | | | | | | | | | | | '10014-ee-spec-models-ci-build_spec-rb-ee-spec-requests-api-runner_spec-rb-and-ee-spec-services-ci-process_pipeline_service_spec-rb-are-all-failing-ce' into 'master' Revert "Merge branch 'revert-8baf9e5f' into 'master'" See merge request gitlab-org/gitlab-ce!25584
| * Revert "Merge branch 'revert-8baf9e5f' into 'master'"Matija Čupić2019-02-272-0/+2
| | | | | | | | | | This reverts commit f5201a816f2eff9393e16f362403451e5d86ee6c, reversing changes made to 48e6db0dad6f256e8423e0bd6c9b254803f50ccf.
* | Merge branch '42086-project-fetch-statistics-api-http-only' into 'master'57125-heatmap-chart-typeNick Thomas2019-02-271-0/+8
|\ \ | |/ |/| | | | | | | | | Resolve "Project fetch statistics API (HTTP only)" Closes #42086 See merge request gitlab-org/gitlab-ce!23596
| * Add project http fetch statistics APIJacopo2019-02-271-0/+8
| | | | | | | | | | | | The API get projects/:id/traffic/fetches allows user with write access to the repository to get the number of clones for the last 30 days.
* | Revert "Merge branch '13784-simple-masking-of-protected-variables-in-logs' ↵Kamil Trzciński2019-02-262-2/+0
| | | | | | | | | | | | into 'master'" This reverts merge request !25293
* | Merge branch 'add_YouTrack_integration' into 'master'Sean McGivern2019-02-261-0/+14
|\ \ | | | | | | | | | | | | | | | | | | Added YouTrack integration Closes #42595 See merge request gitlab-org/gitlab-ce!25361
| * | Remove new_issue_url field from YouTrack integration serviceKotau Yauhen2019-02-211-2/+1
| | |
| * | Added YouTrack integrationYauhen Kotau2019-02-181-0/+15
| | | | | | | | | | | | Fixes gitlab-org/gitlab-ce#42595
* | | Add Maskable concern for CI variablesMatija Čupić2019-02-262-0/+2
| |/ |/| | | | | | | This adds a concern that abstracts the concept of masking a variable, including the RegEx for validation.
* | Remove undigested token column from personal_access_tokens tableImre Farkas2019-02-201-2/+3
| | | | | | | | | | Token column are no longer used as token values are stored digested in token_digest.
* | Rename spec/factories/import_state.rb to spec/factories/import_states.rbRémy Coutable2019-02-181-0/+0
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Refactor spec/factories/users.rb to allow EE to extend itRémy Coutable2019-02-181-3/+8
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>