gitlab-org--gitlab-foss/spec
Yorick Peterse c63e322158
Add many foreign keys to the projects table
This removes the need for relying on Rails' "dependent" option for data
removal, which is _incredibly_ slow (even when using :delete_all) when
deleting large amounts of data. This also ensures data consistency is
enforced on DB level and not on application level (something Rails is
really bad at).

This commit also includes various migrations to add foreign keys to
tables that eventually point to "projects" to ensure no rows get
orphaned upon removing a project.
2017-07-06 12:01:36 +02:00
..
bin
config
controllers Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
db/production Handle case where GITLAB_PROMETHEUS_METRICS_ENABLED is non boolean value by defaulting to false 2017-06-06 13:16:55 +02:00
factories Merge branch '33772-readonly-gitlab-ci-cache' into 'master' 2017-07-06 07:40:43 +00:00
features Merge branch '34698-fix-transient-failure' into 'master' 2017-07-06 08:30:57 +00:00
finders Hide archived project labels from group issue tracker 2017-06-30 16:22:00 -03:00
fixtures Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
helpers Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
initializers Instrument Unicorn with Ruby exporter 2017-07-04 15:28:34 +00:00
javascripts Handles realtime with 2 states for environments table 2017-07-05 16:08:53 +00:00
lib Merge branch '33772-readonly-gitlab-ci-cache' into 'master' 2017-07-06 07:40:43 +00:00
mailers Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
migrations Rename the migration test to match the migration path 2017-06-27 18:29:23 +08:00
models Add many foreign keys to the projects table 2017-07-06 12:01:36 +02:00
policies Implement review comments for !12445 from @jneen. 2017-07-03 05:14:00 +00:00
presenters Add many foreign keys to the projects table 2017-07-06 12:01:36 +02:00
requests Merge branch '33657-user-projects-api' into 'master' 2017-07-06 09:18:06 +00:00
routing Split up MergeRequestsController 2017-06-28 18:17:44 -05:00
rubocop/cop Add ProjectPathHelper cop 2017-07-05 11:12:00 -05:00
serializers Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
services Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
sidekiq/cron
support Merge branch '32815--Add-Custom-CI-Config-Path' into 'master' 2017-07-06 07:20:36 +00:00
tasks Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
unicorn Increase unicorn test boot timeout to 5 minutes 2017-06-08 18:35:55 +02:00
uploaders Fix filename method of GitlabUploader to return always real filename 2017-06-13 00:37:12 +02:00
validators Rebuild the dynamic path before validating it 2017-06-21 16:09:35 +02:00
views Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
workers Add many foreign keys to the projects table 2017-07-06 12:01:36 +02:00
factories_spec.rb Lint our factories creation in addition to their build 2017-06-02 19:06:50 +02:00
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00