Commit Graph

27 Commits

Author SHA1 Message Date
Yorick Peterse d0b8f536a1
Remove soft removals related code
This removes all usage of soft removals except for the "pending delete"
system implemented for projects. This in turn simplifies all the query
plans of the models that used soft removals. Since we don't really use
soft removals for anything useful there's no point in keeping it around.

This _does_ mean that hard removals of issues (which only admins can do
if I'm not mistaken) can influence the "iid" values, but that code is
broken to begin with. More on this (and how to fix it) can be found in
https://gitlab.com/gitlab-org/gitlab-ce/issues/31114.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
2018-01-08 17:04:45 +01:00
Maxim Rydkin c295d3362b
move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00
Shinya Maeda d6acd8ec2f Add validate: false. Add validates uniqueness. 2017-08-18 01:43:17 +09:00
Lin Jen-Shin 65e722ee97 Merge remote-tracking branch 'upstream/master' into 30634-protected-pipeline
* upstream/master: (638 commits)
  Simplify background migrations stealing code
  Expire cached user IDs that can see the performance after 5 minutes
  Promote visibility level helpers from Group to Namespace
  Fix off-by-one error in background migration retries
  Recover from all exceptions when stealing bg migration
  Fix label creation from new list for subgroup projects
  move click handler to button. when on the icon it wasn't triggered in firefox
  Fix incorrect AWS ELB metrics.
  Fix wrong link to docs in docs styleguide
  Update issue-related docs
  Refactor groups docs
  Add subgroups limitations to Pages docs
  Update Google launcher details
  Split docs on IP whitelist for monitoring access
  Update health check docs
  Bump fog-core to 1.44.3 and fog providers' plugins to latest
  Introduce have_gitlab_http_status
  Remove Repository#search_files
  Update Pipeline's badge count in Merge Request and Commits view to match real-time content
  Fixes the user order being overriden in the autocomplete controller
  ...
2017-07-17 22:38:37 +08:00
Shinya Maeda 1acaf75d9f Implement ayufan validator 2017-07-06 00:45:26 +09:00
Shinya Maeda dafc341794 Revert "Implement Ci::NestedUniquenessValidator"
This reverts commit 8f0a2b6d78.
2017-07-06 00:23:28 +09:00
Lin Jen-Shin 56ea7a0cfe Merge allowed_to_create? into CreatePipelineService 2017-07-05 21:55:35 +08:00
Shinya Maeda 8f0a2b6d78 Implement Ci::NestedUniquenessValidator 2017-07-05 18:38:37 +09:00
Shinya Maeda 621f9307ff Implement uniqueness_of_in_memory_validator 2017-07-05 18:38:35 +09:00
Shinya Maeda d65d66e08b zj nice catches 2017-07-05 18:38:27 +09:00
Shinya Maeda cfd5caa5e7 Remove dependent => :destroy 2017-07-05 18:38:25 +09:00
Shinya Maeda e364c118a0 Implement variables_attributes create/update cases 2017-07-05 18:38:10 +09:00
Shinya Maeda 507fedf3c3 Controller logic. Delete before modification. Halfway. 2017-07-05 18:37:50 +09:00
Shinya Maeda c99f8e8884 Implement uniqueness_of_in_memory_validator 2017-07-05 18:36:19 +09:00
Shinya Maeda 51730b3a15 zj nice catches 2017-07-05 18:36:18 +09:00
Shinya Maeda a7c4673eb7 Remove dependent => :destroy 2017-07-05 18:36:18 +09:00
Shinya Maeda 3ea04616c3 Implement variables_attributes create/update cases 2017-07-05 18:36:18 +09:00
Shinya Maeda 58d8b9ae62 Controller logic. Delete before modification. Halfway. 2017-07-05 18:36:18 +09:00
Shinya Maeda d278da48f8 pipeline_schedule_variables model/db 2017-07-05 18:36:18 +09:00
Lin Jen-Shin 4408da47b8 Move the check to Pipeline.allowed_to_create?
So that we could use it for the schedule before
trying to use CreatePipelineService
2017-06-06 00:56:38 +08:00
Shinya Maeda 94f7595b9a Define last_pipeline in PipelineScheduleEntity 2017-05-30 23:55:09 +09:00
Shinya Maeda e929897873 Remove bang from update! 2017-05-30 23:55:09 +09:00
Shinya Maeda f8cb5fd65a Add own! method on PipleineSchedule 2017-05-30 23:55:08 +09:00
Shinya Maeda fbd3b3d8a2 Add API support for pipeline schedule 2017-05-30 23:55:08 +09:00
Shinya Maeda 5d8ee3ed1c Validate parameters when active is false 2017-05-29 20:02:09 +09:00
Z.J. van de Weg 9f93395389 Do not schedule pipelines if the user can't
When the owner of a pipelines schedule was either blocked or was removed
from the project, the pipeline schedular would still schedule the
pipeline.

This would than fail however, given the user had no access to the
project and it contents. However, a better way to handle it would be to
not schedule it at all. Furthermore, from now on, such schedules will be
deactivated so the schedule worker can ignore it on the next runs.
2017-05-15 10:01:29 +02:00
Zeger-Jan van de Weg 8df3997a92 Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
Renamed from app/models/ci/trigger_schedule.rb (Browse further)