diff --git a/.gitignore b/.gitignore index ba33ae8..26ab947 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ dump/* !log/.keep !dump/.keep *.gem -.byebug_history \ No newline at end of file +.byebug_history +*.code-workspace diff --git a/README.md b/README.md index 8eb7b56..7e07ac7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # README -*travis-backup-for-v3* is an application that helps with housekeeping and backup for Travis CI database v3.0. It removes requests and builds with their dependencies, as long as they are older than given threshold says. +*travis-backup-for-v3* is an application that helps with housekeeping and backup for Travis CI database v3.0. By default it removes requests and builds with their dependencies, as long as they are older than given threshold says (and backups them in files, if this option is active). It can also be used to remove specified users, organizations or repositories with their dependencies. ### Installation and run @@ -55,6 +55,8 @@ backup.run(repo_id: 1) #### Special modes +Using `--user_id`, `--org_id` or `--repo_id` flag without setting `--threshold` results in removing the specified user/organization/repository with all its dependencies. It can be combined with `--backup` flag in order to save removed data in files. + Using `--dry_run` flag you can check which data would be removed by gem, but without removing them actually. Instead of that reports will be printed on standard output. This flag can be also combined with special modes. ### Configuration options diff --git a/db/schema.sql b/db/schema.sql index 5645169..6030003 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -9,7 +9,6 @@ SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET client_min_messages = warning; -SET row_security = off; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - diff --git a/lib/backup/save_nullified_rels_to_file.rb b/lib/backup/save_nullified_rels_to_file.rb index fb9c848..8f29287 100644 --- a/lib/backup/save_nullified_rels_to_file.rb +++ b/lib/backup/save_nullified_rels_to_file.rb @@ -7,7 +7,7 @@ def save_nullified_rels_to_file(rels_hash) @file_index = 1 rels_hash.each do |name, rels| - rels&.compact&.each_slice(@config.limit.to_i) do |rels_batch| + rels&.compact&.sort{|a, b| a.to_s <=> b.to_s}&.each_slice(@config.limit.to_i) do |rels_batch| save_rels_batch_to_file(name, rels_batch) end end @@ -18,7 +18,7 @@ def save_rels_batch_to_file(name, rels_batch) export = {} export[:table_name] = model.table_name - export[:nullified_relationships] = rels_batch.sort{|a, b| a.to_s <=> b.to_s} + export[:nullified_relationships] content = JSON.pretty_generate(export) file_name = "nullified_relationships/build_#{@file_index}.json" diff --git a/lib/config.rb b/lib/config.rb index 8b02f46..d3b3d9c 100644 --- a/lib/config.rb +++ b/lib/config.rb @@ -131,7 +131,8 @@ def set_values(args) def check_values if !@move_logs && !@remove_orphans && !@threshold && !@user_id && !@org_id && !@repo_id && !@load_from_files message = abort_message("Please provide the threshold argument. Data younger than it will be omitted. " + - "Threshold defines number of months from now.") + "Threshold defines number of months from now. Alternatively you can define user_id, org_id or repo_id " + + "to remove whole user, organization or repository with all dependencies.") abort message end @@ -151,9 +152,11 @@ def check_values def abort_message(intro) "\n#{intro}\n\nExample usage:\n"+ - "\n $ bin/travis_backup 'postgres://my_database_url' --threshold 6\n" + + "\n $ bin/travis_backup 'postgres://my_database_url' --threshold 6" + + "\n $ bin/travis_backup 'postgres://my_database_url' --user_id 1\n" + "\nor using in code:\n" + - "\n Backup.new(database_url: 'postgres://my_database_url', threshold: 6)\n" + + "\n Backup.new(database_url: 'postgres://my_database_url', threshold: 6)" + + "\n Backup.new(database_url: 'postgres://my_database_url', user_id: 1)\n" + "\nYou can also set it using environment variables or configuration files.\n" end diff --git a/lib/models/deleted_build.rb b/lib/models/deleted_build.rb index ce39f05..77aa54d 100644 --- a/lib/models/deleted_build.rb +++ b/lib/models/deleted_build.rb @@ -14,16 +14,7 @@ class DeletedBuild < Model belongs_to :build_config, foreign_key: :config_id, class_name: 'BuildConfig' self.primary_key = 'id' - # has_many :jobs, -> { order('id') }, as: :source, dependent: :destroy - # has_many :repos_for_that_this_build_is_current, foreign_key: :current_build_id, dependent: :destroy, class_name: 'Repository' - # has_many :repos_for_that_this_build_is_last, foreign_key: :last_build_id, class_name: 'Repository' - # has_many :tags_for_that_this_build_is_last, foreign_key: :last_build_id, class_name: 'Tag' - # has_many :branches_for_that_this_build_is_last, foreign_key: :last_build_id, class_name: 'Branch' - # has_many :stages - # has_many :deleted_jobs, -> { order('id') }, as: :source, dependent: :destroy - # has_many :deleted_tags_for_that_this_build_is_last, foreign_key: :last_build_id, class_name: 'DeletedTag' - # has_many :deleted_stages # def self.default_dependencies_symbols_to_nullify # [ diff --git a/lib/models/deleted_build_config.rb b/lib/models/deleted_build_config.rb index 48641dc..e4a4635 100644 --- a/lib/models/deleted_build_config.rb +++ b/lib/models/deleted_build_config.rb @@ -5,6 +5,4 @@ class DeletedBuildConfig < Model belongs_to :repository self.primary_key = 'id' - # has_many :builds, foreign_key: :config_id, class_name: 'Build' - # has_many :deleted_builds, foreign_key: :config_id, class_name: 'DeletedBuild' end diff --git a/lib/models/deleted_commit.rb b/lib/models/deleted_commit.rb index 46c5127..0da240f 100644 --- a/lib/models/deleted_commit.rb +++ b/lib/models/deleted_commit.rb @@ -7,11 +7,5 @@ class DeletedCommit < Model belongs_to :repository belongs_to :tag self.primary_key = 'id' - # has_many :builds - # has_many :jobs - # has_many :requests - # has_many :deleted_builds - # has_many :deleted_jobs - # has_many :deleted_requests end diff --git a/lib/models/deleted_job.rb b/lib/models/deleted_job.rb index 6b856fc..d63135d 100644 --- a/lib/models/deleted_job.rb +++ b/lib/models/deleted_job.rb @@ -10,6 +10,4 @@ class DeletedJob < Model belongs_to :stage belongs_to :job_config, foreign_key: :config_id, class_name: 'JobConfig' self.primary_key = 'id' - # has_many :queueable_jobs - # has_many :job_versions end diff --git a/lib/models/deleted_job_config.rb b/lib/models/deleted_job_config.rb index 406f559..c4c9bc0 100644 --- a/lib/models/deleted_job_config.rb +++ b/lib/models/deleted_job_config.rb @@ -5,6 +5,4 @@ class DeletedJobConfig < Model belongs_to :repository self.primary_key = 'id' - # has_many :jobs, foreign_key: :config_id, class_name: 'Job' - # has_many :deleted_jobs, foreign_key: :config_id, class_name: 'DeletedJob' end diff --git a/lib/models/deleted_pull_request.rb b/lib/models/deleted_pull_request.rb index 06109af..b8b412e 100644 --- a/lib/models/deleted_pull_request.rb +++ b/lib/models/deleted_pull_request.rb @@ -5,8 +5,4 @@ class DeletedPullRequest < Model belongs_to :repository self.primary_key = 'id' - # has_many :requests - # has_many :builds - # has_many :deleted_requests - # has_many :deleted_builds end diff --git a/lib/models/deleted_request.rb b/lib/models/deleted_request.rb index 38adc9f..8c2dace 100644 --- a/lib/models/deleted_request.rb +++ b/lib/models/deleted_request.rb @@ -13,14 +13,4 @@ class DeletedRequest < Model belongs_to :request_yaml_configs belongs_to :request_configs self.primary_key = 'id' - # has_many :abuses - # has_many :messages, as: :subject - # has_many :jobs, as: :source - # has_many :builds - # has_many :request_payloads - # has_many :request_raw_configurations - # has_many :deleted_jobs, as: :source - # has_many :deleted_builds - # has_many :deleted_request_payloads - # has_many :deleted_request_raw_configurations end diff --git a/lib/models/deleted_request_config.rb b/lib/models/deleted_request_config.rb index b90e110..3ff3700 100644 --- a/lib/models/deleted_request_config.rb +++ b/lib/models/deleted_request_config.rb @@ -5,6 +5,4 @@ class DeletedRequestConfig < Model belongs_to :repository self.primary_key = 'id' - # has_many :requests, foreign_key: :config_id, class_name: 'Request' - # has_many :deleted_requests, foreign_key: :config_id, class_name: 'DeletedRequest' end diff --git a/lib/models/deleted_request_raw_config.rb b/lib/models/deleted_request_raw_config.rb index 9de542a..b936ede 100644 --- a/lib/models/deleted_request_raw_config.rb +++ b/lib/models/deleted_request_raw_config.rb @@ -5,6 +5,4 @@ class DeletedRequestRawConfig < Model belongs_to :repository self.primary_key = 'id' - # has_many :request_raw_configurations - # has_many :deleted_request_raw_configurations end diff --git a/lib/models/deleted_request_yaml_config.rb b/lib/models/deleted_request_yaml_config.rb index 1346930..3f01af2 100644 --- a/lib/models/deleted_request_yaml_config.rb +++ b/lib/models/deleted_request_yaml_config.rb @@ -5,6 +5,4 @@ class DeletedRequestYamlConfig < Model belongs_to :repository self.primary_key = 'id' - # has_many :requests, foreign_key: :yaml_config_id, class_name: 'Request' - # has_many :deleted_requests, foreign_key: :yaml_config_id, class_name: 'DeletedRequest' end diff --git a/lib/models/deleted_stage.rb b/lib/models/deleted_stage.rb index 65e9fec..182c0c6 100644 --- a/lib/models/deleted_stage.rb +++ b/lib/models/deleted_stage.rb @@ -5,6 +5,4 @@ class DeletedStage < Model belongs_to :build self.primary_key = 'id' - # has_many :jobs - # has_many :deleted_jobs end diff --git a/lib/models/deleted_tag.rb b/lib/models/deleted_tag.rb index 528f816..72081a6 100644 --- a/lib/models/deleted_tag.rb +++ b/lib/models/deleted_tag.rb @@ -6,10 +6,4 @@ class DeletedTag < Model belongs_to :last_build, foreign_key: :last_build_id, class_name: 'Build' belongs_to :repository self.primary_key = 'id' - # has_many :builds - # has_many :commits - # has_many :requests - # has_many :deleted_builds - # has_many :deleted_commits - # has_many :deleted_requests end diff --git a/spec/backup/remove_specified_spec.rb b/spec/backup/remove_specified_spec.rb index db14220..a6c73b0 100644 --- a/spec/backup/remove_specified_spec.rb +++ b/spec/backup/remove_specified_spec.rb @@ -141,8 +141,6 @@ end let!(:repository) { - FactoryBot.rewind_sequences - db_helper.do_without_triggers do FactoryBot.create( :repository_for_removing_heavy_data, @@ -232,253 +230,247 @@ end end - # describe 'remove_user_with_dependencies' do - # before(:each) do - # BeforeTests.new.run - # end - - # let!(:user) { - # FactoryBot.rewind_sequences - - # db_helper.do_without_triggers do - # FactoryBot.create( - # :user_with_all_dependencies, - # created_at: datetime, - # updated_at: datetime - # ) - # end - # } - - # shared_context 'not saving files' do - # it 'does not save files' do - # expect_any_instance_of(File).not_to receive(:write) - # remove_specified.remove_user_with_dependencies(user.id) - # end - # end - - # shared_context 'removing user with dependencies' do - # it 'removes user with all its dependencies with proper exceptions' do - # dependency_tree = user.dependency_tree - # remove_specified.remove_user_with_dependencies(user.id) - # expect(dependency_tree.status_tree_condensed).to eql(ExpectedDependencyTrees.remove_user_with_dependencies) - # end - - # it 'removes intended number of rows from the database' do - # expect { - # remove_specified.remove_user_with_dependencies(user.id) - # }.to change { Model.sum_of_subclasses_rows }.by(-349) - # end - - # it 'nullifies orphaned builds dependencies' do - # expect( - # nullifies_all_orphaned_builds_dependencies? do - # remove_specified.remove_user_with_dependencies(user.id) - # end - # ).to eql(true) - # end - # end - - # it_behaves_like 'removing user with dependencies' - - # context 'when if_backup config is set to true' do - # it 'saves removed data to files in proper format' do - # expect_method_calls_on( - # File, :write, - # get_expected_files('remove_user_with_dependencies', datetime), - # allow_instances: true, - # arguments_to_check: :first - # ) do - # remove_specified.remove_user_with_dependencies(user.id) - # end - # end - # end - - # context 'when if_backup config is set to false' do - # let!(:config) { Config.new(files_location: files_location, limit: 5, if_backup: false) } - # let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } - - # it_behaves_like 'not saving files' - # it_behaves_like 'removing user with dependencies' - # end - - - # context 'when dry_run config is set to true' do - # let!(:config) { Config.new(files_location: files_location, limit: 5, dry_run: true) } - # let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } - - # it_behaves_like 'not saving files' - - # it 'does not remove entries from db' do - # expect { - # remove_specified.remove_user_with_dependencies(user.id) - # }.not_to change { Model.sum_of_subclasses_rows } - # end - # end - # end - - # describe 'remove_org_with_dependencies' do - # before(:each) do - # BeforeTests.new.run - # end - - # let!(:organization) { - # FactoryBot.rewind_sequences - - # db_helper.do_without_triggers do - # FactoryBot.create( - # :organization_with_all_dependencies, - # created_at: datetime, - # updated_at: datetime - # ) - # end - # } - - # shared_context 'not saving files' do - # it 'does not save files' do - # expect_any_instance_of(File).not_to receive(:write) - # remove_specified.remove_org_with_dependencies(organization.id) - # end - # end - - # shared_context 'removing organization with dependencies' do - # it 'removes organization with all its dependencies with proper exceptions' do - # dependency_tree = organization.dependency_tree - # remove_specified.remove_org_with_dependencies(organization.id) - # expect(dependency_tree.status_tree_condensed).to eql(ExpectedDependencyTrees.remove_org_with_dependencies) - # end - - # it 'removes intended number of rows from the database' do - # expect { - # remove_specified.remove_org_with_dependencies(organization.id) - # }.to change { Model.sum_of_subclasses_rows }.by(-339) - # end - - # it 'nullifies orphaned builds dependencies' do - # expect( - # nullifies_all_orphaned_builds_dependencies? do - # remove_specified.remove_org_with_dependencies(organization.id) - # end - # ).to eql(true) - # end - # end - - # it_behaves_like 'removing organization with dependencies' - - # context 'when if_backup config is set to true' do - # it 'saves removed data to files in proper format' do - # expect_method_calls_on( - # File, :write, - # get_expected_files('remove_org_with_dependencies', datetime), - # allow_instances: true, - # arguments_to_check: :first - # ) do - # remove_specified.remove_org_with_dependencies(organization.id) - # end - # end - # end - - # context 'when if_backup config is set to false' do - # let!(:config) { Config.new(files_location: files_location, limit: 5, if_backup: false) } - # let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } - - # it_behaves_like 'not saving files' - # it_behaves_like 'removing organization with dependencies' - # end - - # context 'when dry_run config is set to true' do - # let!(:config) { Config.new(files_location: files_location, limit: 5, dry_run: true) } - # let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } - - # it_behaves_like 'not saving files' - - # it 'does not remove entries from db' do - # expect { - # remove_specified.remove_org_with_dependencies(organization.id) - # }.not_to change { Model.sum_of_subclasses_rows } - # end - # end - # end - - # describe 'remove_repo_with_dependencies' do - # before(:each) do - # BeforeTests.new.run - # end - - # let!(:repository) { - # FactoryBot.rewind_sequences - - # db_helper.do_without_triggers do - # FactoryBot.create( - # :repository_with_all_dependencies, - # created_at: datetime, - # updated_at: datetime - # ) - # end - # } - - # shared_context 'not saving files' do - # it 'does not save files' do - # expect_any_instance_of(File).not_to receive(:write) - # remove_specified.remove_repo_with_dependencies(repository.id) - # end - # end - - # shared_context 'removing repository with dependencies' do - # it 'removes repository with all its dependencies with proper exceptions' do - # dependency_tree = repository.dependency_tree - # remove_specified.remove_repo_with_dependencies(repository.id) - # expect(dependency_tree.status_tree_condensed).to eql(ExpectedDependencyTrees.remove_repo_with_dependencies) - # end - - # it 'removes intended number of rows from the database' do - # expect { - # remove_specified.remove_repo_with_dependencies(repository.id) - # }.to change { Model.sum_of_subclasses_rows }.by(-239) - # end - - # it 'nullifies orphaned builds dependencies' do - # expect( - # nullifies_all_orphaned_builds_dependencies? do - # remove_specified.remove_repo_with_dependencies(repository.id) - # end - # ).to eql(true) - # end - # end - - # it_behaves_like 'removing repository with dependencies' - - # context 'when if_backup config is set to true' do - # it 'saves removed data to files in proper format' do - # expect_method_calls_on( - # File, :write, - # get_expected_files('remove_repo_with_dependencies', datetime), - # allow_instances: true, - # arguments_to_check: :first - # ) do - # remove_specified.remove_repo_with_dependencies(repository.id) - # end - # end - # end - - # context 'when if_backup config is set to false' do - # let!(:config) { Config.new(files_location: files_location, limit: 5, if_backup: false) } - # let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } - - # it_behaves_like 'not saving files' - # it_behaves_like 'removing repository with dependencies' - # end - - # context 'when dry_run config is set to true' do - # let!(:config) { Config.new(files_location: files_location, limit: 5, dry_run: true) } - # let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } - - # it_behaves_like 'not saving files' - - # it 'does not remove entries from db' do - # expect { - # remove_specified.remove_repo_with_dependencies(repository.id) - # }.not_to change { Model.sum_of_subclasses_rows } - # end - # end - # end + describe 'remove_user_with_dependencies' do + before(:each) do + BeforeTests.new.run + end + + let!(:user) { + db_helper.do_without_triggers do + FactoryBot.create( + :user_with_all_dependencies, + created_at: datetime, + updated_at: datetime + ) + end + } + + shared_context 'not saving files' do + it 'does not save files' do + expect_any_instance_of(File).not_to receive(:write) + remove_specified.remove_user_with_dependencies(user.id) + end + end + + shared_context 'removing user with dependencies' do + it 'removes user with all its dependencies with proper exceptions' do + dependency_tree = user.dependency_tree + remove_specified.remove_user_with_dependencies(user.id) + expect(dependency_tree.status_tree_condensed).to eql(ExpectedDependencyTrees.remove_user_with_dependencies) + end + + it 'removes intended number of rows from the database' do + expect { + remove_specified.remove_user_with_dependencies(user.id) + }.to change { Model.sum_of_subclasses_rows }.by(-586) + end + + it 'nullifies orphaned builds dependencies' do + expect( + nullifies_all_orphaned_builds_dependencies? do + remove_specified.remove_user_with_dependencies(user.id) + end + ).to eql(true) + end + end + + it_behaves_like 'removing user with dependencies' + + context 'when if_backup config is set to true' do + it 'saves removed data to files in proper format' do + expect_method_calls_on( + File, :write, + get_expected_files('remove_user_with_dependencies', datetime), + allow_instances: true, + arguments_to_check: :first + ) do + remove_specified.remove_user_with_dependencies(user.id) + end + end + end + + context 'when if_backup config is set to false' do + let!(:config) { Config.new(files_location: files_location, limit: 5, if_backup: false) } + let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } + + it_behaves_like 'not saving files' + it_behaves_like 'removing user with dependencies' + end + + + context 'when dry_run config is set to true' do + let!(:config) { Config.new(files_location: files_location, limit: 5, dry_run: true) } + let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } + + it_behaves_like 'not saving files' + + it 'does not remove entries from db' do + expect { + remove_specified.remove_user_with_dependencies(user.id) + }.not_to change { Model.sum_of_subclasses_rows } + end + end + end + + describe 'remove_org_with_dependencies' do + before(:each) do + BeforeTests.new.run + end + + let!(:organization) { + db_helper.do_without_triggers do + FactoryBot.create( + :organization_with_all_dependencies, + created_at: datetime, + updated_at: datetime + ) + end + } + + shared_context 'not saving files' do + it 'does not save files' do + expect_any_instance_of(File).not_to receive(:write) + remove_specified.remove_org_with_dependencies(organization.id) + end + end + + shared_context 'removing organization with dependencies' do + it 'removes organization with all its dependencies with proper exceptions' do + dependency_tree = organization.dependency_tree + remove_specified.remove_org_with_dependencies(organization.id) + expect(dependency_tree.status_tree_condensed).to eql(ExpectedDependencyTrees.remove_org_with_dependencies) + end + + it 'removes intended number of rows from the database' do + expect { + remove_specified.remove_org_with_dependencies(organization.id) + }.to change { Model.sum_of_subclasses_rows }.by(-576) + end + + it 'nullifies orphaned builds dependencies' do + expect( + nullifies_all_orphaned_builds_dependencies? do + remove_specified.remove_org_with_dependencies(organization.id) + end + ).to eql(true) + end + end + + it_behaves_like 'removing organization with dependencies' + + context 'when if_backup config is set to true' do + it 'saves removed data to files in proper format' do + expect_method_calls_on( + File, :write, + get_expected_files('remove_org_with_dependencies', datetime), + allow_instances: true, + arguments_to_check: :first + ) do + remove_specified.remove_org_with_dependencies(organization.id) + end + end + end + + context 'when if_backup config is set to false' do + let!(:config) { Config.new(files_location: files_location, limit: 5, if_backup: false) } + let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } + + it_behaves_like 'not saving files' + it_behaves_like 'removing organization with dependencies' + end + + context 'when dry_run config is set to true' do + let!(:config) { Config.new(files_location: files_location, limit: 5, dry_run: true) } + let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } + + it_behaves_like 'not saving files' + + it 'does not remove entries from db' do + expect { + remove_specified.remove_org_with_dependencies(organization.id) + }.not_to change { Model.sum_of_subclasses_rows } + end + end + end + + describe 'remove_repo_with_dependencies' do + before(:each) do + BeforeTests.new.run + end + + let!(:repository) { + db_helper.do_without_triggers do + FactoryBot.create( + :repository_with_all_dependencies, + created_at: datetime, + updated_at: datetime + ) + end + } + + shared_context 'not saving files' do + it 'does not save files' do + expect_any_instance_of(File).not_to receive(:write) + remove_specified.remove_repo_with_dependencies(repository.id) + end + end + + shared_context 'removing repository with dependencies' do + it 'removes repository with all its dependencies with proper exceptions' do + dependency_tree = repository.dependency_tree + remove_specified.remove_repo_with_dependencies(repository.id) + expect(dependency_tree.status_tree_condensed).to eql(ExpectedDependencyTrees.remove_repo_with_dependencies) + end + + it 'removes intended number of rows from the database' do + expect { + remove_specified.remove_repo_with_dependencies(repository.id) + }.to change { Model.sum_of_subclasses_rows }.by(-452) + end + + it 'nullifies orphaned builds dependencies' do + expect( + nullifies_all_orphaned_builds_dependencies? do + remove_specified.remove_repo_with_dependencies(repository.id) + end + ).to eql(true) + end + end + + context 'when if_backup config is set to true' do + it 'saves removed data to files in proper format' do + expect_method_calls_on( + File, :write, + get_expected_files('remove_repo_with_dependencies', datetime), + allow_instances: true, + arguments_to_check: :first + ) do + remove_specified.remove_repo_with_dependencies(repository.id) + end + end + + it_behaves_like 'removing repository with dependencies' + end + + context 'when if_backup config is set to false' do + let!(:config) { Config.new(files_location: files_location, limit: 5, if_backup: false) } + let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } + + it_behaves_like 'not saving files' + it_behaves_like 'removing repository with dependencies' + end + + context 'when dry_run config is set to true' do + let!(:config) { Config.new(files_location: files_location, limit: 5, dry_run: true) } + let!(:remove_specified) { Backup::RemoveSpecified.new(config, DryRunReporter.new) } + + it_behaves_like 'not saving files' + + it 'does not remove entries from db' do + expect { + remove_specified.remove_repo_with_dependencies(repository.id) + }.not_to change { Model.sum_of_subclasses_rows } + end + end + end end diff --git a/spec/backup_spec.rb b/spec/backup_spec.rb index cbc0a71..65b0711 100644 --- a/spec/backup_spec.rb +++ b/spec/backup_spec.rb @@ -9,7 +9,7 @@ require 'byebug' describe Backup do - before(:all) do + before(:each) do BeforeTests.new.run end @@ -17,15 +17,6 @@ let!(:backup) { Backup.new(files_location: files_location, limit: 5) } describe 'run' do - after(:each) do - Organization.destroy_all - User.destroy_all - Repository.destroy_all - Build.destroy_all - Job.destroy_all - Request.destroy_all - end - let!(:unassigned_repositories) { FactoryBot.create_list(:repository_with_requests, 3) } diff --git a/spec/model_spec.rb b/spec/model_spec.rb index b7d8c35..8d6f0bd 100644 --- a/spec/model_spec.rb +++ b/spec/model_spec.rb @@ -9,7 +9,6 @@ describe Model do before(:each) do BeforeTests.new.run - FactoryBot.rewind_sequences end describe 'ids_of_all_dependencies_with_filtered' do diff --git a/spec/support/before_tests.rb b/spec/support/before_tests.rb index 26f8f5f..b05c53a 100644 --- a/spec/support/before_tests.rb +++ b/spec/support/before_tests.rb @@ -1,3 +1,5 @@ +require 'factory_bot' + class BeforeTests def run config = Config.new @@ -6,6 +8,7 @@ def run helper.do_in_other_db(config.destination_db_url) do truncate_all_tables end + FactoryBot.rewind_sequences end def truncate_all_tables diff --git a/spec/support/expected_dependency_trees/remove_org_with_dependencies.rb b/spec/support/expected_dependency_trees/remove_org_with_dependencies.rb index 4fa5f39..7cb98d8 100644 --- a/spec/support/expected_dependency_trees/remove_org_with_dependencies.rb +++ b/spec/support/expected_dependency_trees/remove_org_with_dependencies.rb @@ -1,2808 +1,3833 @@ class ExpectedDependencyTrees def self.remove_org_with_dependencies { - _: "id 1, removed", - build: [ + "_": "id 1, removed", + "build": [ { - _: "id 161, removed", - job: [ + "_": "id 178, removed", + "job": [ { - _: "id 166, removed", - log: [ - "id 57, removed", - "id 58, removed" - ], - annotation: [ - "id 57, removed", - "id 58, removed" - ], - queueable_job: [ - "id 57, removed", - "id 58, removed" + "_": "id 183, removed", + "queueable_job": [ + "id 63, removed", + "id 64, removed" + ], + "job_version": [ + "id 63, removed", + "id 64, removed" ] }, - "id 167, removed" + "id 184, removed", + "id 185, removed" ], - repository: [ + "repository": [ { - _: "id 85, present", - build: [ - "id 208, present" + "_": "id 91, present", + "build": [ + "id 226, present" ], - request: [ - "id 44, present" + "request": [ + "id 48, present" ], - job: [ - "id 209, present" + "job": [ + "id 227, present" ], - branch: [ - "id 122, present" + "branch": [ + "id 53, present" ], - ssl_key: [ - "id 38, present" + "ssl_key": [ + "id 8, present" ], - commit: [ - "id 234, present" + "commit": [ + "id 24, present" ], - permission: [ + "permission": [ "id 8, present" ], - star: [ + "star": [ "id 8, present" ], - pull_request: [ + "pull_request": [ "id 8, present" ], - tag: [ - "id 50, present" + "tag": [ + "id 53, present" ] }, - "id 86, present", + "id 92, present", { - _: "id 83, present", - build: [ - "id 206, present" + "_": "id 89, present", + "build": [ + "id 224, present" ], - request: [ - "id 43, present" + "request": [ + "id 47, present" ], - job: [ - "id 207, present" + "job": [ + "id 225, present" ], - branch: [ - "id 121, present" + "branch": [ + "id 52, present" ], - ssl_key: [ - "id 37, present" + "ssl_key": [ + "id 7, present" ], - commit: [ - "id 233, present" + "commit": [ + "id 23, present" ], - permission: [ + "permission": [ "id 7, present" ], - star: [ + "star": [ "id 7, present" ], - pull_request: [ + "pull_request": [ "id 7, present" ], - tag: [ - "id 49, present" + "tag": [ + "id 52, present" ] }, - "id 84, present" + "id 90, present" ], - tag: [ + "tag": [ { - _: "id 39, present", - build: [ + "_": "id 42, present", + "build": [ { - _: "id 168, present", - job: [ - "id 169, present" + "_": "id 186, present", + "job": [ + "id 187, present" ], - repository: [ - "id 68, present", - "id 67, present" + "repository": [ + "id 74, present", + "id 73, present" ], - tag: [ - "id 40, present" + "tag": [ + "id 43, present" ], - branch: [ - "id 111, present" + "branch": [ + "id 42, present" ], - stage: [ - "id 54, present" + "stage": [ + "id 41, present" ] }, - "id 170, present" + "id 188, present" ], - commit: [ + "commit": [ { - _: "id 229, present", - build: [ + "_": "id 19, present", + "build": [ { - _: "id 171, present", - job: [ - "id 172, present" + "_": "id 189, present", + "job": [ + "id 190, present" ], - repository: [ - "id 70, present", - "id 69, present" + "repository": [ + "id 76, present", + "id 75, present" ], - tag: [ - "id 41, present" + "tag": [ + "id 44, present" ], - branch: [ - "id 112, present" + "branch": [ + "id 43, present" ], - stage: [ - "id 55, present" + "stage": [ + "id 42, present" ] }, - "id 173, present" + "id 191, present" ], - job: [ + "job": [ { - _: "id 174, present", - log: [ - "id 59, present", - "id 60, present" - ], - annotation: [ - "id 59, present", - "id 60, present" - ], - queueable_job: [ - "id 59, present", - "id 60, present" + "_": "id 192, present", + "queueable_job": [ + "id 65, present", + "id 66, present" + ], + "job_version": [ + "id 65, present", + "id 66, present" ] }, - "id 175, present" + "id 193, present" ], - request: [ + "request": [ { - _: "id 35, present", - abuse: [ - "id 31, present", - "id 32, present" + "_": "id 39, present", + "abuse": [ + "id 35, present", + "id 36, present" ], - message: [ - "id 31, present", - "id 32, present" + "message": [ + "id 35, present", + "id 36, present" ], - job: [ + "job": [ { - _: "id 179, present", - log: [ - "id 61, present", - "id 62, present" - ], - annotation: [ - "id 61, present", - "id 62, present" - ], - queueable_job: [ - "id 61, present", - "id 62, present" + "_": "id 197, present", + "queueable_job": [ + "id 67, present", + "id 68, present" + ], + "job_version": [ + "id 67, present", + "id 68, present" ] }, - "id 180, present" + "id 198, present" ], - build: [ + "build": [ { - _: "id 176, present", - job: [ - "id 177, present" + "_": "id 194, present", + "job": [ + "id 195, present" ], - repository: [ - "id 72, present", - "id 71, present" + "repository": [ + "id 78, present", + "id 77, present" ], - tag: [ - "id 42, present" + "tag": [ + "id 45, present" ], - branch: [ - "id 113, present" + "branch": [ + "id 44, present" ], - stage: [ - "id 56, present" + "stage": [ + "id 43, present" ] }, - "id 178, present" + "id 196, present" + ], + "request_payload": [ + "id 35, present", + "id 36, present" + ], + "request_raw_configuration": [ + "id 37, present", + "id 38, present" + ], + "deleted_job": [ + "id 61, present", + "id 62, present" + ], + "deleted_build": [ + "id 67, present", + "id 68, present" + ], + "deleted_request_payload": [ + "id 35, present", + "id 36, present" + ], + "deleted_request_raw_configuration": [ + "id 37, present", + "id 38, present" ] }, + "id 40, present" + ], + "deleted_build": [ + "id 69, present", + "id 70, present" + ], + "deleted_job": [ + "id 63, present", + "id 64, present" + ], + "deleted_request": [ + "id 35, present", "id 36, present" ] }, - "id 230, present" + "id 20, present" ], - request: [ + "request": [ { - _: "id 37, present", - abuse: [ - "id 33, present", - "id 34, present" + "_": "id 41, present", + "abuse": [ + "id 37, present", + "id 38, present" ], - message: [ - "id 33, present", - "id 34, present" + "message": [ + "id 37, present", + "id 38, present" ], - job: [ + "job": [ { - _: "id 184, present", - log: [ - "id 63, present", - "id 64, present" - ], - annotation: [ - "id 63, present", - "id 64, present" - ], - queueable_job: [ - "id 63, present", - "id 64, present" + "_": "id 202, present", + "queueable_job": [ + "id 69, present", + "id 70, present" + ], + "job_version": [ + "id 69, present", + "id 70, present" ] }, - "id 185, present" + "id 203, present" ], - build: [ + "build": [ { - _: "id 181, present", - job: [ - "id 182, present" + "_": "id 199, present", + "job": [ + "id 200, present" ], - repository: [ - "id 74, present", - "id 73, present" + "repository": [ + "id 80, present", + "id 79, present" ], - tag: [ - "id 43, present" + "tag": [ + "id 46, present" ], - branch: [ - "id 114, present" + "branch": [ + "id 45, present" ], - stage: [ - "id 57, present" + "stage": [ + "id 44, present" ] }, - "id 183, present" + "id 201, present" + ], + "request_payload": [ + "id 37, present", + "id 38, present" + ], + "request_raw_configuration": [ + "id 39, present", + "id 40, present" + ], + "deleted_job": [ + "id 65, present", + "id 66, present" + ], + "deleted_build": [ + "id 71, present", + "id 72, present" + ], + "deleted_request_payload": [ + "id 37, present", + "id 38, present" + ], + "deleted_request_raw_configuration": [ + "id 39, present", + "id 40, present" ] }, + "id 42, present" + ], + "deleted_build": [ + "id 73, present", + "id 74, present" + ], + "deleted_commit": [ + "id 15, present", + "id 16, present" + ], + "deleted_request": [ + "id 37, present", "id 38, present" ] }, - "id 44, present" + "id 47, present" ], - branch: [ + "branch": [ { - _: "id 115, present", - build: [ + "_": "id 46, present", + "build": [ { - _: "id 186, present", - job: [ - "id 187, present" + "_": "id 204, present", + "job": [ + "id 205, present" ], - repository: [ - "id 76, present", - "id 75, present" + "repository": [ + "id 82, present", + "id 81, present" ], - tag: [ - "id 45, present" + "tag": [ + "id 48, present" ], - branch: [ - "id 116, present" + "branch": [ + "id 47, present" ], - stage: [ - "id 58, present" + "stage": [ + "id 45, present" ] }, - "id 188, present" + "id 206, present" ], - commit: [ + "commit": [ { - _: "id 231, present", - build: [ + "_": "id 21, present", + "build": [ { - _: "id 191, present", - job: [ - "id 192, present" + "_": "id 209, present", + "job": [ + "id 210, present" ], - repository: [ - "id 78, present", - "id 77, present" + "repository": [ + "id 84, present", + "id 83, present" ], - tag: [ - "id 46, present" + "tag": [ + "id 49, present" ], - branch: [ - "id 117, present" + "branch": [ + "id 48, present" ], - stage: [ - "id 59, present" + "stage": [ + "id 46, present" ] }, - "id 193, present" + "id 211, present" ], - job: [ + "job": [ { - _: "id 194, present", - log: [ - "id 67, present", - "id 68, present" - ], - annotation: [ - "id 67, present", - "id 68, present" - ], - queueable_job: [ - "id 67, present", - "id 68, present" + "_": "id 212, present", + "queueable_job": [ + "id 73, present", + "id 74, present" + ], + "job_version": [ + "id 73, present", + "id 74, present" ] }, - "id 195, present" + "id 213, present" ], - request: [ + "request": [ { - _: "id 39, present", - abuse: [ - "id 35, present", - "id 36, present" + "_": "id 43, present", + "abuse": [ + "id 39, present", + "id 40, present" ], - message: [ - "id 35, present", - "id 36, present" + "message": [ + "id 39, present", + "id 40, present" ], - job: [ + "job": [ { - _: "id 199, present", - log: [ - "id 69, present", - "id 70, present" - ], - annotation: [ - "id 69, present", - "id 70, present" - ], - queueable_job: [ - "id 69, present", - "id 70, present" + "_": "id 217, present", + "queueable_job": [ + "id 75, present", + "id 76, present" + ], + "job_version": [ + "id 75, present", + "id 76, present" ] }, - "id 200, present" + "id 218, present" ], - build: [ + "build": [ { - _: "id 196, present", - job: [ - "id 197, present" + "_": "id 214, present", + "job": [ + "id 215, present" ], - repository: [ - "id 80, present", - "id 79, present" + "repository": [ + "id 86, present", + "id 85, present" ], - tag: [ - "id 47, present" + "tag": [ + "id 50, present" ], - branch: [ - "id 118, present" + "branch": [ + "id 49, present" ], - stage: [ - "id 60, present" + "stage": [ + "id 47, present" ] }, - "id 198, present" + "id 216, present" + ], + "request_payload": [ + "id 39, present", + "id 40, present" + ], + "request_raw_configuration": [ + "id 41, present", + "id 42, present" + ], + "deleted_job": [ + "id 69, present", + "id 70, present" + ], + "deleted_build": [ + "id 77, present", + "id 78, present" + ], + "deleted_request_payload": [ + "id 39, present", + "id 40, present" + ], + "deleted_request_raw_configuration": [ + "id 41, present", + "id 42, present" ] }, + "id 44, present" + ], + "deleted_build": [ + "id 79, present", + "id 80, present" + ], + "deleted_job": [ + "id 71, present", + "id 72, present" + ], + "deleted_request": [ + "id 39, present", "id 40, present" ] }, - "id 232, present" + "id 22, present" ], - cron: [ - "id 7, present", - "id 8, present" + "cron": [ + "id 4, present" ], - job: [ + "job": [ { - _: "id 189, present", - log: [ - "id 65, present", - "id 66, present" + "_": "id 207, present", + "queueable_job": [ + "id 71, present", + "id 72, present" ], - annotation: [ - "id 65, present", - "id 66, present" - ], - queueable_job: [ - "id 65, present", - "id 66, present" + "job_version": [ + "id 71, present", + "id 72, present" ] }, - "id 190, present" + "id 208, present" ], - request: [ + "request": [ { - _: "id 41, present", - abuse: [ - "id 37, present", - "id 38, present" + "_": "id 45, present", + "abuse": [ + "id 41, present", + "id 42, present" ], - message: [ - "id 37, present", - "id 38, present" + "message": [ + "id 41, present", + "id 42, present" ], - job: [ + "job": [ { - _: "id 204, present", - log: [ - "id 71, present", - "id 72, present" - ], - annotation: [ - "id 71, present", - "id 72, present" - ], - queueable_job: [ - "id 71, present", - "id 72, present" + "_": "id 222, present", + "queueable_job": [ + "id 77, present", + "id 78, present" + ], + "job_version": [ + "id 77, present", + "id 78, present" ] }, - "id 205, present" + "id 223, present" ], - build: [ + "build": [ { - _: "id 201, present", - job: [ - "id 202, present" + "_": "id 219, present", + "job": [ + "id 220, present" ], - repository: [ - "id 82, present", - "id 81, present" + "repository": [ + "id 88, present", + "id 87, present" ], - tag: [ - "id 48, present" + "tag": [ + "id 51, present" ], - branch: [ - "id 119, present" + "branch": [ + "id 50, present" ], - stage: [ - "id 61, present" + "stage": [ + "id 48, present" ] }, - "id 203, present" + "id 221, present" + ], + "request_payload": [ + "id 41, present", + "id 42, present" + ], + "request_raw_configuration": [ + "id 43, present", + "id 44, present" + ], + "deleted_job": [ + "id 73, present", + "id 74, present" + ], + "deleted_build": [ + "id 81, present", + "id 82, present" + ], + "deleted_request_payload": [ + "id 41, present", + "id 42, present" + ], + "deleted_request_raw_configuration": [ + "id 43, present", + "id 44, present" ] }, + "id 46, present" + ], + "deleted_build": [ + "id 75, present", + "id 76, present" + ], + "deleted_commit": [ + "id 17, present", + "id 18, present" + ], + "deleted_job": [ + "id 67, present", + "id 68, present" + ], + "deleted_request": [ + "id 41, present", "id 42, present" ] }, - "id 120, present" + "id 51, present" ], - stage: [ + "stage": [ { - _: "id 52, removed", - job: [ - "id 162, removed", - "id 163, removed" + "_": "id 38, removed", + "job": [ + "id 179, removed", + "id 180, removed" ] }, { - _: "id 53, removed", - job: [ - "id 164, removed", - "id 165, removed" + "_": "id 39, removed", + "job": [ + "id 181, removed", + "id 182, removed" ] - } + }, + "id 40, removed" + ], + "deleted_job": [ + "id 75, removed" + ], + "deleted_tag": [ + "id 5, present" + ], + "deleted_stage": [ + "id 3, removed" ] }, { - _: "id 210, removed", - repository: [ + "_": "id 228, removed", + "repository": [ { - _: "id 1, removed", - build: [ + "_": "id 1, removed", + "build": [ { - _: "id 1, removed", - job: [ + "_": "id 1, removed", + "job": [ { - _: "id 6, removed", - log: [ - "id 1, removed", - "id 2, removed" - ], - annotation: [ + "_": "id 6, removed", + "queueable_job": [ "id 1, removed", "id 2, removed" ], - queueable_job: [ + "job_version": [ "id 1, removed", "id 2, removed" ] }, - "id 7, removed" + "id 7, removed", + "id 8, removed" ], - repository: [ + "repository": [ { - _: "id 20, present", - build: [ - "id 48, present" + "_": "id 20, present", + "build": [ + "id 49, present" ], - request: [ + "request": [ "id 10, present" ], - job: [ - "id 49, present" + "job": [ + "id 50, present" ], - branch: [ - "id 84, present" + "branch": [ + "id 12, present" ], - ssl_key: [ - "id 32, present" + "ssl_key": [ + "id 2, present" ], - commit: [ - "id 216, present" + "commit": [ + "id 6, present" ], - permission: [ + "permission": [ "id 2, present" ], - star: [ + "star": [ "id 2, present" ], - pull_request: [ + "pull_request": [ "id 2, present" ], - tag: [ + "tag": [ "id 12, present" ] }, "id 21, present", { - _: "id 18, present", - build: [ - "id 46, present" + "_": "id 18, present", + "build": [ + "id 47, present" ], - request: [ + "request": [ "id 9, present" ], - job: [ - "id 47, present" + "job": [ + "id 48, present" ], - branch: [ - "id 83, present" + "branch": [ + "id 11, present" ], - ssl_key: [ - "id 31, present" + "ssl_key": [ + "id 1, present" ], - commit: [ - "id 215, present" + "commit": [ + "id 5, present" ], - permission: [ + "permission": [ "id 1, present" ], - star: [ + "star": [ "id 1, present" ], - pull_request: [ + "pull_request": [ "id 1, present" ], - tag: [ + "tag": [ "id 11, present" ] }, "id 19, present" ], - tag: [ + "tag": [ { - _: "id 1, present", - build: [ + "_": "id 1, present", + "build": [ { - _: "id 8, present", - job: [ - "id 9, present" + "_": "id 9, present", + "job": [ + "id 10, present" ], - repository: [ + "repository": [ "id 3, present", "id 2, present" ], - tag: [ + "tag": [ "id 2, present" ], - branch: [ - "id 73, present" + "branch": [ + "id 1, present" ], - stage: [ - "id 22, present" + "stage": [ + "id 4, present" ] }, - "id 10, present" + "id 11, present" ], - commit: [ + "commit": [ { - _: "id 211, present", - build: [ + "_": "id 1, present", + "build": [ { - _: "id 11, present", - job: [ - "id 12, present" + "_": "id 12, present", + "job": [ + "id 13, present" ], - repository: [ + "repository": [ "id 5, present", "id 4, present" ], - tag: [ + "tag": [ "id 3, present" ], - branch: [ - "id 74, present" + "branch": [ + "id 2, present" ], - stage: [ - "id 23, present" + "stage": [ + "id 5, present" ] }, - "id 13, present" + "id 14, present" ], - job: [ + "job": [ { - _: "id 14, present", - log: [ - "id 3, present", - "id 4, present" - ], - annotation: [ + "_": "id 15, present", + "queueable_job": [ "id 3, present", "id 4, present" ], - queueable_job: [ + "job_version": [ "id 3, present", "id 4, present" ] }, - "id 15, present" + "id 16, present" ], - request: [ + "request": [ { - _: "id 1, present", - abuse: [ + "_": "id 1, present", + "abuse": [ "id 1, present", "id 2, present" ], - message: [ + "message": [ "id 1, present", "id 2, present" ], - job: [ + "job": [ { - _: "id 19, present", - log: [ - "id 5, present", - "id 6, present" - ], - annotation: [ + "_": "id 20, present", + "queueable_job": [ "id 5, present", "id 6, present" ], - queueable_job: [ + "job_version": [ "id 5, present", "id 6, present" ] }, - "id 20, present" + "id 21, present" ], - build: [ + "build": [ { - _: "id 16, present", - job: [ - "id 17, present" + "_": "id 17, present", + "job": [ + "id 18, present" ], - repository: [ + "repository": [ "id 7, present", "id 6, present" ], - tag: [ + "tag": [ "id 4, present" ], - branch: [ - "id 75, present" + "branch": [ + "id 3, present" ], - stage: [ - "id 24, present" + "stage": [ + "id 6, present" ] }, - "id 18, present" + "id 19, present" + ], + "request_payload": [ + "id 1, present", + "id 2, present" + ], + "request_raw_configuration": [ + "id 1, present", + "id 2, present" + ], + "deleted_job": [ + "id 1, present", + "id 2, present" + ], + "deleted_build": [ + "id 1, present", + "id 2, present" + ], + "deleted_request_payload": [ + "id 1, present", + "id 2, present" + ], + "deleted_request_raw_configuration": [ + "id 1, present", + "id 2, present" ] }, "id 2, present" + ], + "deleted_build": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 3, present", + "id 4, present" + ], + "deleted_request": [ + "id 1, present", + "id 2, present" ] }, - "id 212, present" + "id 2, present" ], - request: [ + "request": [ { - _: "id 3, present", - abuse: [ + "_": "id 3, present", + "abuse": [ "id 3, present", "id 4, present" ], - message: [ + "message": [ "id 3, present", "id 4, present" ], - job: [ + "job": [ { - _: "id 24, present", - log: [ - "id 7, present", - "id 8, present" - ], - annotation: [ + "_": "id 25, present", + "queueable_job": [ "id 7, present", "id 8, present" ], - queueable_job: [ + "job_version": [ "id 7, present", "id 8, present" ] }, - "id 25, present" + "id 26, present" ], - build: [ + "build": [ { - _: "id 21, present", - job: [ - "id 22, present" + "_": "id 22, present", + "job": [ + "id 23, present" ], - repository: [ + "repository": [ "id 9, present", "id 8, present" ], - tag: [ + "tag": [ "id 5, present" ], - branch: [ - "id 76, present" + "branch": [ + "id 4, present" ], - stage: [ - "id 25, present" + "stage": [ + "id 7, present" ] }, - "id 23, present" + "id 24, present" + ], + "request_payload": [ + "id 3, present", + "id 4, present" + ], + "request_raw_configuration": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 5, present", + "id 6, present" + ], + "deleted_build": [ + "id 5, present", + "id 6, present" + ], + "deleted_request_payload": [ + "id 3, present", + "id 4, present" + ], + "deleted_request_raw_configuration": [ + "id 3, present", + "id 4, present" ] }, "id 4, present" + ], + "deleted_build": [ + "id 7, present", + "id 8, present" + ], + "deleted_commit": [ + "id 1, present", + "id 2, present" + ], + "deleted_request": [ + "id 3, present", + "id 4, present" ] }, "id 6, present" ], - branch: [ + "branch": [ { - _: "id 77, present", - build: [ + "_": "id 5, present", + "build": [ { - _: "id 26, present", - job: [ - "id 27, present" + "_": "id 27, present", + "job": [ + "id 28, present" ], - repository: [ + "repository": [ "id 11, present", "id 10, present" ], - tag: [ + "tag": [ "id 7, present" ], - branch: [ - "id 78, present" + "branch": [ + "id 6, present" ], - stage: [ - "id 26, present" + "stage": [ + "id 8, present" ] }, - "id 28, present" + "id 29, present" ], - commit: [ + "commit": [ { - _: "id 213, present", - build: [ + "_": "id 3, present", + "build": [ { - _: "id 31, present", - job: [ - "id 32, present" + "_": "id 32, present", + "job": [ + "id 33, present" ], - repository: [ + "repository": [ "id 13, present", "id 12, present" ], - tag: [ + "tag": [ "id 8, present" ], - branch: [ - "id 79, present" + "branch": [ + "id 7, present" ], - stage: [ - "id 27, present" + "stage": [ + "id 9, present" ] }, - "id 33, present" + "id 34, present" ], - job: [ + "job": [ { - _: "id 34, present", - log: [ - "id 11, present", - "id 12, present" - ], - annotation: [ + "_": "id 35, present", + "queueable_job": [ "id 11, present", "id 12, present" ], - queueable_job: [ + "job_version": [ "id 11, present", "id 12, present" ] }, - "id 35, present" + "id 36, present" ], - request: [ + "request": [ { - _: "id 5, present", - abuse: [ + "_": "id 5, present", + "abuse": [ "id 5, present", "id 6, present" ], - message: [ + "message": [ "id 5, present", "id 6, present" ], - job: [ + "job": [ { - _: "id 39, present", - log: [ - "id 13, present", - "id 14, present" - ], - annotation: [ + "_": "id 40, present", + "queueable_job": [ "id 13, present", "id 14, present" ], - queueable_job: [ + "job_version": [ "id 13, present", "id 14, present" ] }, - "id 40, present" + "id 41, present" ], - build: [ + "build": [ { - _: "id 36, present", - job: [ - "id 37, present" + "_": "id 37, present", + "job": [ + "id 38, present" ], - repository: [ + "repository": [ "id 15, present", "id 14, present" ], - tag: [ + "tag": [ "id 9, present" ], - branch: [ - "id 80, present" + "branch": [ + "id 8, present" ], - stage: [ - "id 28, present" + "stage": [ + "id 10, present" ] }, - "id 38, present" + "id 39, present" + ], + "request_payload": [ + "id 5, present", + "id 6, present" + ], + "request_raw_configuration": [ + "id 5, present", + "id 6, present" + ], + "deleted_job": [ + "id 9, present", + "id 10, present" + ], + "deleted_build": [ + "id 11, present", + "id 12, present" + ], + "deleted_request_payload": [ + "id 5, present", + "id 6, present" + ], + "deleted_request_raw_configuration": [ + "id 5, present", + "id 6, present" ] }, "id 6, present" + ], + "deleted_build": [ + "id 13, present", + "id 14, present" + ], + "deleted_job": [ + "id 11, present", + "id 12, present" + ], + "deleted_request": [ + "id 5, present", + "id 6, present" ] }, - "id 214, present" + "id 4, present" ], - cron: [ - "id 1, present", - "id 2, present" + "cron": [ + "id 1, present" ], - job: [ + "job": [ { - _: "id 29, present", - log: [ + "_": "id 30, present", + "queueable_job": [ "id 9, present", "id 10, present" ], - annotation: [ - "id 9, present", - "id 10, present" - ], - queueable_job: [ + "job_version": [ "id 9, present", "id 10, present" ] }, - "id 30, present" + "id 31, present" ], - request: [ + "request": [ { - _: "id 7, present", - abuse: [ + "_": "id 7, present", + "abuse": [ "id 7, present", "id 8, present" ], - message: [ + "message": [ "id 7, present", "id 8, present" ], - job: [ + "job": [ { - _: "id 44, present", - log: [ + "_": "id 45, present", + "queueable_job": [ "id 15, present", "id 16, present" ], - annotation: [ - "id 15, present", - "id 16, present" - ], - queueable_job: [ + "job_version": [ "id 15, present", "id 16, present" ] }, - "id 45, present" + "id 46, present" ], - build: [ + "build": [ { - _: "id 41, present", - job: [ - "id 42, present" + "_": "id 42, present", + "job": [ + "id 43, present" ], - repository: [ + "repository": [ "id 17, present", "id 16, present" ], - tag: [ + "tag": [ "id 10, present" ], - branch: [ - "id 81, present" + "branch": [ + "id 9, present" ], - stage: [ - "id 29, present" + "stage": [ + "id 11, present" ] }, - "id 43, present" + "id 44, present" + ], + "request_payload": [ + "id 7, present", + "id 8, present" + ], + "request_raw_configuration": [ + "id 7, present", + "id 8, present" + ], + "deleted_job": [ + "id 13, present", + "id 14, present" + ], + "deleted_build": [ + "id 15, present", + "id 16, present" + ], + "deleted_request_payload": [ + "id 7, present", + "id 8, present" + ], + "deleted_request_raw_configuration": [ + "id 7, present", + "id 8, present" ] }, "id 8, present" + ], + "deleted_build": [ + "id 9, present", + "id 10, present" + ], + "deleted_commit": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 7, present", + "id 8, present" + ], + "deleted_request": [ + "id 7, present", + "id 8, present" ] }, - "id 82, present" + "id 10, present" ], - stage: [ + "stage": [ { - _: "id 20, removed", - job: [ + "_": "id 1, removed", + "job": [ "id 2, removed", "id 3, removed" ] }, { - _: "id 21, removed", - job: [ + "_": "id 2, removed", + "job": [ "id 4, removed", "id 5, removed" ] - } + }, + "id 3, removed" + ], + "deleted_job": [ + "id 15, removed" + ], + "deleted_tag": [ + "id 1, present" + ], + "deleted_stage": [ + "id 1, removed" ] }, - "id 50, removed" + "id 51, removed" ], - request: [ + "request": [ { - _: "id 11, removed", - abuse: [ + "_": "id 11, removed", + "abuse": [ "id 9, removed", "id 10, removed" ], - message: [ + "message": [ "id 9, removed", "id 10, removed" ], - job: [ + "job": [ { - _: "id 54, removed", - log: [ - "id 17, removed", - "id 18, removed" - ], - annotation: [ + "_": "id 55, removed", + "queueable_job": [ "id 17, removed", "id 18, removed" ], - queueable_job: [ + "job_version": [ "id 17, removed", "id 18, removed" ] }, - "id 55, removed" + "id 56, removed" ], - build: [ + "build": [ { - _: "id 51, removed", - job: [ - "id 52, removed" + "_": "id 52, removed", + "job": [ + "id 53, removed" ], - repository: [ + "repository": [ "id 23, present", "id 22, present" ], - tag: [ + "tag": [ "id 13, present" ], - branch: [ - "id 85, present" + "branch": [ + "id 13, present" ], - stage: [ - "id 30, removed" + "stage": [ + "id 12, removed" ] }, - "id 53, removed" + "id 54, removed" + ], + "request_payload": [ + "id 9, removed", + "id 10, removed" + ], + "request_raw_configuration": [ + "id 9, removed", + "id 10, removed" + ], + "deleted_job": [ + "id 16, removed", + "id 17, removed" + ], + "deleted_build": [ + "id 17, removed", + "id 18, removed" + ], + "deleted_request_payload": [ + "id 9, removed", + "id 10, removed" + ], + "deleted_request_raw_configuration": [ + "id 9, removed", + "id 10, removed" ] }, "id 12, removed" ], - job: [ + "job": [ { - _: "id 56, removed", - log: [ + "_": "id 57, removed", + "queueable_job": [ "id 19, removed", "id 20, removed" ], - annotation: [ - "id 19, removed", - "id 20, removed" - ], - queueable_job: [ + "job_version": [ "id 19, removed", "id 20, removed" ] }, - "id 57, removed" + "id 58, removed" ], - branch: [ + "branch": [ { - _: "id 86, removed", - build: [ + "_": "id 14, removed", + "build": [ { - _: "id 58, removed", - job: [ - "id 59, removed" + "_": "id 59, removed", + "job": [ + "id 60, removed" ], - repository: [ + "repository": [ "id 25, present", "id 24, present" ], - tag: [ + "tag": [ "id 14, present" ], - branch: [ - "id 87, present" + "branch": [ + "id 15, present" ], - stage: [ - "id 31, removed" + "stage": [ + "id 13, removed" ] }, - "id 60, removed" + "id 61, removed" ], - commit: [ + "commit": [ { - _: "id 217, removed", - build: [ + "_": "id 7, removed", + "build": [ { - _: "id 63, removed", - job: [ - "id 64, removed" + "_": "id 64, removed", + "job": [ + "id 65, removed" ], - repository: [ + "repository": [ "id 27, present", "id 26, present" ], - tag: [ + "tag": [ "id 15, present" ], - branch: [ - "id 88, present" + "branch": [ + "id 16, present" ], - stage: [ - "id 32, removed" + "stage": [ + "id 14, removed" ] }, - "id 65, removed" + "id 66, removed" ], - job: [ + "job": [ { - _: "id 66, removed", - log: [ + "_": "id 67, removed", + "queueable_job": [ "id 23, removed", "id 24, removed" ], - annotation: [ - "id 23, removed", - "id 24, removed" - ], - queueable_job: [ + "job_version": [ "id 23, removed", "id 24, removed" ] }, - "id 67, removed" + "id 68, removed" ], - request: [ + "request": [ { - _: "id 13, removed", - abuse: [ + "_": "id 13, removed", + "abuse": [ "id 11, removed", "id 12, removed" ], - message: [ + "message": [ "id 11, removed", "id 12, removed" ], - job: [ + "job": [ { - _: "id 71, removed", - log: [ - "id 25, removed", - "id 26, removed" - ], - annotation: [ + "_": "id 72, removed", + "queueable_job": [ "id 25, removed", "id 26, removed" ], - queueable_job: [ + "job_version": [ "id 25, removed", "id 26, removed" ] }, - "id 72, removed" + "id 73, removed" ], - build: [ + "build": [ { - _: "id 68, removed", - job: [ - "id 69, removed" + "_": "id 69, removed", + "job": [ + "id 70, removed" ], - repository: [ + "repository": [ "id 29, present", "id 28, present" ], - tag: [ + "tag": [ "id 16, present" ], - branch: [ - "id 89, present" + "branch": [ + "id 17, present" ], - stage: [ - "id 33, removed" + "stage": [ + "id 15, removed" ] }, - "id 70, removed" + "id 71, removed" + ], + "request_payload": [ + "id 11, removed", + "id 12, removed" + ], + "request_raw_configuration": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_job": [ + "id 20, removed", + "id 21, removed" + ], + "deleted_build": [ + "id 21, removed", + "id 22, removed" + ], + "deleted_request_payload": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_request_raw_configuration": [ + "id 11, removed", + "id 12, removed" ] }, "id 14, removed" + ], + "deleted_build": [ + "id 23, removed", + "id 24, removed" + ], + "deleted_job": [ + "id 22, removed", + "id 23, removed" + ], + "deleted_request": [ + "id 9, removed", + "id 10, removed" ] }, - "id 218, removed" + "id 8, removed" ], - cron: [ - "id 3, removed", - "id 4, removed" + "cron": [ + "id 2, removed" ], - job: [ + "job": [ { - _: "id 61, removed", - log: [ + "_": "id 62, removed", + "queueable_job": [ "id 21, removed", "id 22, removed" ], - annotation: [ - "id 21, removed", - "id 22, removed" - ], - queueable_job: [ + "job_version": [ "id 21, removed", "id 22, removed" ] }, - "id 62, removed" + "id 63, removed" ], - request: [ + "request": [ { - _: "id 15, removed", - abuse: [ + "_": "id 15, removed", + "abuse": [ "id 13, removed", "id 14, removed" ], - message: [ + "message": [ "id 13, removed", "id 14, removed" ], - job: [ + "job": [ { - _: "id 76, removed", - log: [ - "id 27, removed", - "id 28, removed" - ], - annotation: [ + "_": "id 77, removed", + "queueable_job": [ "id 27, removed", "id 28, removed" ], - queueable_job: [ + "job_version": [ "id 27, removed", "id 28, removed" ] }, - "id 77, removed" + "id 78, removed" ], - build: [ + "build": [ { - _: "id 73, removed", - job: [ - "id 74, removed" + "_": "id 74, removed", + "job": [ + "id 75, removed" ], - repository: [ + "repository": [ "id 31, present", "id 30, present" ], - tag: [ + "tag": [ "id 17, present" ], - branch: [ - "id 90, present" + "branch": [ + "id 18, present" ], - stage: [ - "id 34, removed" + "stage": [ + "id 16, removed" ] }, - "id 75, removed" + "id 76, removed" + ], + "request_payload": [ + "id 13, removed", + "id 14, removed" + ], + "request_raw_configuration": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_job": [ + "id 24, removed", + "id 25, removed" + ], + "deleted_build": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_request_payload": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_request_raw_configuration": [ + "id 13, removed", + "id 14, removed" ] }, "id 16, removed" + ], + "deleted_build": [ + "id 19, removed", + "id 20, removed" + ], + "deleted_commit": [ + "id 5, removed", + "id 6, removed" + ], + "deleted_job": [ + "id 18, removed", + "id 19, removed" + ], + "deleted_request": [ + "id 11, removed", + "id 12, removed" ] }, - "id 91, removed" + "id 19, removed" ], - ssl_key: [ - "id 33, removed", - "id 34, removed" + "ssl_key": [ + "id 3, removed", + "id 4, removed" ], - commit: [ + "commit": [ { - _: "id 219, removed", - build: [ + "_": "id 9, removed", + "build": [ { - _: "id 78, removed", - job: [ - "id 79, removed" + "_": "id 79, removed", + "job": [ + "id 80, removed" ], - repository: [ + "repository": [ "id 33, present", "id 32, present" ], - tag: [ + "tag": [ "id 18, present" ], - branch: [ - "id 92, present" + "branch": [ + "id 20, present" ], - stage: [ - "id 35, removed" + "stage": [ + "id 17, removed" ] }, - "id 80, removed" + "id 81, removed" ], - job: [ + "job": [ { - _: "id 81, removed", - log: [ - "id 29, removed", - "id 30, removed" - ], - annotation: [ + "_": "id 82, removed", + "queueable_job": [ "id 29, removed", "id 30, removed" ], - queueable_job: [ + "job_version": [ "id 29, removed", "id 30, removed" ] }, - "id 82, removed" + "id 83, removed" ], - request: [ + "request": [ { - _: "id 17, removed", - abuse: [ + "_": "id 17, removed", + "abuse": [ "id 15, removed", "id 16, removed" ], - message: [ + "message": [ "id 15, removed", "id 16, removed" ], - job: [ + "job": [ { - _: "id 86, removed", - log: [ - "id 31, removed", - "id 32, removed" - ], - annotation: [ + "_": "id 87, removed", + "queueable_job": [ "id 31, removed", "id 32, removed" ], - queueable_job: [ + "job_version": [ "id 31, removed", "id 32, removed" ] }, - "id 87, removed" + "id 88, removed" ], - build: [ + "build": [ { - _: "id 83, removed", - job: [ - "id 84, removed" + "_": "id 84, removed", + "job": [ + "id 85, removed" ], - repository: [ + "repository": [ "id 35, present", "id 34, present" ], - tag: [ + "tag": [ "id 19, present" ], - branch: [ - "id 93, present" + "branch": [ + "id 21, present" ], - stage: [ - "id 36, removed" + "stage": [ + "id 18, removed" ] }, - "id 85, removed" + "id 86, removed" + ], + "request_payload": [ + "id 15, removed", + "id 16, removed" + ], + "request_raw_configuration": [ + "id 15, removed", + "id 16, removed" + ], + "deleted_job": [ + "id 26, removed", + "id 27, removed" + ], + "deleted_build": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_request_payload": [ + "id 15, removed", + "id 16, removed" + ], + "deleted_request_raw_configuration": [ + "id 15, removed", + "id 16, removed" ] }, "id 18, removed" + ], + "deleted_build": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_job": [ + "id 28, removed", + "id 29, removed" + ], + "deleted_request": [ + "id 13, removed", + "id 14, removed" ] }, - "id 220, removed" + "id 10, removed" ], - permission: [ + "permission": [ "id 3, removed", "id 4, removed" ], - star: [ + "star": [ "id 3, removed", "id 4, removed" ], - pull_request: [ + "pull_request": [ { - _: "id 3, removed", - request: [ + "_": "id 3, removed", + "request": [ { - _: "id 29, removed", - abuse: [ + "_": "id 29, removed", + "abuse": [ "id 25, removed", "id 26, removed" ], - message: [ + "message": [ "id 25, removed", "id 26, removed" ], - job: [ + "job": [ { - _: "id 141, removed", - log: [ - "id 49, removed", - "id 50, removed" - ], - annotation: [ + "_": "id 143, removed", + "queueable_job": [ "id 49, removed", "id 50, removed" ], - queueable_job: [ + "job_version": [ "id 49, removed", "id 50, removed" ] }, - "id 142, removed" + "id 144, removed" ], - build: [ + "build": [ { - _: "id 138, removed", - job: [ - "id 139, removed" + "_": "id 140, removed", + "job": [ + "id 141, removed" ], - repository: [ + "repository": [ "id 57, present", "id 56, present" ], - tag: [ + "tag": [ "id 32, present" ], - branch: [ - "id 106, present" + "branch": [ + "id 34, present" ], - stage: [ - "id 47, removed" + "stage": [ + "id 30, removed" ] }, - "id 140, removed" - ] - }, - "id 30, removed" - ], - build: [ - { - _: "id 88, removed", - job: [ - { - _: "id 93, removed", - log: [ - "id 33, removed", - "id 34, removed" - ], - annotation: [ - "id 33, removed", - "id 34, removed" + "id 142, removed" + ], + "request_payload": [ + "id 25, removed", + "id 26, removed" + ], + "request_raw_configuration": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_job": [ + "id 45, removed", + "id 46, removed" + ], + "deleted_build": [ + "id 47, removed", + "id 48, removed" + ], + "deleted_request_payload": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_request_raw_configuration": [ + "id 25, removed", + "id 26, removed" + ] + }, + "id 30, removed" + ], + "build": [ + { + "_": "id 89, removed", + "job": [ + { + "_": "id 94, removed", + "queueable_job": [ + "id 33, removed", + "id 34, removed" ], - queueable_job: [ + "job_version": [ "id 33, removed", "id 34, removed" ] }, - "id 94, removed" + "id 95, removed", + "id 96, removed" ], - repository: [ + "repository": [ { - _: "id 54, present", - build: [ - "id 135, present" + "_": "id 54, present", + "build": [ + "id 137, present" ], - request: [ + "request": [ "id 28, present" ], - job: [ - "id 136, present" + "job": [ + "id 138, present" ], - branch: [ - "id 105, present" + "branch": [ + "id 33, present" ], - ssl_key: [ - "id 36, present" + "ssl_key": [ + "id 6, present" ], - commit: [ - "id 226, present" + "commit": [ + "id 16, present" ], - permission: [ + "permission": [ "id 6, present" ], - star: [ + "star": [ "id 6, present" ], - pull_request: [ + "pull_request": [ "id 5, present" ], - tag: [ + "tag": [ "id 31, present" ] }, "id 55, present", { - _: "id 52, present", - build: [ - "id 133, present" + "_": "id 52, present", + "build": [ + "id 135, present" ], - request: [ + "request": [ "id 27, present" ], - job: [ - "id 134, present" + "job": [ + "id 136, present" ], - branch: [ - "id 104, present" + "branch": [ + "id 32, present" ], - ssl_key: [ - "id 35, present" + "ssl_key": [ + "id 5, present" ], - commit: [ - "id 225, present" + "commit": [ + "id 15, present" ], - permission: [ + "permission": [ "id 5, present" ], - star: [ + "star": [ "id 5, present" ], - pull_request: [ + "pull_request": [ "id 4, present" ], - tag: [ + "tag": [ "id 30, present" ] }, "id 53, present" ], - tag: [ + "tag": [ { - _: "id 20, present", - build: [ + "_": "id 20, present", + "build": [ { - _: "id 95, present", - job: [ - "id 96, present" + "_": "id 97, present", + "job": [ + "id 98, present" ], - repository: [ + "repository": [ "id 37, present", "id 36, present" ], - tag: [ + "tag": [ "id 21, present" ], - branch: [ - "id 94, present" + "branch": [ + "id 22, present" ], - stage: [ - "id 39, present" + "stage": [ + "id 22, present" ] }, - "id 97, present" + "id 99, present" ], - commit: [ + "commit": [ { - _: "id 221, present", - build: [ + "_": "id 11, present", + "build": [ { - _: "id 98, present", - job: [ - "id 99, present" + "_": "id 100, present", + "job": [ + "id 101, present" ], - repository: [ + "repository": [ "id 39, present", "id 38, present" ], - tag: [ + "tag": [ "id 22, present" ], - branch: [ - "id 95, present" + "branch": [ + "id 23, present" ], - stage: [ - "id 40, present" + "stage": [ + "id 23, present" ] }, - "id 100, present" + "id 102, present" ], - job: [ + "job": [ { - _: "id 101, present", - log: [ - "id 35, present", - "id 36, present" - ], - annotation: [ + "_": "id 103, present", + "queueable_job": [ "id 35, present", "id 36, present" ], - queueable_job: [ + "job_version": [ "id 35, present", "id 36, present" ] }, - "id 102, present" + "id 104, present" ], - request: [ + "request": [ { - _: "id 19, present", - abuse: [ + "_": "id 19, present", + "abuse": [ "id 17, present", "id 18, present" ], - message: [ + "message": [ "id 17, present", "id 18, present" ], - job: [ + "job": [ { - _: "id 106, present", - log: [ - "id 37, present", - "id 38, present" - ], - annotation: [ + "_": "id 108, present", + "queueable_job": [ "id 37, present", "id 38, present" ], - queueable_job: [ + "job_version": [ "id 37, present", "id 38, present" ] }, - "id 107, present" + "id 109, present" ], - build: [ + "build": [ { - _: "id 103, present", - job: [ - "id 104, present" + "_": "id 105, present", + "job": [ + "id 106, present" ], - repository: [ + "repository": [ "id 41, present", "id 40, present" ], - tag: [ + "tag": [ "id 23, present" ], - branch: [ - "id 96, present" + "branch": [ + "id 24, present" ], - stage: [ - "id 41, present" + "stage": [ + "id 24, present" ] }, - "id 105, present" + "id 107, present" + ], + "request_payload": [ + "id 17, present", + "id 18, present" + ], + "request_raw_configuration": [ + "id 17, present", + "id 18, present" + ], + "deleted_job": [ + "id 30, present", + "id 31, present" + ], + "deleted_build": [ + "id 31, present", + "id 32, present" + ], + "deleted_request_payload": [ + "id 17, present", + "id 18, present" + ], + "deleted_request_raw_configuration": [ + "id 17, present", + "id 18, present" ] }, "id 20, present" + ], + "deleted_build": [ + "id 33, present", + "id 34, present" + ], + "deleted_job": [ + "id 32, present", + "id 33, present" + ], + "deleted_request": [ + "id 15, present", + "id 16, present" ] }, - "id 222, present" + "id 12, present" ], - request: [ + "request": [ { - _: "id 21, present", - abuse: [ + "_": "id 21, present", + "abuse": [ "id 19, present", "id 20, present" ], - message: [ + "message": [ "id 19, present", "id 20, present" ], - job: [ + "job": [ { - _: "id 111, present", - log: [ + "_": "id 113, present", + "queueable_job": [ "id 39, present", "id 40, present" ], - annotation: [ - "id 39, present", - "id 40, present" - ], - queueable_job: [ + "job_version": [ "id 39, present", "id 40, present" ] }, - "id 112, present" + "id 114, present" ], - build: [ + "build": [ { - _: "id 108, present", - job: [ - "id 109, present" + "_": "id 110, present", + "job": [ + "id 111, present" ], - repository: [ + "repository": [ "id 43, present", "id 42, present" ], - tag: [ + "tag": [ "id 24, present" ], - branch: [ - "id 97, present" + "branch": [ + "id 25, present" ], - stage: [ - "id 42, present" + "stage": [ + "id 25, present" ] }, - "id 110, present" + "id 112, present" + ], + "request_payload": [ + "id 19, present", + "id 20, present" + ], + "request_raw_configuration": [ + "id 19, present", + "id 20, present" + ], + "deleted_job": [ + "id 34, present", + "id 35, present" + ], + "deleted_build": [ + "id 35, present", + "id 36, present" + ], + "deleted_request_payload": [ + "id 19, present", + "id 20, present" + ], + "deleted_request_raw_configuration": [ + "id 19, present", + "id 20, present" ] }, "id 22, present" + ], + "deleted_build": [ + "id 37, present", + "id 38, present" + ], + "deleted_commit": [ + "id 7, present", + "id 8, present" + ], + "deleted_request": [ + "id 17, present", + "id 18, present" ] }, "id 25, present" ], - branch: [ + "branch": [ { - _: "id 98, present", - build: [ + "_": "id 26, present", + "build": [ { - _: "id 113, present", - job: [ - "id 114, present" + "_": "id 115, present", + "job": [ + "id 116, present" ], - repository: [ + "repository": [ "id 45, present", "id 44, present" ], - tag: [ + "tag": [ "id 26, present" ], - branch: [ - "id 99, present" + "branch": [ + "id 27, present" ], - stage: [ - "id 43, present" + "stage": [ + "id 26, present" ] }, - "id 115, present" + "id 117, present" ], - commit: [ + "commit": [ { - _: "id 223, present", - build: [ + "_": "id 13, present", + "build": [ { - _: "id 118, present", - job: [ - "id 119, present" + "_": "id 120, present", + "job": [ + "id 121, present" ], - repository: [ + "repository": [ "id 47, present", "id 46, present" ], - tag: [ + "tag": [ "id 27, present" ], - branch: [ - "id 100, present" + "branch": [ + "id 28, present" ], - stage: [ - "id 44, present" + "stage": [ + "id 27, present" ] }, - "id 120, present" + "id 122, present" ], - job: [ + "job": [ { - _: "id 121, present", - log: [ - "id 43, present", - "id 44, present" - ], - annotation: [ + "_": "id 123, present", + "queueable_job": [ "id 43, present", "id 44, present" ], - queueable_job: [ + "job_version": [ "id 43, present", "id 44, present" ] }, - "id 122, present" + "id 124, present" ], - request: [ + "request": [ { - _: "id 23, present", - abuse: [ + "_": "id 23, present", + "abuse": [ "id 21, present", "id 22, present" ], - message: [ + "message": [ "id 21, present", "id 22, present" ], - job: [ + "job": [ { - _: "id 126, present", - log: [ - "id 45, present", - "id 46, present" - ], - annotation: [ + "_": "id 128, present", + "queueable_job": [ "id 45, present", "id 46, present" ], - queueable_job: [ + "job_version": [ "id 45, present", "id 46, present" ] }, - "id 127, present" + "id 129, present" ], - build: [ + "build": [ { - _: "id 123, present", - job: [ - "id 124, present" + "_": "id 125, present", + "job": [ + "id 126, present" ], - repository: [ + "repository": [ "id 49, present", "id 48, present" ], - tag: [ + "tag": [ "id 28, present" ], - branch: [ - "id 101, present" + "branch": [ + "id 29, present" ], - stage: [ - "id 45, present" + "stage": [ + "id 28, present" ] }, - "id 125, present" + "id 127, present" + ], + "request_payload": [ + "id 21, present", + "id 22, present" + ], + "request_raw_configuration": [ + "id 21, present", + "id 22, present" + ], + "deleted_job": [ + "id 38, present", + "id 39, present" + ], + "deleted_build": [ + "id 41, present", + "id 42, present" + ], + "deleted_request_payload": [ + "id 21, present", + "id 22, present" + ], + "deleted_request_raw_configuration": [ + "id 21, present", + "id 22, present" ] }, "id 24, present" + ], + "deleted_build": [ + "id 43, present", + "id 44, present" + ], + "deleted_job": [ + "id 40, present", + "id 41, present" + ], + "deleted_request": [ + "id 19, present", + "id 20, present" ] }, - "id 224, present" + "id 14, present" ], - cron: [ - "id 5, present", - "id 6, present" + "cron": [ + "id 3, present" ], - job: [ + "job": [ { - _: "id 116, present", - log: [ - "id 41, present", - "id 42, present" - ], - annotation: [ + "_": "id 118, present", + "queueable_job": [ "id 41, present", "id 42, present" ], - queueable_job: [ + "job_version": [ "id 41, present", "id 42, present" ] }, - "id 117, present" + "id 119, present" ], - request: [ + "request": [ { - _: "id 25, present", - abuse: [ + "_": "id 25, present", + "abuse": [ "id 23, present", "id 24, present" ], - message: [ + "message": [ "id 23, present", "id 24, present" ], - job: [ + "job": [ { - _: "id 131, present", - log: [ - "id 47, present", - "id 48, present" - ], - annotation: [ + "_": "id 133, present", + "queueable_job": [ "id 47, present", "id 48, present" ], - queueable_job: [ + "job_version": [ "id 47, present", "id 48, present" ] }, - "id 132, present" + "id 134, present" ], - build: [ + "build": [ { - _: "id 128, present", - job: [ - "id 129, present" + "_": "id 130, present", + "job": [ + "id 131, present" ], - repository: [ + "repository": [ "id 51, present", "id 50, present" ], - tag: [ + "tag": [ "id 29, present" ], - branch: [ - "id 102, present" + "branch": [ + "id 30, present" ], - stage: [ - "id 46, present" + "stage": [ + "id 29, present" ] }, - "id 130, present" + "id 132, present" + ], + "request_payload": [ + "id 23, present", + "id 24, present" + ], + "request_raw_configuration": [ + "id 23, present", + "id 24, present" + ], + "deleted_job": [ + "id 42, present", + "id 43, present" + ], + "deleted_build": [ + "id 45, present", + "id 46, present" + ], + "deleted_request_payload": [ + "id 23, present", + "id 24, present" + ], + "deleted_request_raw_configuration": [ + "id 23, present", + "id 24, present" ] }, "id 26, present" + ], + "deleted_build": [ + "id 39, present", + "id 40, present" + ], + "deleted_commit": [ + "id 9, present", + "id 10, present" + ], + "deleted_job": [ + "id 36, present", + "id 37, present" + ], + "deleted_request": [ + "id 21, present", + "id 22, present" ] }, - "id 103, present" + "id 31, present" ], - stage: [ + "stage": [ { - _: "id 37, removed", - job: [ - "id 89, removed", - "id 90, removed" + "_": "id 19, removed", + "job": [ + "id 90, removed", + "id 91, removed" ] }, { - _: "id 38, removed", - job: [ - "id 91, removed", - "id 92, removed" + "_": "id 20, removed", + "job": [ + "id 92, removed", + "id 93, removed" ] - } + }, + "id 21, removed" + ], + "deleted_job": [ + "id 44, removed" + ], + "deleted_tag": [ + "id 2, present" + ], + "deleted_stage": [ + "id 2, removed" ] }, - "id 137, removed" + "id 139, removed" + ], + "deleted_request": [ + "id 23, removed", + "id 24, removed" + ], + "deleted_build": [ + "id 49, removed", + "id 50, removed" ] }, "id 6, removed" ], - tag: [ + "tag": [ { - _: "id 33, removed", - build: [ + "_": "id 33, removed", + "build": [ { - _: "id 143, removed", - job: [ - "id 144, removed" + "_": "id 145, removed", + "job": [ + "id 146, removed" ], - repository: [ + "repository": [ "id 59, present", "id 58, present" ], - tag: [ + "tag": [ "id 34, present" ], - branch: [ - "id 107, present" + "branch": [ + "id 35, present" ], - stage: [ - "id 48, removed" + "stage": [ + "id 31, removed" ] }, - "id 145, removed" + "id 147, removed" ], - commit: [ + "commit": [ { - _: "id 227, removed", - build: [ + "_": "id 17, removed", + "build": [ { - _: "id 146, removed", - job: [ - "id 147, removed" + "_": "id 148, removed", + "job": [ + "id 149, removed" ], - repository: [ + "repository": [ "id 61, present", "id 60, present" ], - tag: [ + "tag": [ "id 35, present" ], - branch: [ - "id 108, present" + "branch": [ + "id 36, present" ], - stage: [ - "id 49, removed" + "stage": [ + "id 32, removed" ] }, - "id 148, removed" + "id 150, removed" ], - job: [ + "job": [ { - _: "id 149, removed", - log: [ + "_": "id 151, removed", + "queueable_job": [ "id 51, removed", "id 52, removed" ], - annotation: [ - "id 51, removed", - "id 52, removed" - ], - queueable_job: [ + "job_version": [ "id 51, removed", "id 52, removed" ] }, - "id 150, removed" + "id 152, removed" ], - request: [ + "request": [ { - _: "id 31, removed", - abuse: [ + "_": "id 31, removed", + "abuse": [ "id 27, removed", "id 28, removed" ], - message: [ + "message": [ "id 27, removed", "id 28, removed" ], - job: [ + "job": [ { - _: "id 154, removed", - log: [ + "_": "id 156, removed", + "queueable_job": [ "id 53, removed", "id 54, removed" ], - annotation: [ - "id 53, removed", - "id 54, removed" - ], - queueable_job: [ + "job_version": [ "id 53, removed", "id 54, removed" ] }, - "id 155, removed" + "id 157, removed" ], - build: [ + "build": [ { - _: "id 151, removed", - job: [ - "id 152, removed" + "_": "id 153, removed", + "job": [ + "id 154, removed" ], - repository: [ + "repository": [ "id 63, present", "id 62, present" ], - tag: [ + "tag": [ "id 36, present" ], - branch: [ - "id 109, present" + "branch": [ + "id 37, present" ], - stage: [ - "id 50, removed" + "stage": [ + "id 33, removed" ] }, - "id 153, removed" + "id 155, removed" + ], + "request_payload": [ + "id 27, removed", + "id 28, removed" + ], + "request_raw_configuration": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_job": [ + "id 47, removed", + "id 48, removed" + ], + "deleted_build": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_request_payload": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_request_raw_configuration": [ + "id 27, removed", + "id 28, removed" ] }, "id 32, removed" + ], + "deleted_build": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_job": [ + "id 49, removed", + "id 50, removed" + ], + "deleted_request": [ + "id 25, removed", + "id 26, removed" ] }, - "id 228, removed" + "id 18, removed" ], - request: [ + "request": [ { - _: "id 33, removed", - abuse: [ + "_": "id 33, removed", + "abuse": [ "id 29, removed", "id 30, removed" ], - message: [ + "message": [ "id 29, removed", "id 30, removed" ], - job: [ + "job": [ { - _: "id 159, removed", - log: [ - "id 55, removed", - "id 56, removed" - ], - annotation: [ + "_": "id 161, removed", + "queueable_job": [ "id 55, removed", "id 56, removed" ], - queueable_job: [ + "job_version": [ "id 55, removed", "id 56, removed" ] }, - "id 160, removed" + "id 162, removed" ], - build: [ + "build": [ { - _: "id 156, removed", - job: [ - "id 157, removed" + "_": "id 158, removed", + "job": [ + "id 159, removed" ], - repository: [ + "repository": [ "id 65, present", "id 64, present" ], - tag: [ + "tag": [ "id 37, present" ], - branch: [ - "id 110, present" + "branch": [ + "id 38, present" ], - stage: [ - "id 51, removed" + "stage": [ + "id 34, removed" ] }, - "id 158, removed" + "id 160, removed" + ], + "request_payload": [ + "id 29, removed", + "id 30, removed" + ], + "request_raw_configuration": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_job": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_build": [ + "id 55, removed", + "id 56, removed" + ], + "deleted_request_payload": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_request_raw_configuration": [ + "id 29, removed", + "id 30, removed" ] }, "id 34, removed" + ], + "deleted_build": [ + "id 57, removed", + "id 58, removed" + ], + "deleted_commit": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_request": [ + "id 27, removed", + "id 28, removed" ] }, "id 38, removed" - ] - } + ], + "build_config": [ + { + "_": "id 1, removed", + "build": [ + { + "_": "id 163, removed", + "job": [ + "id 164, removed" + ], + "repository": [ + "id 67, present", + "id 66, present" + ], + "tag": [ + "id 39, present" + ], + "branch": [ + "id 39, present" + ], + "stage": [ + "id 35, removed" + ] + }, + "id 165, removed" + ], + "deleted_build": [ + "id 59, removed", + "id 60, removed" + ] + }, + "id 2, removed" + ], + "email_unsubscribe": [ + "id 1, removed", + "id 2, removed" + ], + "request_config": [ + { + "_": "id 1, removed", + "request": [ + { + "_": "id 35, removed", + "abuse": [ + "id 31, removed", + "id 32, removed" + ], + "message": [ + "id 31, removed", + "id 32, removed" + ], + "job": [ + { + "_": "id 169, removed", + "queueable_job": [ + "id 57, removed", + "id 58, removed" + ], + "job_version": [ + "id 57, removed", + "id 58, removed" + ] + }, + "id 170, removed" + ], + "build": [ + { + "_": "id 166, removed", + "job": [ + "id 167, removed" + ], + "repository": [ + "id 69, present", + "id 68, present" + ], + "tag": [ + "id 40, present" + ], + "branch": [ + "id 40, present" + ], + "stage": [ + "id 36, removed" + ] + }, + "id 168, removed" + ], + "request_payload": [ + "id 31, removed", + "id 32, removed" + ], + "request_raw_configuration": [ + "id 31, removed", + "id 32, removed" + ], + "deleted_job": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_build": [ + "id 61, removed", + "id 62, removed" + ], + "deleted_request_payload": [ + "id 31, removed", + "id 32, removed" + ], + "deleted_request_raw_configuration": [ + "id 31, removed", + "id 32, removed" + ] + }, + "id 36, removed" + ], + "deleted_request": [ + "id 29, removed", + "id 30, removed" + ] + }, + "id 2, removed" + ], + "job_config": [ + { + "_": "id 1, removed", + "job": [ + { + "_": "id 171, removed", + "queueable_job": [ + "id 59, removed", + "id 60, removed" + ], + "job_version": [ + "id 59, removed", + "id 60, removed" + ] + }, + "id 172, removed" + ], + "deleted_job": [ + "id 55, removed", + "id 56, removed" + ] + }, + "id 2, removed" + ], + "request_raw_config": [ + { + "_": "id 1, removed", + "request_raw_configuration": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_request_raw_configuration": [ + "id 33, removed", + "id 34, removed" + ] + }, + "id 2, removed" + ], + "repo_count": [ + "id 1, removed", + "id 1, removed, duplicate" + ], + "request_yaml_config": [ + { + "_": "id 1, removed", + "request": [ + { + "_": "id 37, removed", + "abuse": [ + "id 33, removed", + "id 34, removed" + ], + "message": [ + "id 33, removed", + "id 34, removed" + ], + "job": [ + { + "_": "id 176, removed", + "queueable_job": [ + "id 61, removed", + "id 62, removed" + ], + "job_version": [ + "id 61, removed", + "id 62, removed" + ] + }, + "id 177, removed" + ], + "build": [ + { + "_": "id 173, removed", + "job": [ + "id 174, removed" + ], + "repository": [ + "id 71, present", + "id 70, present" + ], + "tag": [ + "id 41, present" + ], + "branch": [ + "id 41, present" + ], + "stage": [ + "id 37, removed" + ] + }, + "id 175, removed" + ], + "request_payload": [ + "id 33, removed", + "id 34, removed" + ], + "request_raw_configuration": [ + "id 35, removed", + "id 36, removed" + ], + "deleted_job": [ + "id 57, removed", + "id 58, removed" + ], + "deleted_build": [ + "id 63, removed", + "id 64, removed" + ], + "deleted_request_payload": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_request_raw_configuration": [ + "id 35, removed", + "id 36, removed" + ] + }, + "id 38, removed" + ], + "deleted_request": [ + "id 31, removed", + "id 32, removed" + ] + }, + "id 2, removed" + ], + "deleted_build": [ + "id 65, removed", + "id 66, removed" + ], + "deleted_request": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_job": [ + "id 59, removed", + "id 60, removed" + ], + "deleted_ssl_key": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_commit": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_pull_request": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_tag": [ + "id 3, removed", + "id 4, removed" + ], + "deleted_build_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_job_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_raw_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_yaml_config": [ + "id 1, removed", + "id 2, removed" + ] + } ] }, { - _: "id 211, removed", - job: [ + "_": "id 229, removed", + "job": [ { - _: "id 216, removed", - log: [ - "id 73, removed", - "id 74, removed" - ], - annotation: [ - "id 73, removed", - "id 74, removed" - ], - queueable_job: [ - "id 73, removed", - "id 74, removed" + "_": "id 234, removed", + "queueable_job": [ + "id 79, removed", + "id 80, removed" + ], + "job_version": [ + "id 79, removed", + "id 80, removed" ] }, - "id 217, removed" + "id 235, removed", + "id 236, removed" ], - repository: [ + "repository": [ { - _: "id 105, present", - build: [ - "id 258, present" + "_": "id 111, present", + "build": [ + "id 277, present" ], - request: [ - "id 54, present" + "request": [ + "id 58, present" ], - job: [ - "id 259, present" + "job": [ + "id 278, present" ], - branch: [ - "id 134, present" + "branch": [ + "id 65, present" ], - ssl_key: [ - "id 40, present" + "ssl_key": [ + "id 10, present" ], - commit: [ - "id 240, present" + "commit": [ + "id 30, present" ], - permission: [ + "permission": [ "id 10, present" ], - star: [ + "star": [ "id 10, present" ], - pull_request: [ + "pull_request": [ "id 10, present" ], - tag: [ - "id 62, present" + "tag": [ + "id 65, present" ] }, - "id 106, present", + "id 112, present", { - _: "id 103, present", - build: [ - "id 256, present" + "_": "id 109, present", + "build": [ + "id 275, present" ], - request: [ - "id 53, present" + "request": [ + "id 57, present" ], - job: [ - "id 257, present" + "job": [ + "id 276, present" ], - branch: [ - "id 133, present" + "branch": [ + "id 64, present" ], - ssl_key: [ - "id 39, present" + "ssl_key": [ + "id 9, present" ], - commit: [ - "id 239, present" + "commit": [ + "id 29, present" ], - permission: [ + "permission": [ "id 9, present" ], - star: [ + "star": [ "id 9, present" ], - pull_request: [ + "pull_request": [ "id 9, present" ], - tag: [ - "id 61, present" + "tag": [ + "id 64, present" ] }, - "id 104, present" + "id 110, present" ], - tag: [ + "tag": [ { - _: "id 51, present", - build: [ + "_": "id 54, present", + "build": [ { - _: "id 218, present", - job: [ - "id 219, present" + "_": "id 237, present", + "job": [ + "id 238, present" ], - repository: [ - "id 88, present", - "id 87, present" + "repository": [ + "id 94, present", + "id 93, present" ], - tag: [ - "id 52, present" + "tag": [ + "id 55, present" ], - branch: [ - "id 123, present" + "branch": [ + "id 54, present" ], - stage: [ - "id 64, present" + "stage": [ + "id 52, present" ] }, - "id 220, present" + "id 239, present" ], - commit: [ + "commit": [ { - _: "id 235, present", - build: [ + "_": "id 25, present", + "build": [ { - _: "id 221, present", - job: [ - "id 222, present" + "_": "id 240, present", + "job": [ + "id 241, present" ], - repository: [ - "id 90, present", - "id 89, present" + "repository": [ + "id 96, present", + "id 95, present" ], - tag: [ - "id 53, present" + "tag": [ + "id 56, present" ], - branch: [ - "id 124, present" + "branch": [ + "id 55, present" ], - stage: [ - "id 65, present" + "stage": [ + "id 53, present" ] }, - "id 223, present" + "id 242, present" ], - job: [ + "job": [ { - _: "id 224, present", - log: [ - "id 75, present", - "id 76, present" - ], - annotation: [ - "id 75, present", - "id 76, present" - ], - queueable_job: [ - "id 75, present", - "id 76, present" + "_": "id 243, present", + "queueable_job": [ + "id 81, present", + "id 82, present" + ], + "job_version": [ + "id 81, present", + "id 82, present" ] }, - "id 225, present" + "id 244, present" ], - request: [ + "request": [ { - _: "id 45, present", - abuse: [ - "id 39, present", - "id 40, present" + "_": "id 49, present", + "abuse": [ + "id 43, present", + "id 44, present" ], - message: [ - "id 39, present", - "id 40, present" + "message": [ + "id 43, present", + "id 44, present" ], - job: [ + "job": [ { - _: "id 229, present", - log: [ - "id 77, present", - "id 78, present" - ], - annotation: [ - "id 77, present", - "id 78, present" - ], - queueable_job: [ - "id 77, present", - "id 78, present" + "_": "id 248, present", + "queueable_job": [ + "id 83, present", + "id 84, present" + ], + "job_version": [ + "id 83, present", + "id 84, present" ] }, - "id 230, present" + "id 249, present" ], - build: [ + "build": [ { - _: "id 226, present", - job: [ - "id 227, present" + "_": "id 245, present", + "job": [ + "id 246, present" ], - repository: [ - "id 92, present", - "id 91, present" + "repository": [ + "id 98, present", + "id 97, present" ], - tag: [ - "id 54, present" + "tag": [ + "id 57, present" ], - branch: [ - "id 125, present" + "branch": [ + "id 56, present" ], - stage: [ - "id 66, present" + "stage": [ + "id 54, present" ] }, - "id 228, present" + "id 247, present" + ], + "request_payload": [ + "id 43, present", + "id 44, present" + ], + "request_raw_configuration": [ + "id 45, present", + "id 46, present" + ], + "deleted_job": [ + "id 76, present", + "id 77, present" + ], + "deleted_build": [ + "id 83, present", + "id 84, present" + ], + "deleted_request_payload": [ + "id 43, present", + "id 44, present" + ], + "deleted_request_raw_configuration": [ + "id 45, present", + "id 46, present" ] }, - "id 46, present" + "id 50, present" + ], + "deleted_build": [ + "id 85, present", + "id 86, present" + ], + "deleted_job": [ + "id 78, present", + "id 79, present" + ], + "deleted_request": [ + "id 43, present", + "id 44, present" ] }, - "id 236, present" + "id 26, present" ], - request: [ + "request": [ { - _: "id 47, present", - abuse: [ - "id 41, present", - "id 42, present" + "_": "id 51, present", + "abuse": [ + "id 45, present", + "id 46, present" ], - message: [ - "id 41, present", - "id 42, present" + "message": [ + "id 45, present", + "id 46, present" ], - job: [ + "job": [ { - _: "id 234, present", - log: [ - "id 79, present", - "id 80, present" - ], - annotation: [ - "id 79, present", - "id 80, present" - ], - queueable_job: [ - "id 79, present", - "id 80, present" + "_": "id 253, present", + "queueable_job": [ + "id 85, present", + "id 86, present" + ], + "job_version": [ + "id 85, present", + "id 86, present" ] }, - "id 235, present" + "id 254, present" ], - build: [ + "build": [ { - _: "id 231, present", - job: [ - "id 232, present" + "_": "id 250, present", + "job": [ + "id 251, present" ], - repository: [ - "id 94, present", - "id 93, present" + "repository": [ + "id 100, present", + "id 99, present" ], - tag: [ - "id 55, present" + "tag": [ + "id 58, present" ], - branch: [ - "id 126, present" + "branch": [ + "id 57, present" ], - stage: [ - "id 67, present" + "stage": [ + "id 55, present" ] }, - "id 233, present" + "id 252, present" + ], + "request_payload": [ + "id 45, present", + "id 46, present" + ], + "request_raw_configuration": [ + "id 47, present", + "id 48, present" + ], + "deleted_job": [ + "id 80, present", + "id 81, present" + ], + "deleted_build": [ + "id 87, present", + "id 88, present" + ], + "deleted_request_payload": [ + "id 45, present", + "id 46, present" + ], + "deleted_request_raw_configuration": [ + "id 47, present", + "id 48, present" ] }, - "id 48, present" + "id 52, present" + ], + "deleted_build": [ + "id 89, present", + "id 90, present" + ], + "deleted_commit": [ + "id 19, present", + "id 20, present" + ], + "deleted_request": [ + "id 45, present", + "id 46, present" ] }, - "id 56, present" + "id 59, present" ], - branch: [ + "branch": [ { - _: "id 127, present", - build: [ + "_": "id 58, present", + "build": [ { - _: "id 236, present", - job: [ - "id 237, present" + "_": "id 255, present", + "job": [ + "id 256, present" ], - repository: [ - "id 96, present", - "id 95, present" + "repository": [ + "id 102, present", + "id 101, present" ], - tag: [ - "id 57, present" + "tag": [ + "id 60, present" ], - branch: [ - "id 128, present" + "branch": [ + "id 59, present" ], - stage: [ - "id 68, present" + "stage": [ + "id 56, present" ] }, - "id 238, present" + "id 257, present" ], - commit: [ + "commit": [ { - _: "id 237, present", - build: [ + "_": "id 27, present", + "build": [ { - _: "id 241, present", - job: [ - "id 242, present" + "_": "id 260, present", + "job": [ + "id 261, present" ], - repository: [ - "id 98, present", - "id 97, present" + "repository": [ + "id 104, present", + "id 103, present" ], - tag: [ - "id 58, present" + "tag": [ + "id 61, present" ], - branch: [ - "id 129, present" + "branch": [ + "id 60, present" ], - stage: [ - "id 69, present" + "stage": [ + "id 57, present" ] }, - "id 243, present" + "id 262, present" ], - job: [ + "job": [ { - _: "id 244, present", - log: [ - "id 83, present", - "id 84, present" - ], - annotation: [ - "id 83, present", - "id 84, present" - ], - queueable_job: [ - "id 83, present", - "id 84, present" + "_": "id 263, present", + "queueable_job": [ + "id 89, present", + "id 90, present" + ], + "job_version": [ + "id 89, present", + "id 90, present" ] }, - "id 245, present" + "id 264, present" ], - request: [ + "request": [ { - _: "id 49, present", - abuse: [ - "id 43, present", - "id 44, present" + "_": "id 53, present", + "abuse": [ + "id 47, present", + "id 48, present" ], - message: [ - "id 43, present", - "id 44, present" + "message": [ + "id 47, present", + "id 48, present" ], - job: [ + "job": [ { - _: "id 249, present", - log: [ - "id 85, present", - "id 86, present" - ], - annotation: [ - "id 85, present", - "id 86, present" - ], - queueable_job: [ - "id 85, present", - "id 86, present" + "_": "id 268, present", + "queueable_job": [ + "id 91, present", + "id 92, present" + ], + "job_version": [ + "id 91, present", + "id 92, present" ] }, - "id 250, present" + "id 269, present" ], - build: [ + "build": [ { - _: "id 246, present", - job: [ - "id 247, present" + "_": "id 265, present", + "job": [ + "id 266, present" ], - repository: [ - "id 100, present", - "id 99, present" + "repository": [ + "id 106, present", + "id 105, present" ], - tag: [ - "id 59, present" + "tag": [ + "id 62, present" ], - branch: [ - "id 130, present" + "branch": [ + "id 61, present" ], - stage: [ - "id 70, present" + "stage": [ + "id 58, present" ] }, - "id 248, present" + "id 267, present" + ], + "request_payload": [ + "id 47, present", + "id 48, present" + ], + "request_raw_configuration": [ + "id 49, present", + "id 50, present" + ], + "deleted_job": [ + "id 84, present", + "id 85, present" + ], + "deleted_build": [ + "id 93, present", + "id 94, present" + ], + "deleted_request_payload": [ + "id 47, present", + "id 48, present" + ], + "deleted_request_raw_configuration": [ + "id 49, present", + "id 50, present" ] }, - "id 50, present" + "id 54, present" + ], + "deleted_build": [ + "id 95, present", + "id 96, present" + ], + "deleted_job": [ + "id 86, present", + "id 87, present" + ], + "deleted_request": [ + "id 47, present", + "id 48, present" ] }, - "id 238, present" + "id 28, present" ], - cron: [ - "id 9, present", - "id 10, present" + "cron": [ + "id 5, present" ], - job: [ + "job": [ { - _: "id 239, present", - log: [ - "id 81, present", - "id 82, present" - ], - annotation: [ - "id 81, present", - "id 82, present" + "_": "id 258, present", + "queueable_job": [ + "id 87, present", + "id 88, present" ], - queueable_job: [ - "id 81, present", - "id 82, present" + "job_version": [ + "id 87, present", + "id 88, present" ] }, - "id 240, present" + "id 259, present" ], - request: [ + "request": [ { - _: "id 51, present", - abuse: [ - "id 45, present", - "id 46, present" + "_": "id 55, present", + "abuse": [ + "id 49, present", + "id 50, present" ], - message: [ - "id 45, present", - "id 46, present" + "message": [ + "id 49, present", + "id 50, present" ], - job: [ + "job": [ { - _: "id 254, present", - log: [ - "id 87, present", - "id 88, present" - ], - annotation: [ - "id 87, present", - "id 88, present" - ], - queueable_job: [ - "id 87, present", - "id 88, present" + "_": "id 273, present", + "queueable_job": [ + "id 93, present", + "id 94, present" + ], + "job_version": [ + "id 93, present", + "id 94, present" ] }, - "id 255, present" + "id 274, present" ], - build: [ + "build": [ { - _: "id 251, present", - job: [ - "id 252, present" + "_": "id 270, present", + "job": [ + "id 271, present" ], - repository: [ - "id 102, present", - "id 101, present" + "repository": [ + "id 108, present", + "id 107, present" ], - tag: [ - "id 60, present" + "tag": [ + "id 63, present" ], - branch: [ - "id 131, present" + "branch": [ + "id 62, present" ], - stage: [ - "id 71, present" + "stage": [ + "id 59, present" ] }, - "id 253, present" + "id 272, present" + ], + "request_payload": [ + "id 49, present", + "id 50, present" + ], + "request_raw_configuration": [ + "id 51, present", + "id 52, present" + ], + "deleted_job": [ + "id 88, present", + "id 89, present" + ], + "deleted_build": [ + "id 97, present", + "id 98, present" + ], + "deleted_request_payload": [ + "id 49, present", + "id 50, present" + ], + "deleted_request_raw_configuration": [ + "id 51, present", + "id 52, present" ] }, - "id 52, present" + "id 56, present" + ], + "deleted_build": [ + "id 91, present", + "id 92, present" + ], + "deleted_commit": [ + "id 21, present", + "id 22, present" + ], + "deleted_job": [ + "id 82, present", + "id 83, present" + ], + "deleted_request": [ + "id 49, present", + "id 50, present" ] }, - "id 132, present" + "id 63, present" ], - stage: [ + "stage": [ { - _: "id 62, removed", - job: [ - "id 212, removed", - "id 213, removed" + "_": "id 49, removed", + "job": [ + "id 230, removed", + "id 231, removed" ] }, { - _: "id 63, removed", - job: [ - "id 214, removed", - "id 215, removed" + "_": "id 50, removed", + "job": [ + "id 232, removed", + "id 233, removed" ] - } + }, + "id 51, removed" + ], + "deleted_job": [ + "id 90, removed" + ], + "deleted_tag": [ + "id 6, present" + ], + "deleted_stage": [ + "id 4, removed" ] }, { - _: "id 260, removed", - repository: [ + "_": "id 279, removed", + "repository": [ "id 1, removed, duplicate" ] } ], - repository: [ + "repository": [ "id 1, removed, duplicate", - "id 66, removed" + "id 72, removed" ], - job: [ + "job": [ { - _: "id 271, removed", - log: [ - "id 93, removed", - "id 94, removed" + "_": "id 290, removed", + "queueable_job": [ + "id 99, removed", + "id 100, removed" ], - annotation: [ - "id 93, removed", - "id 94, removed" - ], - queueable_job: [ - "id 93, removed", - "id 94, removed" + "job_version": [ + "id 99, removed", + "id 100, removed" ] }, - "id 272, removed" + "id 291, removed" ], - request: [ + "request": [ { - _: "id 57, removed", - abuse: [ - "id 49, removed", - "id 50, removed" + "_": "id 61, removed", + "abuse": [ + "id 53, removed", + "id 54, removed" ], - message: [ - "id 49, removed", - "id 50, removed" + "message": [ + "id 53, removed", + "id 54, removed" ], - job: [ + "job": [ { - _: "id 269, removed", - log: [ - "id 91, removed", - "id 92, removed" - ], - annotation: [ - "id 91, removed", - "id 92, removed" - ], - queueable_job: [ - "id 91, removed", - "id 92, removed" + "_": "id 288, removed", + "queueable_job": [ + "id 97, removed", + "id 98, removed" + ], + "job_version": [ + "id 97, removed", + "id 98, removed" ] }, - "id 270, removed" + "id 289, removed" ], - build: [ + "build": [ { - _: "id 266, removed", - job: [ - "id 267, removed" + "_": "id 285, removed", + "job": [ + "id 286, removed" ], - repository: [ - "id 110, present", - "id 109, present" + "repository": [ + "id 116, present", + "id 115, present" ], - tag: [ - "id 64, present" + "tag": [ + "id 67, present" ], - branch: [ - "id 136, present" + "branch": [ + "id 67, present" ], - stage: [ - "id 73, removed" + "stage": [ + "id 61, removed" ] }, - "id 268, removed" + "id 287, removed" + ], + "request_payload": [ + "id 53, removed", + "id 54, removed" + ], + "request_raw_configuration": [ + "id 55, removed", + "id 56, removed" + ], + "deleted_job": [ + "id 93, removed", + "id 94, removed" + ], + "deleted_build": [ + "id 101, removed", + "id 102, removed" + ], + "deleted_request_payload": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_request_raw_configuration": [ + "id 55, removed", + "id 56, removed" ] }, - "id 58, removed", + "id 62, removed", { - _: "id 55, removed", - abuse: [ - "id 47, removed", - "id 48, removed" + "_": "id 59, removed", + "abuse": [ + "id 51, removed", + "id 52, removed" ], - message: [ - "id 47, removed", - "id 48, removed" + "message": [ + "id 51, removed", + "id 52, removed" ], - job: [ + "job": [ { - _: "id 264, removed", - log: [ - "id 89, removed", - "id 90, removed" - ], - annotation: [ - "id 89, removed", - "id 90, removed" - ], - queueable_job: [ - "id 89, removed", - "id 90, removed" + "_": "id 283, removed", + "queueable_job": [ + "id 95, removed", + "id 96, removed" + ], + "job_version": [ + "id 95, removed", + "id 96, removed" ] }, - "id 265, removed" + "id 284, removed" ], - build: [ + "build": [ { - _: "id 261, removed", - job: [ - "id 262, removed" + "_": "id 280, removed", + "job": [ + "id 281, removed" ], - repository: [ - "id 108, present", - "id 107, present" + "repository": [ + "id 114, present", + "id 113, present" ], - tag: [ - "id 63, present" + "tag": [ + "id 66, present" ], - branch: [ - "id 135, present" + "branch": [ + "id 66, present" ], - stage: [ - "id 72, removed" + "stage": [ + "id 60, removed" ] }, - "id 263, removed" + "id 282, removed" + ], + "request_payload": [ + "id 51, removed", + "id 52, removed" + ], + "request_raw_configuration": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_job": [ + "id 91, removed", + "id 92, removed" + ], + "deleted_build": [ + "id 99, removed", + "id 100, removed" + ], + "deleted_request_payload": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_request_raw_configuration": [ + "id 53, removed", + "id 54, removed" ] }, - "id 56, removed" + "id 60, removed" ], - abuse: [ - "id 51, removed", - "id 52, removed" + "abuse": [ + "id 55, removed", + "id 56, removed" ], - subscription: [ + "subscription": [ { - _: "id 1, removed", - invoice: [ + "_": "id 1, removed", + "invoice": [ "id 1, removed", "id 2, removed" ] }, { - _: "id 2, removed", - invoice: [ + "_": "id 2, removed", + "invoice": [ "id 3, removed", "id 4, removed" ] } ], - owner_group: [ + "owner_group": [ "id 1, removed", "id 2, removed" ], - trial: [ + "trial": [ { - _: "id 1, removed", - trial_allowance: [ + "_": "id 1, removed", + "trial_allowance": [ "id 1, removed", "id 2, removed" ] }, { - _: "id 2, removed", - trial_allowance: [ + "_": "id 2, removed", + "trial_allowance": [ "id 3, removed", "id 4, removed" ] } ], - trial_allowance: [ + "trial_allowance": [ "id 5, removed", "id 6, removed" ], - broadcast: [ + "broadcast": [ "id 1, removed", "id 2, removed" ], - membership: [ + "membership": [ "id 1, removed", "id 2, removed" ] diff --git a/spec/support/expected_dependency_trees/remove_repo_with_dependencies.rb b/spec/support/expected_dependency_trees/remove_repo_with_dependencies.rb index f14fe0e..68b3d88 100644 --- a/spec/support/expected_dependency_trees/remove_repo_with_dependencies.rb +++ b/spec/support/expected_dependency_trees/remove_repo_with_dependencies.rb @@ -1,1628 +1,2365 @@ class ExpectedDependencyTrees def self.remove_repo_with_dependencies { - _: "id 1, removed", - build: [ + "_": "id 1, removed", + "build": [ { - _: "id 1, removed", - job: [ + "_": "id 1, removed", + "job": [ { - _: "id 6, removed", - log: [ + "_": "id 6, removed", + "queueable_job": [ "id 1, removed", "id 2, removed" ], - annotation: [ - "id 1, removed", - "id 2, removed" - ], - queueable_job: [ + "job_version": [ "id 1, removed", "id 2, removed" ] }, - "id 7, removed" + "id 7, removed", + "id 8, removed" ], - repository: [ + "repository": [ { - _: "id 20, present", - build: [ - "id 48, present" + "_": "id 20, present", + "build": [ + "id 49, present" ], - request: [ + "request": [ "id 10, present" ], - job: [ - "id 49, present" + "job": [ + "id 50, present" ], - branch: [ - "id 84, present" + "branch": [ + "id 12, present" ], - ssl_key: [ - "id 32, present" + "ssl_key": [ + "id 2, present" ], - commit: [ - "id 216, present" + "commit": [ + "id 6, present" ], - permission: [ + "permission": [ "id 2, present" ], - star: [ + "star": [ "id 2, present" ], - pull_request: [ + "pull_request": [ "id 2, present" ], - tag: [ + "tag": [ "id 12, present" ] }, "id 21, present", { - _: "id 18, present", - build: [ - "id 46, present" + "_": "id 18, present", + "build": [ + "id 47, present" ], - request: [ + "request": [ "id 9, present" ], - job: [ - "id 47, present" + "job": [ + "id 48, present" ], - branch: [ - "id 83, present" + "branch": [ + "id 11, present" ], - ssl_key: [ - "id 31, present" + "ssl_key": [ + "id 1, present" ], - commit: [ - "id 215, present" + "commit": [ + "id 5, present" ], - permission: [ + "permission": [ "id 1, present" ], - star: [ + "star": [ "id 1, present" ], - pull_request: [ + "pull_request": [ "id 1, present" ], - tag: [ + "tag": [ "id 11, present" ] }, "id 19, present" ], - tag: [ + "tag": [ { - _: "id 1, present", - build: [ + "_": "id 1, present", + "build": [ { - _: "id 8, present", - job: [ - "id 9, present" + "_": "id 9, present", + "job": [ + "id 10, present" ], - repository: [ + "repository": [ "id 3, present", "id 2, present" ], - tag: [ + "tag": [ "id 2, present" ], - branch: [ - "id 73, present" + "branch": [ + "id 1, present" ], - stage: [ - "id 22, present" + "stage": [ + "id 4, present" ] }, - "id 10, present" + "id 11, present" ], - commit: [ + "commit": [ { - _: "id 211, present", - build: [ + "_": "id 1, present", + "build": [ { - _: "id 11, present", - job: [ - "id 12, present" + "_": "id 12, present", + "job": [ + "id 13, present" ], - repository: [ + "repository": [ "id 5, present", "id 4, present" ], - tag: [ + "tag": [ "id 3, present" ], - branch: [ - "id 74, present" + "branch": [ + "id 2, present" ], - stage: [ - "id 23, present" + "stage": [ + "id 5, present" ] }, - "id 13, present" + "id 14, present" ], - job: [ + "job": [ { - _: "id 14, present", - log: [ + "_": "id 15, present", + "queueable_job": [ "id 3, present", "id 4, present" ], - annotation: [ - "id 3, present", - "id 4, present" - ], - queueable_job: [ + "job_version": [ "id 3, present", "id 4, present" ] }, - "id 15, present" + "id 16, present" ], - request: [ + "request": [ { - _: "id 1, present", - abuse: [ + "_": "id 1, present", + "abuse": [ "id 1, present", "id 2, present" ], - message: [ + "message": [ "id 1, present", "id 2, present" ], - job: [ + "job": [ { - _: "id 19, present", - log: [ + "_": "id 20, present", + "queueable_job": [ "id 5, present", "id 6, present" ], - annotation: [ - "id 5, present", - "id 6, present" - ], - queueable_job: [ + "job_version": [ "id 5, present", "id 6, present" ] }, - "id 20, present" + "id 21, present" ], - build: [ + "build": [ { - _: "id 16, present", - job: [ - "id 17, present" + "_": "id 17, present", + "job": [ + "id 18, present" ], - repository: [ + "repository": [ "id 7, present", "id 6, present" ], - tag: [ + "tag": [ "id 4, present" ], - branch: [ - "id 75, present" + "branch": [ + "id 3, present" ], - stage: [ - "id 24, present" + "stage": [ + "id 6, present" ] }, - "id 18, present" + "id 19, present" + ], + "request_payload": [ + "id 1, present", + "id 2, present" + ], + "request_raw_configuration": [ + "id 1, present", + "id 2, present" + ], + "deleted_job": [ + "id 1, present", + "id 2, present" + ], + "deleted_build": [ + "id 1, present", + "id 2, present" + ], + "deleted_request_payload": [ + "id 1, present", + "id 2, present" + ], + "deleted_request_raw_configuration": [ + "id 1, present", + "id 2, present" ] }, "id 2, present" + ], + "deleted_build": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 3, present", + "id 4, present" + ], + "deleted_request": [ + "id 1, present", + "id 2, present" ] }, - "id 212, present" + "id 2, present" ], - request: [ + "request": [ { - _: "id 3, present", - abuse: [ + "_": "id 3, present", + "abuse": [ "id 3, present", "id 4, present" ], - message: [ + "message": [ "id 3, present", "id 4, present" ], - job: [ + "job": [ { - _: "id 24, present", - log: [ - "id 7, present", - "id 8, present" - ], - annotation: [ + "_": "id 25, present", + "queueable_job": [ "id 7, present", "id 8, present" ], - queueable_job: [ + "job_version": [ "id 7, present", "id 8, present" ] }, - "id 25, present" + "id 26, present" ], - build: [ + "build": [ { - _: "id 21, present", - job: [ - "id 22, present" + "_": "id 22, present", + "job": [ + "id 23, present" ], - repository: [ + "repository": [ "id 9, present", "id 8, present" ], - tag: [ + "tag": [ "id 5, present" ], - branch: [ - "id 76, present" + "branch": [ + "id 4, present" ], - stage: [ - "id 25, present" + "stage": [ + "id 7, present" ] }, - "id 23, present" + "id 24, present" + ], + "request_payload": [ + "id 3, present", + "id 4, present" + ], + "request_raw_configuration": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 5, present", + "id 6, present" + ], + "deleted_build": [ + "id 5, present", + "id 6, present" + ], + "deleted_request_payload": [ + "id 3, present", + "id 4, present" + ], + "deleted_request_raw_configuration": [ + "id 3, present", + "id 4, present" ] }, "id 4, present" + ], + "deleted_build": [ + "id 7, present", + "id 8, present" + ], + "deleted_commit": [ + "id 1, present", + "id 2, present" + ], + "deleted_request": [ + "id 3, present", + "id 4, present" ] }, "id 6, present" ], - branch: [ + "branch": [ { - _: "id 77, present", - build: [ + "_": "id 5, present", + "build": [ { - _: "id 26, present", - job: [ - "id 27, present" + "_": "id 27, present", + "job": [ + "id 28, present" ], - repository: [ + "repository": [ "id 11, present", "id 10, present" ], - tag: [ + "tag": [ "id 7, present" ], - branch: [ - "id 78, present" + "branch": [ + "id 6, present" ], - stage: [ - "id 26, present" + "stage": [ + "id 8, present" ] }, - "id 28, present" + "id 29, present" ], - commit: [ + "commit": [ { - _: "id 213, present", - build: [ + "_": "id 3, present", + "build": [ { - _: "id 31, present", - job: [ - "id 32, present" + "_": "id 32, present", + "job": [ + "id 33, present" ], - repository: [ + "repository": [ "id 13, present", "id 12, present" ], - tag: [ + "tag": [ "id 8, present" ], - branch: [ - "id 79, present" + "branch": [ + "id 7, present" ], - stage: [ - "id 27, present" + "stage": [ + "id 9, present" ] }, - "id 33, present" + "id 34, present" ], - job: [ + "job": [ { - _: "id 34, present", - log: [ - "id 11, present", - "id 12, present" - ], - annotation: [ + "_": "id 35, present", + "queueable_job": [ "id 11, present", "id 12, present" ], - queueable_job: [ + "job_version": [ "id 11, present", "id 12, present" ] }, - "id 35, present" + "id 36, present" ], - request: [ + "request": [ { - _: "id 5, present", - abuse: [ + "_": "id 5, present", + "abuse": [ "id 5, present", "id 6, present" ], - message: [ + "message": [ "id 5, present", "id 6, present" ], - job: [ + "job": [ { - _: "id 39, present", - log: [ + "_": "id 40, present", + "queueable_job": [ "id 13, present", "id 14, present" ], - annotation: [ - "id 13, present", - "id 14, present" - ], - queueable_job: [ + "job_version": [ "id 13, present", "id 14, present" ] }, - "id 40, present" + "id 41, present" ], - build: [ + "build": [ { - _: "id 36, present", - job: [ - "id 37, present" + "_": "id 37, present", + "job": [ + "id 38, present" ], - repository: [ + "repository": [ "id 15, present", "id 14, present" ], - tag: [ + "tag": [ "id 9, present" ], - branch: [ - "id 80, present" + "branch": [ + "id 8, present" ], - stage: [ - "id 28, present" + "stage": [ + "id 10, present" ] }, - "id 38, present" + "id 39, present" + ], + "request_payload": [ + "id 5, present", + "id 6, present" + ], + "request_raw_configuration": [ + "id 5, present", + "id 6, present" + ], + "deleted_job": [ + "id 9, present", + "id 10, present" + ], + "deleted_build": [ + "id 11, present", + "id 12, present" + ], + "deleted_request_payload": [ + "id 5, present", + "id 6, present" + ], + "deleted_request_raw_configuration": [ + "id 5, present", + "id 6, present" ] }, "id 6, present" + ], + "deleted_build": [ + "id 13, present", + "id 14, present" + ], + "deleted_job": [ + "id 11, present", + "id 12, present" + ], + "deleted_request": [ + "id 5, present", + "id 6, present" ] }, - "id 214, present" + "id 4, present" ], - cron: [ - "id 1, present", - "id 2, present" + "cron": [ + "id 1, present" ], - job: [ + "job": [ { - _: "id 29, present", - log: [ - "id 9, present", - "id 10, present" - ], - annotation: [ + "_": "id 30, present", + "queueable_job": [ "id 9, present", "id 10, present" ], - queueable_job: [ + "job_version": [ "id 9, present", "id 10, present" ] }, - "id 30, present" + "id 31, present" ], - request: [ + "request": [ { - _: "id 7, present", - abuse: [ + "_": "id 7, present", + "abuse": [ "id 7, present", "id 8, present" ], - message: [ + "message": [ "id 7, present", "id 8, present" ], - job: [ + "job": [ { - _: "id 44, present", - log: [ - "id 15, present", - "id 16, present" - ], - annotation: [ + "_": "id 45, present", + "queueable_job": [ "id 15, present", "id 16, present" ], - queueable_job: [ + "job_version": [ "id 15, present", "id 16, present" ] }, - "id 45, present" + "id 46, present" ], - build: [ + "build": [ { - _: "id 41, present", - job: [ - "id 42, present" + "_": "id 42, present", + "job": [ + "id 43, present" ], - repository: [ + "repository": [ "id 17, present", "id 16, present" ], - tag: [ + "tag": [ "id 10, present" ], - branch: [ - "id 81, present" + "branch": [ + "id 9, present" ], - stage: [ - "id 29, present" + "stage": [ + "id 11, present" ] }, - "id 43, present" + "id 44, present" + ], + "request_payload": [ + "id 7, present", + "id 8, present" + ], + "request_raw_configuration": [ + "id 7, present", + "id 8, present" + ], + "deleted_job": [ + "id 13, present", + "id 14, present" + ], + "deleted_build": [ + "id 15, present", + "id 16, present" + ], + "deleted_request_payload": [ + "id 7, present", + "id 8, present" + ], + "deleted_request_raw_configuration": [ + "id 7, present", + "id 8, present" ] }, "id 8, present" + ], + "deleted_build": [ + "id 9, present", + "id 10, present" + ], + "deleted_commit": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 7, present", + "id 8, present" + ], + "deleted_request": [ + "id 7, present", + "id 8, present" ] }, - "id 82, present" + "id 10, present" ], - stage: [ + "stage": [ { - _: "id 20, removed", - job: [ + "_": "id 1, removed", + "job": [ "id 2, removed", "id 3, removed" ] }, { - _: "id 21, removed", - job: [ + "_": "id 2, removed", + "job": [ "id 4, removed", "id 5, removed" ] - } + }, + "id 3, removed" + ], + "deleted_job": [ + "id 15, removed" + ], + "deleted_tag": [ + "id 1, present" + ], + "deleted_stage": [ + "id 1, removed" ] }, - "id 50, removed" + "id 51, removed" ], - request: [ + "request": [ { - _: "id 11, removed", - abuse: [ + "_": "id 11, removed", + "abuse": [ "id 9, removed", "id 10, removed" ], - message: [ + "message": [ "id 9, removed", "id 10, removed" ], - job: [ + "job": [ { - _: "id 54, removed", - log: [ - "id 17, removed", - "id 18, removed" - ], - annotation: [ + "_": "id 55, removed", + "queueable_job": [ "id 17, removed", "id 18, removed" ], - queueable_job: [ + "job_version": [ "id 17, removed", "id 18, removed" ] }, - "id 55, removed" + "id 56, removed" ], - build: [ + "build": [ { - _: "id 51, removed", - job: [ - "id 52, removed" + "_": "id 52, removed", + "job": [ + "id 53, removed" ], - repository: [ + "repository": [ "id 23, present", "id 22, present" ], - tag: [ + "tag": [ "id 13, present" ], - branch: [ - "id 85, present" + "branch": [ + "id 13, present" ], - stage: [ - "id 30, removed" + "stage": [ + "id 12, removed" ] }, - "id 53, removed" + "id 54, removed" + ], + "request_payload": [ + "id 9, removed", + "id 10, removed" + ], + "request_raw_configuration": [ + "id 9, removed", + "id 10, removed" + ], + "deleted_job": [ + "id 16, removed", + "id 17, removed" + ], + "deleted_build": [ + "id 17, removed", + "id 18, removed" + ], + "deleted_request_payload": [ + "id 9, removed", + "id 10, removed" + ], + "deleted_request_raw_configuration": [ + "id 9, removed", + "id 10, removed" ] }, "id 12, removed" ], - job: [ + "job": [ { - _: "id 56, removed", - log: [ - "id 19, removed", - "id 20, removed" - ], - annotation: [ + "_": "id 57, removed", + "queueable_job": [ "id 19, removed", "id 20, removed" ], - queueable_job: [ + "job_version": [ "id 19, removed", "id 20, removed" ] }, - "id 57, removed" + "id 58, removed" ], - branch: [ + "branch": [ { - _: "id 86, removed", - build: [ + "_": "id 14, removed", + "build": [ { - _: "id 58, removed", - job: [ - "id 59, removed" + "_": "id 59, removed", + "job": [ + "id 60, removed" ], - repository: [ + "repository": [ "id 25, present", "id 24, present" ], - tag: [ + "tag": [ "id 14, present" ], - branch: [ - "id 87, present" + "branch": [ + "id 15, present" ], - stage: [ - "id 31, removed" + "stage": [ + "id 13, removed" ] }, - "id 60, removed" + "id 61, removed" ], - commit: [ + "commit": [ { - _: "id 217, removed", - build: [ + "_": "id 7, removed", + "build": [ { - _: "id 63, removed", - job: [ - "id 64, removed" + "_": "id 64, removed", + "job": [ + "id 65, removed" ], - repository: [ + "repository": [ "id 27, present", "id 26, present" ], - tag: [ + "tag": [ "id 15, present" ], - branch: [ - "id 88, present" + "branch": [ + "id 16, present" ], - stage: [ - "id 32, removed" + "stage": [ + "id 14, removed" ] }, - "id 65, removed" + "id 66, removed" ], - job: [ + "job": [ { - _: "id 66, removed", - log: [ + "_": "id 67, removed", + "queueable_job": [ "id 23, removed", "id 24, removed" ], - annotation: [ - "id 23, removed", - "id 24, removed" - ], - queueable_job: [ + "job_version": [ "id 23, removed", "id 24, removed" ] }, - "id 67, removed" + "id 68, removed" ], - request: [ + "request": [ { - _: "id 13, removed", - abuse: [ + "_": "id 13, removed", + "abuse": [ "id 11, removed", "id 12, removed" ], - message: [ + "message": [ "id 11, removed", "id 12, removed" ], - job: [ + "job": [ { - _: "id 71, removed", - log: [ - "id 25, removed", - "id 26, removed" - ], - annotation: [ + "_": "id 72, removed", + "queueable_job": [ "id 25, removed", "id 26, removed" ], - queueable_job: [ + "job_version": [ "id 25, removed", "id 26, removed" ] }, - "id 72, removed" + "id 73, removed" ], - build: [ + "build": [ { - _: "id 68, removed", - job: [ - "id 69, removed" + "_": "id 69, removed", + "job": [ + "id 70, removed" ], - repository: [ + "repository": [ "id 29, present", "id 28, present" ], - tag: [ + "tag": [ "id 16, present" ], - branch: [ - "id 89, present" + "branch": [ + "id 17, present" ], - stage: [ - "id 33, removed" + "stage": [ + "id 15, removed" ] }, - "id 70, removed" + "id 71, removed" + ], + "request_payload": [ + "id 11, removed", + "id 12, removed" + ], + "request_raw_configuration": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_job": [ + "id 20, removed", + "id 21, removed" + ], + "deleted_build": [ + "id 21, removed", + "id 22, removed" + ], + "deleted_request_payload": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_request_raw_configuration": [ + "id 11, removed", + "id 12, removed" ] }, "id 14, removed" + ], + "deleted_build": [ + "id 23, removed", + "id 24, removed" + ], + "deleted_job": [ + "id 22, removed", + "id 23, removed" + ], + "deleted_request": [ + "id 9, removed", + "id 10, removed" ] }, - "id 218, removed" + "id 8, removed" ], - cron: [ - "id 3, removed", - "id 4, removed" + "cron": [ + "id 2, removed" ], - job: [ + "job": [ { - _: "id 61, removed", - log: [ + "_": "id 62, removed", + "queueable_job": [ "id 21, removed", "id 22, removed" ], - annotation: [ - "id 21, removed", - "id 22, removed" - ], - queueable_job: [ + "job_version": [ "id 21, removed", "id 22, removed" ] }, - "id 62, removed" + "id 63, removed" ], - request: [ + "request": [ { - _: "id 15, removed", - abuse: [ + "_": "id 15, removed", + "abuse": [ "id 13, removed", "id 14, removed" ], - message: [ + "message": [ "id 13, removed", "id 14, removed" ], - job: [ + "job": [ { - _: "id 76, removed", - log: [ - "id 27, removed", - "id 28, removed" - ], - annotation: [ + "_": "id 77, removed", + "queueable_job": [ "id 27, removed", "id 28, removed" ], - queueable_job: [ + "job_version": [ "id 27, removed", "id 28, removed" ] }, - "id 77, removed" + "id 78, removed" ], - build: [ + "build": [ { - _: "id 73, removed", - job: [ - "id 74, removed" + "_": "id 74, removed", + "job": [ + "id 75, removed" ], - repository: [ + "repository": [ "id 31, present", "id 30, present" ], - tag: [ + "tag": [ "id 17, present" ], - branch: [ - "id 90, present" + "branch": [ + "id 18, present" ], - stage: [ - "id 34, removed" + "stage": [ + "id 16, removed" ] }, - "id 75, removed" - ] - }, - "id 16, removed" - ] - }, - "id 91, removed" - ], - ssl_key: [ - "id 33, removed", - "id 34, removed" - ], - commit: [ - { - _: "id 219, removed", - build: [ - { - _: "id 78, removed", - job: [ - "id 79, removed" + "id 76, removed" ], - repository: [ - "id 33, present", - "id 32, present" + "request_payload": [ + "id 13, removed", + "id 14, removed" ], - tag: [ - "id 18, present" + "request_raw_configuration": [ + "id 13, removed", + "id 14, removed" ], - branch: [ - "id 92, present" + "deleted_job": [ + "id 24, removed", + "id 25, removed" ], - stage: [ - "id 35, removed" - ] - }, - "id 80, removed" + "deleted_build": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_request_payload": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_request_raw_configuration": [ + "id 13, removed", + "id 14, removed" + ] + }, + "id 16, removed" + ], + "deleted_build": [ + "id 19, removed", + "id 20, removed" + ], + "deleted_commit": [ + "id 5, removed", + "id 6, removed" ], - job: [ + "deleted_job": [ + "id 18, removed", + "id 19, removed" + ], + "deleted_request": [ + "id 11, removed", + "id 12, removed" + ] + }, + "id 19, removed" + ], + "ssl_key": [ + "id 3, removed", + "id 4, removed" + ], + "commit": [ + { + "_": "id 9, removed", + "build": [ { - _: "id 81, removed", - log: [ - "id 29, removed", - "id 30, removed" + "_": "id 79, removed", + "job": [ + "id 80, removed" + ], + "repository": [ + "id 33, present", + "id 32, present" + ], + "tag": [ + "id 18, present" ], - annotation: [ + "branch": [ + "id 20, present" + ], + "stage": [ + "id 17, removed" + ] + }, + "id 81, removed" + ], + "job": [ + { + "_": "id 82, removed", + "queueable_job": [ "id 29, removed", "id 30, removed" ], - queueable_job: [ + "job_version": [ "id 29, removed", "id 30, removed" ] }, - "id 82, removed" + "id 83, removed" ], - request: [ + "request": [ { - _: "id 17, removed", - abuse: [ + "_": "id 17, removed", + "abuse": [ "id 15, removed", "id 16, removed" ], - message: [ + "message": [ "id 15, removed", "id 16, removed" ], - job: [ + "job": [ { - _: "id 86, removed", - log: [ - "id 31, removed", - "id 32, removed" - ], - annotation: [ + "_": "id 87, removed", + "queueable_job": [ "id 31, removed", "id 32, removed" ], - queueable_job: [ + "job_version": [ "id 31, removed", "id 32, removed" ] }, - "id 87, removed" + "id 88, removed" ], - build: [ + "build": [ { - _: "id 83, removed", - job: [ - "id 84, removed" + "_": "id 84, removed", + "job": [ + "id 85, removed" ], - repository: [ + "repository": [ "id 35, present", "id 34, present" ], - tag: [ + "tag": [ "id 19, present" ], - branch: [ - "id 93, present" + "branch": [ + "id 21, present" ], - stage: [ - "id 36, removed" + "stage": [ + "id 18, removed" ] }, - "id 85, removed" + "id 86, removed" + ], + "request_payload": [ + "id 15, removed", + "id 16, removed" + ], + "request_raw_configuration": [ + "id 15, removed", + "id 16, removed" + ], + "deleted_job": [ + "id 26, removed", + "id 27, removed" + ], + "deleted_build": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_request_payload": [ + "id 15, removed", + "id 16, removed" + ], + "deleted_request_raw_configuration": [ + "id 15, removed", + "id 16, removed" ] }, "id 18, removed" + ], + "deleted_build": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_job": [ + "id 28, removed", + "id 29, removed" + ], + "deleted_request": [ + "id 13, removed", + "id 14, removed" ] }, - "id 220, removed" + "id 10, removed" ], - permission: [ + "permission": [ "id 3, removed", "id 4, removed" ], - star: [ + "star": [ "id 3, removed", "id 4, removed" ], - pull_request: [ + "pull_request": [ { - _: "id 3, removed", - request: [ + "_": "id 3, removed", + "request": [ { - _: "id 29, removed", - abuse: [ + "_": "id 29, removed", + "abuse": [ "id 25, removed", "id 26, removed" ], - message: [ + "message": [ "id 25, removed", "id 26, removed" ], - job: [ + "job": [ { - _: "id 141, removed", - log: [ + "_": "id 143, removed", + "queueable_job": [ "id 49, removed", "id 50, removed" ], - annotation: [ - "id 49, removed", - "id 50, removed" - ], - queueable_job: [ + "job_version": [ "id 49, removed", "id 50, removed" ] }, - "id 142, removed" + "id 144, removed" ], - build: [ + "build": [ { - _: "id 138, removed", - job: [ - "id 139, removed" + "_": "id 140, removed", + "job": [ + "id 141, removed" ], - repository: [ + "repository": [ "id 57, present", "id 56, present" ], - tag: [ + "tag": [ "id 32, present" ], - branch: [ - "id 106, present" + "branch": [ + "id 34, present" ], - stage: [ - "id 47, removed" + "stage": [ + "id 30, removed" ] }, - "id 140, removed" + "id 142, removed" + ], + "request_payload": [ + "id 25, removed", + "id 26, removed" + ], + "request_raw_configuration": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_job": [ + "id 45, removed", + "id 46, removed" + ], + "deleted_build": [ + "id 47, removed", + "id 48, removed" + ], + "deleted_request_payload": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_request_raw_configuration": [ + "id 25, removed", + "id 26, removed" ] }, "id 30, removed" ], - build: [ + "build": [ { - _: "id 88, removed", - job: [ + "_": "id 89, removed", + "job": [ { - _: "id 93, removed", - log: [ - "id 33, removed", - "id 34, removed" - ], - annotation: [ + "_": "id 94, removed", + "queueable_job": [ "id 33, removed", "id 34, removed" ], - queueable_job: [ + "job_version": [ "id 33, removed", "id 34, removed" ] }, - "id 94, removed" + "id 95, removed", + "id 96, removed" ], - repository: [ + "repository": [ { - _: "id 54, present", - build: [ - "id 135, present" + "_": "id 54, present", + "build": [ + "id 137, present" ], - request: [ + "request": [ "id 28, present" ], - job: [ - "id 136, present" + "job": [ + "id 138, present" ], - branch: [ - "id 105, present" + "branch": [ + "id 33, present" ], - ssl_key: [ - "id 36, present" + "ssl_key": [ + "id 6, present" ], - commit: [ - "id 226, present" + "commit": [ + "id 16, present" ], - permission: [ + "permission": [ "id 6, present" ], - star: [ + "star": [ "id 6, present" ], - pull_request: [ + "pull_request": [ "id 5, present" ], - tag: [ + "tag": [ "id 31, present" ] }, "id 55, present", { - _: "id 52, present", - build: [ - "id 133, present" + "_": "id 52, present", + "build": [ + "id 135, present" ], - request: [ + "request": [ "id 27, present" ], - job: [ - "id 134, present" + "job": [ + "id 136, present" ], - branch: [ - "id 104, present" + "branch": [ + "id 32, present" ], - ssl_key: [ - "id 35, present" + "ssl_key": [ + "id 5, present" ], - commit: [ - "id 225, present" + "commit": [ + "id 15, present" ], - permission: [ + "permission": [ "id 5, present" ], - star: [ + "star": [ "id 5, present" ], - pull_request: [ + "pull_request": [ "id 4, present" ], - tag: [ + "tag": [ "id 30, present" ] }, "id 53, present" ], - tag: [ + "tag": [ { - _: "id 20, present", - build: [ + "_": "id 20, present", + "build": [ { - _: "id 95, present", - job: [ - "id 96, present" + "_": "id 97, present", + "job": [ + "id 98, present" ], - repository: [ + "repository": [ "id 37, present", "id 36, present" ], - tag: [ + "tag": [ "id 21, present" ], - branch: [ - "id 94, present" + "branch": [ + "id 22, present" ], - stage: [ - "id 39, present" + "stage": [ + "id 22, present" ] }, - "id 97, present" + "id 99, present" ], - commit: [ + "commit": [ { - _: "id 221, present", - build: [ + "_": "id 11, present", + "build": [ { - _: "id 98, present", - job: [ - "id 99, present" + "_": "id 100, present", + "job": [ + "id 101, present" ], - repository: [ + "repository": [ "id 39, present", "id 38, present" ], - tag: [ + "tag": [ "id 22, present" ], - branch: [ - "id 95, present" + "branch": [ + "id 23, present" ], - stage: [ - "id 40, present" + "stage": [ + "id 23, present" ] }, - "id 100, present" + "id 102, present" ], - job: [ + "job": [ { - _: "id 101, present", - log: [ + "_": "id 103, present", + "queueable_job": [ "id 35, present", "id 36, present" ], - annotation: [ - "id 35, present", - "id 36, present" - ], - queueable_job: [ + "job_version": [ "id 35, present", "id 36, present" ] }, - "id 102, present" + "id 104, present" ], - request: [ + "request": [ { - _: "id 19, present", - abuse: [ + "_": "id 19, present", + "abuse": [ "id 17, present", "id 18, present" ], - message: [ + "message": [ "id 17, present", "id 18, present" ], - job: [ + "job": [ { - _: "id 106, present", - log: [ - "id 37, present", - "id 38, present" - ], - annotation: [ + "_": "id 108, present", + "queueable_job": [ "id 37, present", "id 38, present" ], - queueable_job: [ + "job_version": [ "id 37, present", "id 38, present" ] }, - "id 107, present" + "id 109, present" ], - build: [ + "build": [ { - _: "id 103, present", - job: [ - "id 104, present" + "_": "id 105, present", + "job": [ + "id 106, present" ], - repository: [ + "repository": [ "id 41, present", "id 40, present" ], - tag: [ + "tag": [ "id 23, present" ], - branch: [ - "id 96, present" + "branch": [ + "id 24, present" ], - stage: [ - "id 41, present" + "stage": [ + "id 24, present" ] }, - "id 105, present" + "id 107, present" + ], + "request_payload": [ + "id 17, present", + "id 18, present" + ], + "request_raw_configuration": [ + "id 17, present", + "id 18, present" + ], + "deleted_job": [ + "id 30, present", + "id 31, present" + ], + "deleted_build": [ + "id 31, present", + "id 32, present" + ], + "deleted_request_payload": [ + "id 17, present", + "id 18, present" + ], + "deleted_request_raw_configuration": [ + "id 17, present", + "id 18, present" ] }, "id 20, present" + ], + "deleted_build": [ + "id 33, present", + "id 34, present" + ], + "deleted_job": [ + "id 32, present", + "id 33, present" + ], + "deleted_request": [ + "id 15, present", + "id 16, present" ] }, - "id 222, present" + "id 12, present" ], - request: [ + "request": [ { - _: "id 21, present", - abuse: [ + "_": "id 21, present", + "abuse": [ "id 19, present", "id 20, present" ], - message: [ + "message": [ "id 19, present", "id 20, present" ], - job: [ + "job": [ { - _: "id 111, present", - log: [ - "id 39, present", - "id 40, present" - ], - annotation: [ + "_": "id 113, present", + "queueable_job": [ "id 39, present", "id 40, present" ], - queueable_job: [ + "job_version": [ "id 39, present", "id 40, present" ] }, - "id 112, present" + "id 114, present" ], - build: [ + "build": [ { - _: "id 108, present", - job: [ - "id 109, present" + "_": "id 110, present", + "job": [ + "id 111, present" ], - repository: [ + "repository": [ "id 43, present", "id 42, present" ], - tag: [ + "tag": [ "id 24, present" ], - branch: [ - "id 97, present" + "branch": [ + "id 25, present" ], - stage: [ - "id 42, present" + "stage": [ + "id 25, present" ] }, - "id 110, present" + "id 112, present" + ], + "request_payload": [ + "id 19, present", + "id 20, present" + ], + "request_raw_configuration": [ + "id 19, present", + "id 20, present" + ], + "deleted_job": [ + "id 34, present", + "id 35, present" + ], + "deleted_build": [ + "id 35, present", + "id 36, present" + ], + "deleted_request_payload": [ + "id 19, present", + "id 20, present" + ], + "deleted_request_raw_configuration": [ + "id 19, present", + "id 20, present" ] }, "id 22, present" + ], + "deleted_build": [ + "id 37, present", + "id 38, present" + ], + "deleted_commit": [ + "id 7, present", + "id 8, present" + ], + "deleted_request": [ + "id 17, present", + "id 18, present" ] }, "id 25, present" ], - branch: [ + "branch": [ { - _: "id 98, present", - build: [ + "_": "id 26, present", + "build": [ { - _: "id 113, present", - job: [ - "id 114, present" + "_": "id 115, present", + "job": [ + "id 116, present" ], - repository: [ + "repository": [ "id 45, present", "id 44, present" ], - tag: [ + "tag": [ "id 26, present" ], - branch: [ - "id 99, present" + "branch": [ + "id 27, present" ], - stage: [ - "id 43, present" + "stage": [ + "id 26, present" ] }, - "id 115, present" + "id 117, present" ], - commit: [ + "commit": [ { - _: "id 223, present", - build: [ + "_": "id 13, present", + "build": [ { - _: "id 118, present", - job: [ - "id 119, present" + "_": "id 120, present", + "job": [ + "id 121, present" ], - repository: [ + "repository": [ "id 47, present", "id 46, present" ], - tag: [ + "tag": [ "id 27, present" ], - branch: [ - "id 100, present" + "branch": [ + "id 28, present" ], - stage: [ - "id 44, present" + "stage": [ + "id 27, present" ] }, - "id 120, present" + "id 122, present" ], - job: [ + "job": [ { - _: "id 121, present", - log: [ - "id 43, present", - "id 44, present" - ], - annotation: [ + "_": "id 123, present", + "queueable_job": [ "id 43, present", "id 44, present" ], - queueable_job: [ + "job_version": [ "id 43, present", "id 44, present" ] }, - "id 122, present" + "id 124, present" ], - request: [ + "request": [ { - _: "id 23, present", - abuse: [ + "_": "id 23, present", + "abuse": [ "id 21, present", "id 22, present" ], - message: [ + "message": [ "id 21, present", "id 22, present" ], - job: [ + "job": [ { - _: "id 126, present", - log: [ - "id 45, present", - "id 46, present" - ], - annotation: [ + "_": "id 128, present", + "queueable_job": [ "id 45, present", "id 46, present" ], - queueable_job: [ + "job_version": [ "id 45, present", "id 46, present" ] }, - "id 127, present" + "id 129, present" ], - build: [ + "build": [ { - _: "id 123, present", - job: [ - "id 124, present" + "_": "id 125, present", + "job": [ + "id 126, present" ], - repository: [ + "repository": [ "id 49, present", "id 48, present" ], - tag: [ + "tag": [ "id 28, present" ], - branch: [ - "id 101, present" + "branch": [ + "id 29, present" ], - stage: [ - "id 45, present" + "stage": [ + "id 28, present" ] }, - "id 125, present" + "id 127, present" + ], + "request_payload": [ + "id 21, present", + "id 22, present" + ], + "request_raw_configuration": [ + "id 21, present", + "id 22, present" + ], + "deleted_job": [ + "id 38, present", + "id 39, present" + ], + "deleted_build": [ + "id 41, present", + "id 42, present" + ], + "deleted_request_payload": [ + "id 21, present", + "id 22, present" + ], + "deleted_request_raw_configuration": [ + "id 21, present", + "id 22, present" ] }, "id 24, present" + ], + "deleted_build": [ + "id 43, present", + "id 44, present" + ], + "deleted_job": [ + "id 40, present", + "id 41, present" + ], + "deleted_request": [ + "id 19, present", + "id 20, present" ] }, - "id 224, present" + "id 14, present" ], - cron: [ - "id 5, present", - "id 6, present" + "cron": [ + "id 3, present" ], - job: [ + "job": [ { - _: "id 116, present", - log: [ + "_": "id 118, present", + "queueable_job": [ "id 41, present", "id 42, present" ], - annotation: [ - "id 41, present", - "id 42, present" - ], - queueable_job: [ + "job_version": [ "id 41, present", "id 42, present" ] }, - "id 117, present" + "id 119, present" ], - request: [ + "request": [ { - _: "id 25, present", - abuse: [ + "_": "id 25, present", + "abuse": [ "id 23, present", "id 24, present" ], - message: [ + "message": [ "id 23, present", "id 24, present" ], - job: [ + "job": [ { - _: "id 131, present", - log: [ + "_": "id 133, present", + "queueable_job": [ "id 47, present", "id 48, present" ], - annotation: [ - "id 47, present", - "id 48, present" - ], - queueable_job: [ + "job_version": [ "id 47, present", "id 48, present" ] }, - "id 132, present" + "id 134, present" ], - build: [ + "build": [ { - _: "id 128, present", - job: [ - "id 129, present" + "_": "id 130, present", + "job": [ + "id 131, present" ], - repository: [ + "repository": [ "id 51, present", "id 50, present" ], - tag: [ + "tag": [ "id 29, present" ], - branch: [ - "id 102, present" + "branch": [ + "id 30, present" ], - stage: [ - "id 46, present" + "stage": [ + "id 29, present" ] }, - "id 130, present" + "id 132, present" + ], + "request_payload": [ + "id 23, present", + "id 24, present" + ], + "request_raw_configuration": [ + "id 23, present", + "id 24, present" + ], + "deleted_job": [ + "id 42, present", + "id 43, present" + ], + "deleted_build": [ + "id 45, present", + "id 46, present" + ], + "deleted_request_payload": [ + "id 23, present", + "id 24, present" + ], + "deleted_request_raw_configuration": [ + "id 23, present", + "id 24, present" ] }, "id 26, present" + ], + "deleted_build": [ + "id 39, present", + "id 40, present" + ], + "deleted_commit": [ + "id 9, present", + "id 10, present" + ], + "deleted_job": [ + "id 36, present", + "id 37, present" + ], + "deleted_request": [ + "id 21, present", + "id 22, present" ] }, - "id 103, present" + "id 31, present" ], - stage: [ + "stage": [ { - _: "id 37, removed", - job: [ - "id 89, removed", - "id 90, removed" + "_": "id 19, removed", + "job": [ + "id 90, removed", + "id 91, removed" ] }, { - _: "id 38, removed", - job: [ - "id 91, removed", - "id 92, removed" + "_": "id 20, removed", + "job": [ + "id 92, removed", + "id 93, removed" ] - } + }, + "id 21, removed" + ], + "deleted_job": [ + "id 44, removed" + ], + "deleted_tag": [ + "id 2, present" + ], + "deleted_stage": [ + "id 2, removed" ] }, - "id 137, removed" + "id 139, removed" + ], + "deleted_request": [ + "id 23, removed", + "id 24, removed" + ], + "deleted_build": [ + "id 49, removed", + "id 50, removed" ] }, "id 6, removed" ], - tag: [ + "tag": [ { - _: "id 33, removed", - build: [ + "_": "id 33, removed", + "build": [ { - _: "id 143, removed", - job: [ - "id 144, removed" + "_": "id 145, removed", + "job": [ + "id 146, removed" ], - repository: [ + "repository": [ "id 59, present", "id 58, present" ], - tag: [ + "tag": [ "id 34, present" ], - branch: [ - "id 107, present" + "branch": [ + "id 35, present" ], - stage: [ - "id 48, removed" + "stage": [ + "id 31, removed" ] }, - "id 145, removed" + "id 147, removed" ], - commit: [ + "commit": [ { - _: "id 227, removed", - build: [ + "_": "id 17, removed", + "build": [ { - _: "id 146, removed", - job: [ - "id 147, removed" + "_": "id 148, removed", + "job": [ + "id 149, removed" ], - repository: [ + "repository": [ "id 61, present", "id 60, present" ], - tag: [ + "tag": [ "id 35, present" ], - branch: [ - "id 108, present" + "branch": [ + "id 36, present" ], - stage: [ - "id 49, removed" + "stage": [ + "id 32, removed" ] }, - "id 148, removed" + "id 150, removed" ], - job: [ + "job": [ { - _: "id 149, removed", - log: [ + "_": "id 151, removed", + "queueable_job": [ "id 51, removed", "id 52, removed" ], - annotation: [ - "id 51, removed", - "id 52, removed" - ], - queueable_job: [ + "job_version": [ "id 51, removed", "id 52, removed" ] }, - "id 150, removed" + "id 152, removed" ], - request: [ + "request": [ { - _: "id 31, removed", - abuse: [ + "_": "id 31, removed", + "abuse": [ "id 27, removed", "id 28, removed" ], - message: [ + "message": [ "id 27, removed", "id 28, removed" ], - job: [ + "job": [ { - _: "id 154, removed", - log: [ + "_": "id 156, removed", + "queueable_job": [ "id 53, removed", "id 54, removed" ], - annotation: [ - "id 53, removed", - "id 54, removed" - ], - queueable_job: [ + "job_version": [ "id 53, removed", "id 54, removed" ] }, - "id 155, removed" + "id 157, removed" ], - build: [ + "build": [ { - _: "id 151, removed", - job: [ - "id 152, removed" + "_": "id 153, removed", + "job": [ + "id 154, removed" ], - repository: [ + "repository": [ "id 63, present", "id 62, present" ], - tag: [ + "tag": [ "id 36, present" ], - branch: [ - "id 109, present" + "branch": [ + "id 37, present" ], - stage: [ - "id 50, removed" + "stage": [ + "id 33, removed" ] }, - "id 153, removed" + "id 155, removed" + ], + "request_payload": [ + "id 27, removed", + "id 28, removed" + ], + "request_raw_configuration": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_job": [ + "id 47, removed", + "id 48, removed" + ], + "deleted_build": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_request_payload": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_request_raw_configuration": [ + "id 27, removed", + "id 28, removed" ] }, "id 32, removed" + ], + "deleted_build": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_job": [ + "id 49, removed", + "id 50, removed" + ], + "deleted_request": [ + "id 25, removed", + "id 26, removed" ] }, - "id 228, removed" + "id 18, removed" ], - request: [ + "request": [ { - _: "id 33, removed", - abuse: [ + "_": "id 33, removed", + "abuse": [ "id 29, removed", "id 30, removed" ], - message: [ + "message": [ "id 29, removed", "id 30, removed" ], - job: [ + "job": [ { - _: "id 159, removed", - log: [ - "id 55, removed", - "id 56, removed" - ], - annotation: [ + "_": "id 161, removed", + "queueable_job": [ "id 55, removed", "id 56, removed" ], - queueable_job: [ + "job_version": [ "id 55, removed", "id 56, removed" ] }, - "id 160, removed" + "id 162, removed" ], - build: [ + "build": [ { - _: "id 156, removed", - job: [ - "id 157, removed" + "_": "id 158, removed", + "job": [ + "id 159, removed" ], - repository: [ + "repository": [ "id 65, present", "id 64, present" ], - tag: [ + "tag": [ "id 37, present" ], - branch: [ - "id 110, present" + "branch": [ + "id 38, present" ], - stage: [ - "id 51, removed" + "stage": [ + "id 34, removed" ] }, - "id 158, removed" + "id 160, removed" + ], + "request_payload": [ + "id 29, removed", + "id 30, removed" + ], + "request_raw_configuration": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_job": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_build": [ + "id 55, removed", + "id 56, removed" + ], + "deleted_request_payload": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_request_raw_configuration": [ + "id 29, removed", + "id 30, removed" ] }, "id 34, removed" + ], + "deleted_build": [ + "id 57, removed", + "id 58, removed" + ], + "deleted_commit": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_request": [ + "id 27, removed", + "id 28, removed" ] }, "id 38, removed" + ], + "build_config": [ + { + "_": "id 1, removed", + "build": [ + { + "_": "id 163, removed", + "job": [ + "id 164, removed" + ], + "repository": [ + "id 67, present", + "id 66, present" + ], + "tag": [ + "id 39, present" + ], + "branch": [ + "id 39, present" + ], + "stage": [ + "id 35, removed" + ] + }, + "id 165, removed" + ], + "deleted_build": [ + "id 59, removed", + "id 60, removed" + ] + }, + "id 2, removed" + ], + "email_unsubscribe": [ + "id 1, removed", + "id 2, removed" + ], + "request_config": [ + { + "_": "id 1, removed", + "request": [ + { + "_": "id 35, removed", + "abuse": [ + "id 31, removed", + "id 32, removed" + ], + "message": [ + "id 31, removed", + "id 32, removed" + ], + "job": [ + { + "_": "id 169, removed", + "queueable_job": [ + "id 57, removed", + "id 58, removed" + ], + "job_version": [ + "id 57, removed", + "id 58, removed" + ] + }, + "id 170, removed" + ], + "build": [ + { + "_": "id 166, removed", + "job": [ + "id 167, removed" + ], + "repository": [ + "id 69, present", + "id 68, present" + ], + "tag": [ + "id 40, present" + ], + "branch": [ + "id 40, present" + ], + "stage": [ + "id 36, removed" + ] + }, + "id 168, removed" + ], + "request_payload": [ + "id 31, removed", + "id 32, removed" + ], + "request_raw_configuration": [ + "id 31, removed", + "id 32, removed" + ], + "deleted_job": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_build": [ + "id 61, removed", + "id 62, removed" + ], + "deleted_request_payload": [ + "id 31, removed", + "id 32, removed" + ], + "deleted_request_raw_configuration": [ + "id 31, removed", + "id 32, removed" + ] + }, + "id 36, removed" + ], + "deleted_request": [ + "id 29, removed", + "id 30, removed" + ] + }, + "id 2, removed" + ], + "job_config": [ + { + "_": "id 1, removed", + "job": [ + { + "_": "id 171, removed", + "queueable_job": [ + "id 59, removed", + "id 60, removed" + ], + "job_version": [ + "id 59, removed", + "id 60, removed" + ] + }, + "id 172, removed" + ], + "deleted_job": [ + "id 55, removed", + "id 56, removed" + ] + }, + "id 2, removed" + ], + "request_raw_config": [ + { + "_": "id 1, removed", + "request_raw_configuration": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_request_raw_configuration": [ + "id 33, removed", + "id 34, removed" + ] + }, + "id 2, removed" + ], + "repo_count": [ + "id 1, present", + "id 1, present, duplicate" + ], + "request_yaml_config": [ + { + "_": "id 1, removed", + "request": [ + { + "_": "id 37, removed", + "abuse": [ + "id 33, removed", + "id 34, removed" + ], + "message": [ + "id 33, removed", + "id 34, removed" + ], + "job": [ + { + "_": "id 176, removed", + "queueable_job": [ + "id 61, removed", + "id 62, removed" + ], + "job_version": [ + "id 61, removed", + "id 62, removed" + ] + }, + "id 177, removed" + ], + "build": [ + { + "_": "id 173, removed", + "job": [ + "id 174, removed" + ], + "repository": [ + "id 71, present", + "id 70, present" + ], + "tag": [ + "id 41, present" + ], + "branch": [ + "id 41, present" + ], + "stage": [ + "id 37, removed" + ] + }, + "id 175, removed" + ], + "request_payload": [ + "id 33, removed", + "id 34, removed" + ], + "request_raw_configuration": [ + "id 35, removed", + "id 36, removed" + ], + "deleted_job": [ + "id 57, removed", + "id 58, removed" + ], + "deleted_build": [ + "id 63, removed", + "id 64, removed" + ], + "deleted_request_payload": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_request_raw_configuration": [ + "id 35, removed", + "id 36, removed" + ] + }, + "id 38, removed" + ], + "deleted_request": [ + "id 31, removed", + "id 32, removed" + ] + }, + "id 2, removed" + ], + "deleted_build": [ + "id 65, removed", + "id 66, removed" + ], + "deleted_request": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_job": [ + "id 59, removed", + "id 60, removed" + ], + "deleted_ssl_key": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_commit": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_pull_request": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_tag": [ + "id 3, removed", + "id 4, removed" + ], + "deleted_build_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_job_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_raw_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_yaml_config": [ + "id 1, removed", + "id 2, removed" ] } end diff --git a/spec/support/expected_dependency_trees/remove_user_with_dependencies.rb b/spec/support/expected_dependency_trees/remove_user_with_dependencies.rb index 06234e1..985ec9f 100644 --- a/spec/support/expected_dependency_trees/remove_user_with_dependencies.rb +++ b/spec/support/expected_dependency_trees/remove_user_with_dependencies.rb @@ -1,2828 +1,3853 @@ class ExpectedDependencyTrees def self.remove_user_with_dependencies { - _: "id 9, removed", - build: [ + "_": "id 1, removed", + "build": [ { - _: "id 161, removed", - job: [ + "_": "id 178, removed", + "job": [ { - _: "id 166, removed", - log: [ - "id 57, removed", - "id 58, removed" - ], - annotation: [ - "id 57, removed", - "id 58, removed" - ], - queueable_job: [ - "id 57, removed", - "id 58, removed" + "_": "id 183, removed", + "queueable_job": [ + "id 63, removed", + "id 64, removed" + ], + "job_version": [ + "id 63, removed", + "id 64, removed" ] }, - "id 167, removed" + "id 184, removed", + "id 185, removed" ], - repository: [ + "repository": [ { - _: "id 85, present", - build: [ - "id 208, present" + "_": "id 91, present", + "build": [ + "id 226, present" ], - request: [ - "id 44, present" + "request": [ + "id 48, present" ], - job: [ - "id 209, present" + "job": [ + "id 227, present" ], - branch: [ - "id 122, present" + "branch": [ + "id 53, present" ], - ssl_key: [ - "id 38, present" + "ssl_key": [ + "id 8, present" ], - commit: [ - "id 234, present" + "commit": [ + "id 24, present" ], - permission: [ + "permission": [ "id 10, present" ], - star: [ + "star": [ "id 10, present" ], - pull_request: [ + "pull_request": [ "id 8, present" ], - tag: [ - "id 50, present" + "tag": [ + "id 53, present" ] }, - "id 86, present", + "id 92, present", { - _: "id 83, present", - build: [ - "id 206, present" + "_": "id 89, present", + "build": [ + "id 224, present" ], - request: [ - "id 43, present" + "request": [ + "id 47, present" ], - job: [ - "id 207, present" + "job": [ + "id 225, present" ], - branch: [ - "id 121, present" + "branch": [ + "id 52, present" ], - ssl_key: [ - "id 37, present" + "ssl_key": [ + "id 7, present" ], - commit: [ - "id 233, present" + "commit": [ + "id 23, present" ], - permission: [ + "permission": [ "id 9, present" ], - star: [ + "star": [ "id 9, present" ], - pull_request: [ + "pull_request": [ "id 7, present" ], - tag: [ - "id 49, present" + "tag": [ + "id 52, present" ] }, - "id 84, present" + "id 90, present" ], - tag: [ + "tag": [ { - _: "id 39, present", - build: [ + "_": "id 42, present", + "build": [ { - _: "id 168, present", - job: [ - "id 169, present" + "_": "id 186, present", + "job": [ + "id 187, present" ], - repository: [ - "id 68, present", - "id 67, present" + "repository": [ + "id 74, present", + "id 73, present" ], - tag: [ - "id 40, present" + "tag": [ + "id 43, present" ], - branch: [ - "id 111, present" + "branch": [ + "id 42, present" ], - stage: [ - "id 54, present" + "stage": [ + "id 41, present" ] }, - "id 170, present" + "id 188, present" ], - commit: [ + "commit": [ { - _: "id 229, present", - build: [ + "_": "id 19, present", + "build": [ { - _: "id 171, present", - job: [ - "id 172, present" + "_": "id 189, present", + "job": [ + "id 190, present" ], - repository: [ - "id 70, present", - "id 69, present" + "repository": [ + "id 76, present", + "id 75, present" ], - tag: [ - "id 41, present" + "tag": [ + "id 44, present" ], - branch: [ - "id 112, present" + "branch": [ + "id 43, present" ], - stage: [ - "id 55, present" + "stage": [ + "id 42, present" ] }, - "id 173, present" + "id 191, present" ], - job: [ + "job": [ { - _: "id 174, present", - log: [ - "id 59, present", - "id 60, present" - ], - annotation: [ - "id 59, present", - "id 60, present" - ], - queueable_job: [ - "id 59, present", - "id 60, present" + "_": "id 192, present", + "queueable_job": [ + "id 65, present", + "id 66, present" + ], + "job_version": [ + "id 65, present", + "id 66, present" ] }, - "id 175, present" + "id 193, present" ], - request: [ + "request": [ { - _: "id 35, present", - abuse: [ - "id 31, present", - "id 32, present" + "_": "id 39, present", + "abuse": [ + "id 35, present", + "id 36, present" ], - message: [ - "id 31, present", - "id 32, present" + "message": [ + "id 35, present", + "id 36, present" ], - job: [ + "job": [ { - _: "id 179, present", - log: [ - "id 61, present", - "id 62, present" - ], - annotation: [ - "id 61, present", - "id 62, present" - ], - queueable_job: [ - "id 61, present", - "id 62, present" + "_": "id 197, present", + "queueable_job": [ + "id 67, present", + "id 68, present" + ], + "job_version": [ + "id 67, present", + "id 68, present" ] }, - "id 180, present" + "id 198, present" ], - build: [ + "build": [ { - _: "id 176, present", - job: [ - "id 177, present" + "_": "id 194, present", + "job": [ + "id 195, present" ], - repository: [ - "id 72, present", - "id 71, present" + "repository": [ + "id 78, present", + "id 77, present" ], - tag: [ - "id 42, present" + "tag": [ + "id 45, present" ], - branch: [ - "id 113, present" + "branch": [ + "id 44, present" ], - stage: [ - "id 56, present" + "stage": [ + "id 43, present" ] }, - "id 178, present" + "id 196, present" + ], + "request_payload": [ + "id 35, present", + "id 36, present" + ], + "request_raw_configuration": [ + "id 37, present", + "id 38, present" + ], + "deleted_job": [ + "id 61, present", + "id 62, present" + ], + "deleted_build": [ + "id 67, present", + "id 68, present" + ], + "deleted_request_payload": [ + "id 35, present", + "id 36, present" + ], + "deleted_request_raw_configuration": [ + "id 37, present", + "id 38, present" ] }, + "id 40, present" + ], + "deleted_build": [ + "id 69, present", + "id 70, present" + ], + "deleted_job": [ + "id 63, present", + "id 64, present" + ], + "deleted_request": [ + "id 35, present", "id 36, present" ] }, - "id 230, present" + "id 20, present" ], - request: [ + "request": [ { - _: "id 37, present", - abuse: [ - "id 33, present", - "id 34, present" + "_": "id 41, present", + "abuse": [ + "id 37, present", + "id 38, present" ], - message: [ - "id 33, present", - "id 34, present" + "message": [ + "id 37, present", + "id 38, present" ], - job: [ + "job": [ { - _: "id 184, present", - log: [ - "id 63, present", - "id 64, present" - ], - annotation: [ - "id 63, present", - "id 64, present" - ], - queueable_job: [ - "id 63, present", - "id 64, present" + "_": "id 202, present", + "queueable_job": [ + "id 69, present", + "id 70, present" + ], + "job_version": [ + "id 69, present", + "id 70, present" ] }, - "id 185, present" + "id 203, present" ], - build: [ + "build": [ { - _: "id 181, present", - job: [ - "id 182, present" + "_": "id 199, present", + "job": [ + "id 200, present" ], - repository: [ - "id 74, present", - "id 73, present" + "repository": [ + "id 80, present", + "id 79, present" ], - tag: [ - "id 43, present" + "tag": [ + "id 46, present" ], - branch: [ - "id 114, present" + "branch": [ + "id 45, present" ], - stage: [ - "id 57, present" + "stage": [ + "id 44, present" ] }, - "id 183, present" + "id 201, present" + ], + "request_payload": [ + "id 37, present", + "id 38, present" + ], + "request_raw_configuration": [ + "id 39, present", + "id 40, present" + ], + "deleted_job": [ + "id 65, present", + "id 66, present" + ], + "deleted_build": [ + "id 71, present", + "id 72, present" + ], + "deleted_request_payload": [ + "id 37, present", + "id 38, present" + ], + "deleted_request_raw_configuration": [ + "id 39, present", + "id 40, present" ] }, + "id 42, present" + ], + "deleted_build": [ + "id 73, present", + "id 74, present" + ], + "deleted_commit": [ + "id 15, present", + "id 16, present" + ], + "deleted_request": [ + "id 37, present", "id 38, present" ] }, - "id 44, present" + "id 47, present" ], - branch: [ + "branch": [ { - _: "id 115, present", - build: [ + "_": "id 46, present", + "build": [ { - _: "id 186, present", - job: [ - "id 187, present" + "_": "id 204, present", + "job": [ + "id 205, present" ], - repository: [ - "id 76, present", - "id 75, present" + "repository": [ + "id 82, present", + "id 81, present" ], - tag: [ - "id 45, present" + "tag": [ + "id 48, present" ], - branch: [ - "id 116, present" + "branch": [ + "id 47, present" ], - stage: [ - "id 58, present" + "stage": [ + "id 45, present" ] }, - "id 188, present" + "id 206, present" ], - commit: [ + "commit": [ { - _: "id 231, present", - build: [ + "_": "id 21, present", + "build": [ { - _: "id 191, present", - job: [ - "id 192, present" + "_": "id 209, present", + "job": [ + "id 210, present" ], - repository: [ - "id 78, present", - "id 77, present" + "repository": [ + "id 84, present", + "id 83, present" ], - tag: [ - "id 46, present" + "tag": [ + "id 49, present" ], - branch: [ - "id 117, present" + "branch": [ + "id 48, present" ], - stage: [ - "id 59, present" + "stage": [ + "id 46, present" ] }, - "id 193, present" + "id 211, present" ], - job: [ + "job": [ { - _: "id 194, present", - log: [ - "id 67, present", - "id 68, present" - ], - annotation: [ - "id 67, present", - "id 68, present" - ], - queueable_job: [ - "id 67, present", - "id 68, present" + "_": "id 212, present", + "queueable_job": [ + "id 73, present", + "id 74, present" + ], + "job_version": [ + "id 73, present", + "id 74, present" ] }, - "id 195, present" + "id 213, present" ], - request: [ + "request": [ { - _: "id 39, present", - abuse: [ - "id 35, present", - "id 36, present" + "_": "id 43, present", + "abuse": [ + "id 39, present", + "id 40, present" ], - message: [ - "id 35, present", - "id 36, present" + "message": [ + "id 39, present", + "id 40, present" ], - job: [ + "job": [ { - _: "id 199, present", - log: [ - "id 69, present", - "id 70, present" - ], - annotation: [ - "id 69, present", - "id 70, present" - ], - queueable_job: [ - "id 69, present", - "id 70, present" + "_": "id 217, present", + "queueable_job": [ + "id 75, present", + "id 76, present" + ], + "job_version": [ + "id 75, present", + "id 76, present" ] }, - "id 200, present" + "id 218, present" ], - build: [ + "build": [ { - _: "id 196, present", - job: [ - "id 197, present" + "_": "id 214, present", + "job": [ + "id 215, present" ], - repository: [ - "id 80, present", - "id 79, present" + "repository": [ + "id 86, present", + "id 85, present" ], - tag: [ - "id 47, present" + "tag": [ + "id 50, present" ], - branch: [ - "id 118, present" + "branch": [ + "id 49, present" ], - stage: [ - "id 60, present" + "stage": [ + "id 47, present" ] }, - "id 198, present" + "id 216, present" + ], + "request_payload": [ + "id 39, present", + "id 40, present" + ], + "request_raw_configuration": [ + "id 41, present", + "id 42, present" + ], + "deleted_job": [ + "id 69, present", + "id 70, present" + ], + "deleted_build": [ + "id 77, present", + "id 78, present" + ], + "deleted_request_payload": [ + "id 39, present", + "id 40, present" + ], + "deleted_request_raw_configuration": [ + "id 41, present", + "id 42, present" ] }, + "id 44, present" + ], + "deleted_build": [ + "id 79, present", + "id 80, present" + ], + "deleted_job": [ + "id 71, present", + "id 72, present" + ], + "deleted_request": [ + "id 39, present", "id 40, present" ] }, - "id 232, present" + "id 22, present" ], - cron: [ - "id 7, present", - "id 8, present" + "cron": [ + "id 4, present" ], - job: [ + "job": [ { - _: "id 189, present", - log: [ - "id 65, present", - "id 66, present" + "_": "id 207, present", + "queueable_job": [ + "id 71, present", + "id 72, present" ], - annotation: [ - "id 65, present", - "id 66, present" - ], - queueable_job: [ - "id 65, present", - "id 66, present" + "job_version": [ + "id 71, present", + "id 72, present" ] }, - "id 190, present" + "id 208, present" ], - request: [ + "request": [ { - _: "id 41, present", - abuse: [ - "id 37, present", - "id 38, present" + "_": "id 45, present", + "abuse": [ + "id 41, present", + "id 42, present" ], - message: [ - "id 37, present", - "id 38, present" + "message": [ + "id 41, present", + "id 42, present" ], - job: [ + "job": [ { - _: "id 204, present", - log: [ - "id 71, present", - "id 72, present" - ], - annotation: [ - "id 71, present", - "id 72, present" - ], - queueable_job: [ - "id 71, present", - "id 72, present" + "_": "id 222, present", + "queueable_job": [ + "id 77, present", + "id 78, present" + ], + "job_version": [ + "id 77, present", + "id 78, present" ] }, - "id 205, present" + "id 223, present" ], - build: [ + "build": [ { - _: "id 201, present", - job: [ - "id 202, present" + "_": "id 219, present", + "job": [ + "id 220, present" ], - repository: [ - "id 82, present", - "id 81, present" + "repository": [ + "id 88, present", + "id 87, present" ], - tag: [ - "id 48, present" + "tag": [ + "id 51, present" ], - branch: [ - "id 119, present" + "branch": [ + "id 50, present" ], - stage: [ - "id 61, present" + "stage": [ + "id 48, present" ] }, - "id 203, present" + "id 221, present" + ], + "request_payload": [ + "id 41, present", + "id 42, present" + ], + "request_raw_configuration": [ + "id 43, present", + "id 44, present" + ], + "deleted_job": [ + "id 73, present", + "id 74, present" + ], + "deleted_build": [ + "id 81, present", + "id 82, present" + ], + "deleted_request_payload": [ + "id 41, present", + "id 42, present" + ], + "deleted_request_raw_configuration": [ + "id 43, present", + "id 44, present" ] }, + "id 46, present" + ], + "deleted_build": [ + "id 75, present", + "id 76, present" + ], + "deleted_commit": [ + "id 17, present", + "id 18, present" + ], + "deleted_job": [ + "id 67, present", + "id 68, present" + ], + "deleted_request": [ + "id 41, present", "id 42, present" ] }, - "id 120, present" + "id 51, present" ], - stage: [ + "stage": [ { - _: "id 52, removed", - job: [ - "id 162, removed", - "id 163, removed" + "_": "id 38, removed", + "job": [ + "id 179, removed", + "id 180, removed" ] }, { - _: "id 53, removed", - job: [ - "id 164, removed", - "id 165, removed" + "_": "id 39, removed", + "job": [ + "id 181, removed", + "id 182, removed" ] - } + }, + "id 40, removed" + ], + "deleted_job": [ + "id 75, removed" + ], + "deleted_tag": [ + "id 5, present" + ], + "deleted_stage": [ + "id 3, removed" ] }, { - _: "id 210, removed", - repository: [ + "_": "id 228, removed", + "repository": [ { - _: "id 1, removed", - build: [ + "_": "id 1, removed", + "build": [ { - _: "id 1, removed", - job: [ + "_": "id 1, removed", + "job": [ { - _: "id 6, removed", - log: [ - "id 1, removed", - "id 2, removed" - ], - annotation: [ + "_": "id 6, removed", + "queueable_job": [ "id 1, removed", "id 2, removed" ], - queueable_job: [ + "job_version": [ "id 1, removed", "id 2, removed" ] }, - "id 7, removed" + "id 7, removed", + "id 8, removed" ], - repository: [ + "repository": [ { - _: "id 20, present", - build: [ - "id 48, present" + "_": "id 20, present", + "build": [ + "id 49, present" ], - request: [ + "request": [ "id 10, present" ], - job: [ - "id 49, present" + "job": [ + "id 50, present" ], - branch: [ - "id 84, present" + "branch": [ + "id 12, present" ], - ssl_key: [ - "id 32, present" + "ssl_key": [ + "id 2, present" ], - commit: [ - "id 216, present" + "commit": [ + "id 6, present" ], - permission: [ + "permission": [ "id 4, present" ], - star: [ + "star": [ "id 4, present" ], - pull_request: [ + "pull_request": [ "id 2, present" ], - tag: [ + "tag": [ "id 12, present" ] }, "id 21, present", { - _: "id 18, present", - build: [ - "id 46, present" + "_": "id 18, present", + "build": [ + "id 47, present" ], - request: [ + "request": [ "id 9, present" ], - job: [ - "id 47, present" + "job": [ + "id 48, present" ], - branch: [ - "id 83, present" + "branch": [ + "id 11, present" ], - ssl_key: [ - "id 31, present" + "ssl_key": [ + "id 1, present" ], - commit: [ - "id 215, present" + "commit": [ + "id 5, present" ], - permission: [ + "permission": [ "id 3, present" ], - star: [ + "star": [ "id 3, present" ], - pull_request: [ + "pull_request": [ "id 1, present" ], - tag: [ + "tag": [ "id 11, present" ] }, "id 19, present" ], - tag: [ + "tag": [ { - _: "id 1, present", - build: [ + "_": "id 1, present", + "build": [ { - _: "id 8, present", - job: [ - "id 9, present" + "_": "id 9, present", + "job": [ + "id 10, present" ], - repository: [ + "repository": [ "id 3, present", "id 2, present" ], - tag: [ + "tag": [ "id 2, present" ], - branch: [ - "id 73, present" + "branch": [ + "id 1, present" ], - stage: [ - "id 22, present" + "stage": [ + "id 4, present" ] }, - "id 10, present" + "id 11, present" ], - commit: [ + "commit": [ { - _: "id 211, present", - build: [ + "_": "id 1, present", + "build": [ { - _: "id 11, present", - job: [ - "id 12, present" + "_": "id 12, present", + "job": [ + "id 13, present" ], - repository: [ + "repository": [ "id 5, present", "id 4, present" ], - tag: [ + "tag": [ "id 3, present" ], - branch: [ - "id 74, present" + "branch": [ + "id 2, present" ], - stage: [ - "id 23, present" + "stage": [ + "id 5, present" ] }, - "id 13, present" + "id 14, present" ], - job: [ + "job": [ { - _: "id 14, present", - log: [ - "id 3, present", - "id 4, present" - ], - annotation: [ + "_": "id 15, present", + "queueable_job": [ "id 3, present", "id 4, present" ], - queueable_job: [ + "job_version": [ "id 3, present", "id 4, present" ] }, - "id 15, present" + "id 16, present" ], - request: [ + "request": [ { - _: "id 1, present", - abuse: [ + "_": "id 1, present", + "abuse": [ "id 1, present", "id 2, present" ], - message: [ + "message": [ "id 1, present", "id 2, present" ], - job: [ + "job": [ { - _: "id 19, present", - log: [ - "id 5, present", - "id 6, present" - ], - annotation: [ + "_": "id 20, present", + "queueable_job": [ "id 5, present", "id 6, present" ], - queueable_job: [ + "job_version": [ "id 5, present", "id 6, present" ] }, - "id 20, present" + "id 21, present" ], - build: [ + "build": [ { - _: "id 16, present", - job: [ - "id 17, present" + "_": "id 17, present", + "job": [ + "id 18, present" ], - repository: [ + "repository": [ "id 7, present", "id 6, present" ], - tag: [ + "tag": [ "id 4, present" ], - branch: [ - "id 75, present" + "branch": [ + "id 3, present" ], - stage: [ - "id 24, present" + "stage": [ + "id 6, present" ] }, - "id 18, present" + "id 19, present" + ], + "request_payload": [ + "id 1, present", + "id 2, present" + ], + "request_raw_configuration": [ + "id 1, present", + "id 2, present" + ], + "deleted_job": [ + "id 1, present", + "id 2, present" + ], + "deleted_build": [ + "id 1, present", + "id 2, present" + ], + "deleted_request_payload": [ + "id 1, present", + "id 2, present" + ], + "deleted_request_raw_configuration": [ + "id 1, present", + "id 2, present" ] }, "id 2, present" + ], + "deleted_build": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 3, present", + "id 4, present" + ], + "deleted_request": [ + "id 1, present", + "id 2, present" ] }, - "id 212, present" + "id 2, present" ], - request: [ + "request": [ { - _: "id 3, present", - abuse: [ + "_": "id 3, present", + "abuse": [ "id 3, present", "id 4, present" ], - message: [ + "message": [ "id 3, present", "id 4, present" ], - job: [ + "job": [ { - _: "id 24, present", - log: [ - "id 7, present", - "id 8, present" - ], - annotation: [ + "_": "id 25, present", + "queueable_job": [ "id 7, present", "id 8, present" ], - queueable_job: [ + "job_version": [ "id 7, present", "id 8, present" ] }, - "id 25, present" + "id 26, present" ], - build: [ + "build": [ { - _: "id 21, present", - job: [ - "id 22, present" + "_": "id 22, present", + "job": [ + "id 23, present" ], - repository: [ + "repository": [ "id 9, present", "id 8, present" ], - tag: [ + "tag": [ "id 5, present" ], - branch: [ - "id 76, present" + "branch": [ + "id 4, present" ], - stage: [ - "id 25, present" + "stage": [ + "id 7, present" ] }, - "id 23, present" + "id 24, present" + ], + "request_payload": [ + "id 3, present", + "id 4, present" + ], + "request_raw_configuration": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 5, present", + "id 6, present" + ], + "deleted_build": [ + "id 5, present", + "id 6, present" + ], + "deleted_request_payload": [ + "id 3, present", + "id 4, present" + ], + "deleted_request_raw_configuration": [ + "id 3, present", + "id 4, present" ] }, "id 4, present" + ], + "deleted_build": [ + "id 7, present", + "id 8, present" + ], + "deleted_commit": [ + "id 1, present", + "id 2, present" + ], + "deleted_request": [ + "id 3, present", + "id 4, present" ] }, "id 6, present" ], - branch: [ + "branch": [ { - _: "id 77, present", - build: [ + "_": "id 5, present", + "build": [ { - _: "id 26, present", - job: [ - "id 27, present" + "_": "id 27, present", + "job": [ + "id 28, present" ], - repository: [ + "repository": [ "id 11, present", "id 10, present" ], - tag: [ + "tag": [ "id 7, present" ], - branch: [ - "id 78, present" + "branch": [ + "id 6, present" ], - stage: [ - "id 26, present" + "stage": [ + "id 8, present" ] }, - "id 28, present" + "id 29, present" ], - commit: [ + "commit": [ { - _: "id 213, present", - build: [ + "_": "id 3, present", + "build": [ { - _: "id 31, present", - job: [ - "id 32, present" + "_": "id 32, present", + "job": [ + "id 33, present" ], - repository: [ + "repository": [ "id 13, present", "id 12, present" ], - tag: [ + "tag": [ "id 8, present" ], - branch: [ - "id 79, present" + "branch": [ + "id 7, present" ], - stage: [ - "id 27, present" + "stage": [ + "id 9, present" ] }, - "id 33, present" + "id 34, present" ], - job: [ + "job": [ { - _: "id 34, present", - log: [ - "id 11, present", - "id 12, present" - ], - annotation: [ + "_": "id 35, present", + "queueable_job": [ "id 11, present", "id 12, present" ], - queueable_job: [ + "job_version": [ "id 11, present", "id 12, present" ] }, - "id 35, present" + "id 36, present" ], - request: [ + "request": [ { - _: "id 5, present", - abuse: [ + "_": "id 5, present", + "abuse": [ "id 5, present", "id 6, present" ], - message: [ + "message": [ "id 5, present", "id 6, present" ], - job: [ + "job": [ { - _: "id 39, present", - log: [ - "id 13, present", - "id 14, present" - ], - annotation: [ + "_": "id 40, present", + "queueable_job": [ "id 13, present", "id 14, present" ], - queueable_job: [ + "job_version": [ "id 13, present", "id 14, present" ] }, - "id 40, present" + "id 41, present" ], - build: [ + "build": [ { - _: "id 36, present", - job: [ - "id 37, present" + "_": "id 37, present", + "job": [ + "id 38, present" ], - repository: [ + "repository": [ "id 15, present", "id 14, present" ], - tag: [ + "tag": [ "id 9, present" ], - branch: [ - "id 80, present" + "branch": [ + "id 8, present" ], - stage: [ - "id 28, present" + "stage": [ + "id 10, present" ] }, - "id 38, present" + "id 39, present" + ], + "request_payload": [ + "id 5, present", + "id 6, present" + ], + "request_raw_configuration": [ + "id 5, present", + "id 6, present" + ], + "deleted_job": [ + "id 9, present", + "id 10, present" + ], + "deleted_build": [ + "id 11, present", + "id 12, present" + ], + "deleted_request_payload": [ + "id 5, present", + "id 6, present" + ], + "deleted_request_raw_configuration": [ + "id 5, present", + "id 6, present" ] }, "id 6, present" + ], + "deleted_build": [ + "id 13, present", + "id 14, present" + ], + "deleted_job": [ + "id 11, present", + "id 12, present" + ], + "deleted_request": [ + "id 5, present", + "id 6, present" ] }, - "id 214, present" + "id 4, present" ], - cron: [ - "id 1, present", - "id 2, present" + "cron": [ + "id 1, present" ], - job: [ + "job": [ { - _: "id 29, present", - log: [ + "_": "id 30, present", + "queueable_job": [ "id 9, present", "id 10, present" ], - annotation: [ - "id 9, present", - "id 10, present" - ], - queueable_job: [ + "job_version": [ "id 9, present", "id 10, present" ] }, - "id 30, present" + "id 31, present" ], - request: [ + "request": [ { - _: "id 7, present", - abuse: [ + "_": "id 7, present", + "abuse": [ "id 7, present", "id 8, present" ], - message: [ + "message": [ "id 7, present", "id 8, present" ], - job: [ + "job": [ { - _: "id 44, present", - log: [ + "_": "id 45, present", + "queueable_job": [ "id 15, present", "id 16, present" ], - annotation: [ - "id 15, present", - "id 16, present" - ], - queueable_job: [ + "job_version": [ "id 15, present", "id 16, present" ] }, - "id 45, present" + "id 46, present" ], - build: [ + "build": [ { - _: "id 41, present", - job: [ - "id 42, present" + "_": "id 42, present", + "job": [ + "id 43, present" ], - repository: [ + "repository": [ "id 17, present", "id 16, present" ], - tag: [ + "tag": [ "id 10, present" ], - branch: [ - "id 81, present" + "branch": [ + "id 9, present" ], - stage: [ - "id 29, present" + "stage": [ + "id 11, present" ] }, - "id 43, present" + "id 44, present" + ], + "request_payload": [ + "id 7, present", + "id 8, present" + ], + "request_raw_configuration": [ + "id 7, present", + "id 8, present" + ], + "deleted_job": [ + "id 13, present", + "id 14, present" + ], + "deleted_build": [ + "id 15, present", + "id 16, present" + ], + "deleted_request_payload": [ + "id 7, present", + "id 8, present" + ], + "deleted_request_raw_configuration": [ + "id 7, present", + "id 8, present" ] }, "id 8, present" + ], + "deleted_build": [ + "id 9, present", + "id 10, present" + ], + "deleted_commit": [ + "id 3, present", + "id 4, present" + ], + "deleted_job": [ + "id 7, present", + "id 8, present" + ], + "deleted_request": [ + "id 7, present", + "id 8, present" ] }, - "id 82, present" + "id 10, present" ], - stage: [ + "stage": [ { - _: "id 20, removed", - job: [ + "_": "id 1, removed", + "job": [ "id 2, removed", "id 3, removed" ] }, { - _: "id 21, removed", - job: [ + "_": "id 2, removed", + "job": [ "id 4, removed", "id 5, removed" ] - } + }, + "id 3, removed" + ], + "deleted_job": [ + "id 15, removed" + ], + "deleted_tag": [ + "id 1, present" + ], + "deleted_stage": [ + "id 1, removed" ] }, - "id 50, removed" + "id 51, removed" ], - request: [ + "request": [ { - _: "id 11, removed", - abuse: [ + "_": "id 11, removed", + "abuse": [ "id 9, removed", "id 10, removed" ], - message: [ + "message": [ "id 9, removed", "id 10, removed" ], - job: [ + "job": [ { - _: "id 54, removed", - log: [ - "id 17, removed", - "id 18, removed" - ], - annotation: [ + "_": "id 55, removed", + "queueable_job": [ "id 17, removed", "id 18, removed" ], - queueable_job: [ + "job_version": [ "id 17, removed", "id 18, removed" ] }, - "id 55, removed" + "id 56, removed" ], - build: [ + "build": [ { - _: "id 51, removed", - job: [ - "id 52, removed" + "_": "id 52, removed", + "job": [ + "id 53, removed" ], - repository: [ + "repository": [ "id 23, present", "id 22, present" ], - tag: [ + "tag": [ "id 13, present" ], - branch: [ - "id 85, present" + "branch": [ + "id 13, present" ], - stage: [ - "id 30, removed" + "stage": [ + "id 12, removed" ] }, - "id 53, removed" + "id 54, removed" + ], + "request_payload": [ + "id 9, removed", + "id 10, removed" + ], + "request_raw_configuration": [ + "id 9, removed", + "id 10, removed" + ], + "deleted_job": [ + "id 16, removed", + "id 17, removed" + ], + "deleted_build": [ + "id 17, removed", + "id 18, removed" + ], + "deleted_request_payload": [ + "id 9, removed", + "id 10, removed" + ], + "deleted_request_raw_configuration": [ + "id 9, removed", + "id 10, removed" ] }, "id 12, removed" ], - job: [ + "job": [ { - _: "id 56, removed", - log: [ + "_": "id 57, removed", + "queueable_job": [ "id 19, removed", "id 20, removed" ], - annotation: [ - "id 19, removed", - "id 20, removed" - ], - queueable_job: [ + "job_version": [ "id 19, removed", "id 20, removed" ] }, - "id 57, removed" + "id 58, removed" ], - branch: [ + "branch": [ { - _: "id 86, removed", - build: [ + "_": "id 14, removed", + "build": [ { - _: "id 58, removed", - job: [ - "id 59, removed" + "_": "id 59, removed", + "job": [ + "id 60, removed" ], - repository: [ + "repository": [ "id 25, present", "id 24, present" ], - tag: [ + "tag": [ "id 14, present" ], - branch: [ - "id 87, present" + "branch": [ + "id 15, present" ], - stage: [ - "id 31, removed" + "stage": [ + "id 13, removed" ] }, - "id 60, removed" + "id 61, removed" ], - commit: [ + "commit": [ { - _: "id 217, removed", - build: [ + "_": "id 7, removed", + "build": [ { - _: "id 63, removed", - job: [ - "id 64, removed" + "_": "id 64, removed", + "job": [ + "id 65, removed" ], - repository: [ + "repository": [ "id 27, present", "id 26, present" ], - tag: [ + "tag": [ "id 15, present" ], - branch: [ - "id 88, present" + "branch": [ + "id 16, present" ], - stage: [ - "id 32, removed" + "stage": [ + "id 14, removed" ] }, - "id 65, removed" + "id 66, removed" ], - job: [ + "job": [ { - _: "id 66, removed", - log: [ + "_": "id 67, removed", + "queueable_job": [ "id 23, removed", "id 24, removed" ], - annotation: [ - "id 23, removed", - "id 24, removed" - ], - queueable_job: [ + "job_version": [ "id 23, removed", "id 24, removed" ] }, - "id 67, removed" + "id 68, removed" ], - request: [ + "request": [ { - _: "id 13, removed", - abuse: [ + "_": "id 13, removed", + "abuse": [ "id 11, removed", "id 12, removed" ], - message: [ + "message": [ "id 11, removed", "id 12, removed" ], - job: [ + "job": [ { - _: "id 71, removed", - log: [ - "id 25, removed", - "id 26, removed" - ], - annotation: [ + "_": "id 72, removed", + "queueable_job": [ "id 25, removed", "id 26, removed" ], - queueable_job: [ + "job_version": [ "id 25, removed", "id 26, removed" ] }, - "id 72, removed" + "id 73, removed" ], - build: [ + "build": [ { - _: "id 68, removed", - job: [ - "id 69, removed" + "_": "id 69, removed", + "job": [ + "id 70, removed" ], - repository: [ + "repository": [ "id 29, present", "id 28, present" ], - tag: [ + "tag": [ "id 16, present" ], - branch: [ - "id 89, present" + "branch": [ + "id 17, present" ], - stage: [ - "id 33, removed" + "stage": [ + "id 15, removed" ] }, - "id 70, removed" + "id 71, removed" + ], + "request_payload": [ + "id 11, removed", + "id 12, removed" + ], + "request_raw_configuration": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_job": [ + "id 20, removed", + "id 21, removed" + ], + "deleted_build": [ + "id 21, removed", + "id 22, removed" + ], + "deleted_request_payload": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_request_raw_configuration": [ + "id 11, removed", + "id 12, removed" ] }, "id 14, removed" + ], + "deleted_build": [ + "id 23, removed", + "id 24, removed" + ], + "deleted_job": [ + "id 22, removed", + "id 23, removed" + ], + "deleted_request": [ + "id 9, removed", + "id 10, removed" ] }, - "id 218, removed" + "id 8, removed" ], - cron: [ - "id 3, removed", - "id 4, removed" + "cron": [ + "id 2, removed" ], - job: [ + "job": [ { - _: "id 61, removed", - log: [ + "_": "id 62, removed", + "queueable_job": [ "id 21, removed", "id 22, removed" ], - annotation: [ - "id 21, removed", - "id 22, removed" - ], - queueable_job: [ + "job_version": [ "id 21, removed", "id 22, removed" ] }, - "id 62, removed" + "id 63, removed" ], - request: [ + "request": [ { - _: "id 15, removed", - abuse: [ + "_": "id 15, removed", + "abuse": [ "id 13, removed", "id 14, removed" ], - message: [ + "message": [ "id 13, removed", "id 14, removed" ], - job: [ + "job": [ { - _: "id 76, removed", - log: [ - "id 27, removed", - "id 28, removed" - ], - annotation: [ + "_": "id 77, removed", + "queueable_job": [ "id 27, removed", "id 28, removed" ], - queueable_job: [ + "job_version": [ "id 27, removed", "id 28, removed" ] }, - "id 77, removed" + "id 78, removed" ], - build: [ + "build": [ { - _: "id 73, removed", - job: [ - "id 74, removed" + "_": "id 74, removed", + "job": [ + "id 75, removed" ], - repository: [ + "repository": [ "id 31, present", "id 30, present" ], - tag: [ + "tag": [ "id 17, present" ], - branch: [ - "id 90, present" + "branch": [ + "id 18, present" ], - stage: [ - "id 34, removed" + "stage": [ + "id 16, removed" ] }, - "id 75, removed" + "id 76, removed" + ], + "request_payload": [ + "id 13, removed", + "id 14, removed" + ], + "request_raw_configuration": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_job": [ + "id 24, removed", + "id 25, removed" + ], + "deleted_build": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_request_payload": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_request_raw_configuration": [ + "id 13, removed", + "id 14, removed" ] }, "id 16, removed" + ], + "deleted_build": [ + "id 19, removed", + "id 20, removed" + ], + "deleted_commit": [ + "id 5, removed", + "id 6, removed" + ], + "deleted_job": [ + "id 18, removed", + "id 19, removed" + ], + "deleted_request": [ + "id 11, removed", + "id 12, removed" ] }, - "id 91, removed" + "id 19, removed" ], - ssl_key: [ - "id 33, removed", - "id 34, removed" + "ssl_key": [ + "id 3, removed", + "id 4, removed" ], - commit: [ + "commit": [ { - _: "id 219, removed", - build: [ + "_": "id 9, removed", + "build": [ { - _: "id 78, removed", - job: [ - "id 79, removed" + "_": "id 79, removed", + "job": [ + "id 80, removed" ], - repository: [ + "repository": [ "id 33, present", "id 32, present" ], - tag: [ + "tag": [ "id 18, present" ], - branch: [ - "id 92, present" + "branch": [ + "id 20, present" ], - stage: [ - "id 35, removed" + "stage": [ + "id 17, removed" ] }, - "id 80, removed" + "id 81, removed" ], - job: [ + "job": [ { - _: "id 81, removed", - log: [ + "_": "id 82, removed", + "queueable_job": [ "id 29, removed", "id 30, removed" ], - annotation: [ - "id 29, removed", - "id 30, removed" - ], - queueable_job: [ + "job_version": [ "id 29, removed", "id 30, removed" ] }, - "id 82, removed" + "id 83, removed" ], - request: [ + "request": [ { - _: "id 17, removed", - abuse: [ + "_": "id 17, removed", + "abuse": [ "id 15, removed", "id 16, removed" ], - message: [ + "message": [ "id 15, removed", "id 16, removed" ], - job: [ + "job": [ { - _: "id 86, removed", - log: [ - "id 31, removed", - "id 32, removed" - ], - annotation: [ + "_": "id 87, removed", + "queueable_job": [ "id 31, removed", "id 32, removed" ], - queueable_job: [ + "job_version": [ "id 31, removed", "id 32, removed" ] }, - "id 87, removed" + "id 88, removed" ], - build: [ + "build": [ { - _: "id 83, removed", - job: [ - "id 84, removed" + "_": "id 84, removed", + "job": [ + "id 85, removed" ], - repository: [ + "repository": [ "id 35, present", "id 34, present" ], - tag: [ + "tag": [ "id 19, present" ], - branch: [ - "id 93, present" + "branch": [ + "id 21, present" ], - stage: [ - "id 36, removed" + "stage": [ + "id 18, removed" ] }, - "id 85, removed" + "id 86, removed" + ], + "request_payload": [ + "id 15, removed", + "id 16, removed" + ], + "request_raw_configuration": [ + "id 15, removed", + "id 16, removed" + ], + "deleted_job": [ + "id 26, removed", + "id 27, removed" + ], + "deleted_build": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_request_payload": [ + "id 15, removed", + "id 16, removed" + ], + "deleted_request_raw_configuration": [ + "id 15, removed", + "id 16, removed" ] }, "id 18, removed" + ], + "deleted_build": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_job": [ + "id 28, removed", + "id 29, removed" + ], + "deleted_request": [ + "id 13, removed", + "id 14, removed" ] }, - "id 220, removed" + "id 10, removed" ], - permission: [ + "permission": [ "id 5, removed", "id 6, removed" ], - star: [ + "star": [ "id 5, removed", "id 6, removed" ], - pull_request: [ + "pull_request": [ { - _: "id 3, removed", - request: [ + "_": "id 3, removed", + "request": [ { - _: "id 29, removed", - abuse: [ + "_": "id 29, removed", + "abuse": [ "id 25, removed", "id 26, removed" ], - message: [ + "message": [ "id 25, removed", "id 26, removed" ], - job: [ + "job": [ { - _: "id 141, removed", - log: [ - "id 49, removed", - "id 50, removed" - ], - annotation: [ + "_": "id 143, removed", + "queueable_job": [ "id 49, removed", "id 50, removed" ], - queueable_job: [ + "job_version": [ "id 49, removed", "id 50, removed" ] }, - "id 142, removed" + "id 144, removed" ], - build: [ + "build": [ { - _: "id 138, removed", - job: [ - "id 139, removed" + "_": "id 140, removed", + "job": [ + "id 141, removed" ], - repository: [ + "repository": [ "id 57, present", "id 56, present" ], - tag: [ + "tag": [ "id 32, present" ], - branch: [ - "id 106, present" + "branch": [ + "id 34, present" ], - stage: [ - "id 47, removed" + "stage": [ + "id 30, removed" ] }, - "id 140, removed" - ] - }, - "id 30, removed" - ], - build: [ - { - _: "id 88, removed", - job: [ - { - _: "id 93, removed", - log: [ - "id 33, removed", - "id 34, removed" - ], - annotation: [ - "id 33, removed", - "id 34, removed" - ], - queueable_job: [ - "id 33, removed", + "id 142, removed" + ], + "request_payload": [ + "id 25, removed", + "id 26, removed" + ], + "request_raw_configuration": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_job": [ + "id 45, removed", + "id 46, removed" + ], + "deleted_build": [ + "id 47, removed", + "id 48, removed" + ], + "deleted_request_payload": [ + "id 25, removed", + "id 26, removed" + ], + "deleted_request_raw_configuration": [ + "id 25, removed", + "id 26, removed" + ] + }, + "id 30, removed" + ], + "build": [ + { + "_": "id 89, removed", + "job": [ + { + "_": "id 94, removed", + "queueable_job": [ + "id 33, removed", + "id 34, removed" + ], + "job_version": [ + "id 33, removed", "id 34, removed" ] }, - "id 94, removed" + "id 95, removed", + "id 96, removed" ], - repository: [ + "repository": [ { - _: "id 54, present", - build: [ - "id 135, present" + "_": "id 54, present", + "build": [ + "id 137, present" ], - request: [ + "request": [ "id 28, present" ], - job: [ - "id 136, present" + "job": [ + "id 138, present" ], - branch: [ - "id 105, present" + "branch": [ + "id 33, present" ], - ssl_key: [ - "id 36, present" + "ssl_key": [ + "id 6, present" ], - commit: [ - "id 226, present" + "commit": [ + "id 16, present" ], - permission: [ + "permission": [ "id 8, present" ], - star: [ + "star": [ "id 8, present" ], - pull_request: [ + "pull_request": [ "id 5, present" ], - tag: [ + "tag": [ "id 31, present" ] }, "id 55, present", { - _: "id 52, present", - build: [ - "id 133, present" + "_": "id 52, present", + "build": [ + "id 135, present" ], - request: [ + "request": [ "id 27, present" ], - job: [ - "id 134, present" + "job": [ + "id 136, present" ], - branch: [ - "id 104, present" + "branch": [ + "id 32, present" ], - ssl_key: [ - "id 35, present" + "ssl_key": [ + "id 5, present" ], - commit: [ - "id 225, present" + "commit": [ + "id 15, present" ], - permission: [ + "permission": [ "id 7, present" ], - star: [ + "star": [ "id 7, present" ], - pull_request: [ + "pull_request": [ "id 4, present" ], - tag: [ + "tag": [ "id 30, present" ] }, "id 53, present" ], - tag: [ + "tag": [ { - _: "id 20, present", - build: [ + "_": "id 20, present", + "build": [ { - _: "id 95, present", - job: [ - "id 96, present" + "_": "id 97, present", + "job": [ + "id 98, present" ], - repository: [ + "repository": [ "id 37, present", "id 36, present" ], - tag: [ + "tag": [ "id 21, present" ], - branch: [ - "id 94, present" + "branch": [ + "id 22, present" ], - stage: [ - "id 39, present" + "stage": [ + "id 22, present" ] }, - "id 97, present" + "id 99, present" ], - commit: [ + "commit": [ { - _: "id 221, present", - build: [ + "_": "id 11, present", + "build": [ { - _: "id 98, present", - job: [ - "id 99, present" + "_": "id 100, present", + "job": [ + "id 101, present" ], - repository: [ + "repository": [ "id 39, present", "id 38, present" ], - tag: [ + "tag": [ "id 22, present" ], - branch: [ - "id 95, present" + "branch": [ + "id 23, present" ], - stage: [ - "id 40, present" + "stage": [ + "id 23, present" ] }, - "id 100, present" + "id 102, present" ], - job: [ + "job": [ { - _: "id 101, present", - log: [ - "id 35, present", - "id 36, present" - ], - annotation: [ + "_": "id 103, present", + "queueable_job": [ "id 35, present", "id 36, present" ], - queueable_job: [ + "job_version": [ "id 35, present", "id 36, present" ] }, - "id 102, present" + "id 104, present" ], - request: [ + "request": [ { - _: "id 19, present", - abuse: [ + "_": "id 19, present", + "abuse": [ "id 17, present", "id 18, present" ], - message: [ + "message": [ "id 17, present", "id 18, present" ], - job: [ + "job": [ { - _: "id 106, present", - log: [ - "id 37, present", - "id 38, present" - ], - annotation: [ + "_": "id 108, present", + "queueable_job": [ "id 37, present", "id 38, present" ], - queueable_job: [ + "job_version": [ "id 37, present", "id 38, present" ] }, - "id 107, present" + "id 109, present" ], - build: [ + "build": [ { - _: "id 103, present", - job: [ - "id 104, present" + "_": "id 105, present", + "job": [ + "id 106, present" ], - repository: [ + "repository": [ "id 41, present", "id 40, present" ], - tag: [ + "tag": [ "id 23, present" ], - branch: [ - "id 96, present" + "branch": [ + "id 24, present" ], - stage: [ - "id 41, present" + "stage": [ + "id 24, present" ] }, - "id 105, present" + "id 107, present" + ], + "request_payload": [ + "id 17, present", + "id 18, present" + ], + "request_raw_configuration": [ + "id 17, present", + "id 18, present" + ], + "deleted_job": [ + "id 30, present", + "id 31, present" + ], + "deleted_build": [ + "id 31, present", + "id 32, present" + ], + "deleted_request_payload": [ + "id 17, present", + "id 18, present" + ], + "deleted_request_raw_configuration": [ + "id 17, present", + "id 18, present" ] }, "id 20, present" + ], + "deleted_build": [ + "id 33, present", + "id 34, present" + ], + "deleted_job": [ + "id 32, present", + "id 33, present" + ], + "deleted_request": [ + "id 15, present", + "id 16, present" ] }, - "id 222, present" + "id 12, present" ], - request: [ + "request": [ { - _: "id 21, present", - abuse: [ + "_": "id 21, present", + "abuse": [ "id 19, present", "id 20, present" ], - message: [ + "message": [ "id 19, present", "id 20, present" ], - job: [ + "job": [ { - _: "id 111, present", - log: [ - "id 39, present", - "id 40, present" - ], - annotation: [ + "_": "id 113, present", + "queueable_job": [ "id 39, present", "id 40, present" ], - queueable_job: [ + "job_version": [ "id 39, present", "id 40, present" ] }, - "id 112, present" + "id 114, present" ], - build: [ + "build": [ { - _: "id 108, present", - job: [ - "id 109, present" + "_": "id 110, present", + "job": [ + "id 111, present" ], - repository: [ + "repository": [ "id 43, present", "id 42, present" ], - tag: [ + "tag": [ "id 24, present" ], - branch: [ - "id 97, present" + "branch": [ + "id 25, present" ], - stage: [ - "id 42, present" + "stage": [ + "id 25, present" ] }, - "id 110, present" + "id 112, present" + ], + "request_payload": [ + "id 19, present", + "id 20, present" + ], + "request_raw_configuration": [ + "id 19, present", + "id 20, present" + ], + "deleted_job": [ + "id 34, present", + "id 35, present" + ], + "deleted_build": [ + "id 35, present", + "id 36, present" + ], + "deleted_request_payload": [ + "id 19, present", + "id 20, present" + ], + "deleted_request_raw_configuration": [ + "id 19, present", + "id 20, present" ] }, "id 22, present" + ], + "deleted_build": [ + "id 37, present", + "id 38, present" + ], + "deleted_commit": [ + "id 7, present", + "id 8, present" + ], + "deleted_request": [ + "id 17, present", + "id 18, present" ] }, "id 25, present" ], - branch: [ + "branch": [ { - _: "id 98, present", - build: [ + "_": "id 26, present", + "build": [ { - _: "id 113, present", - job: [ - "id 114, present" + "_": "id 115, present", + "job": [ + "id 116, present" ], - repository: [ + "repository": [ "id 45, present", "id 44, present" ], - tag: [ + "tag": [ "id 26, present" ], - branch: [ - "id 99, present" + "branch": [ + "id 27, present" ], - stage: [ - "id 43, present" + "stage": [ + "id 26, present" ] }, - "id 115, present" + "id 117, present" ], - commit: [ + "commit": [ { - _: "id 223, present", - build: [ + "_": "id 13, present", + "build": [ { - _: "id 118, present", - job: [ - "id 119, present" + "_": "id 120, present", + "job": [ + "id 121, present" ], - repository: [ + "repository": [ "id 47, present", "id 46, present" ], - tag: [ + "tag": [ "id 27, present" ], - branch: [ - "id 100, present" + "branch": [ + "id 28, present" ], - stage: [ - "id 44, present" + "stage": [ + "id 27, present" ] }, - "id 120, present" + "id 122, present" ], - job: [ + "job": [ { - _: "id 121, present", - log: [ - "id 43, present", - "id 44, present" - ], - annotation: [ + "_": "id 123, present", + "queueable_job": [ "id 43, present", "id 44, present" ], - queueable_job: [ + "job_version": [ "id 43, present", "id 44, present" ] }, - "id 122, present" + "id 124, present" ], - request: [ + "request": [ { - _: "id 23, present", - abuse: [ + "_": "id 23, present", + "abuse": [ "id 21, present", "id 22, present" ], - message: [ + "message": [ "id 21, present", "id 22, present" ], - job: [ + "job": [ { - _: "id 126, present", - log: [ - "id 45, present", - "id 46, present" - ], - annotation: [ + "_": "id 128, present", + "queueable_job": [ "id 45, present", "id 46, present" ], - queueable_job: [ + "job_version": [ "id 45, present", "id 46, present" ] }, - "id 127, present" + "id 129, present" ], - build: [ + "build": [ { - _: "id 123, present", - job: [ - "id 124, present" + "_": "id 125, present", + "job": [ + "id 126, present" ], - repository: [ + "repository": [ "id 49, present", "id 48, present" ], - tag: [ + "tag": [ "id 28, present" ], - branch: [ - "id 101, present" + "branch": [ + "id 29, present" ], - stage: [ - "id 45, present" + "stage": [ + "id 28, present" ] }, - "id 125, present" + "id 127, present" + ], + "request_payload": [ + "id 21, present", + "id 22, present" + ], + "request_raw_configuration": [ + "id 21, present", + "id 22, present" + ], + "deleted_job": [ + "id 38, present", + "id 39, present" + ], + "deleted_build": [ + "id 41, present", + "id 42, present" + ], + "deleted_request_payload": [ + "id 21, present", + "id 22, present" + ], + "deleted_request_raw_configuration": [ + "id 21, present", + "id 22, present" ] }, "id 24, present" + ], + "deleted_build": [ + "id 43, present", + "id 44, present" + ], + "deleted_job": [ + "id 40, present", + "id 41, present" + ], + "deleted_request": [ + "id 19, present", + "id 20, present" ] }, - "id 224, present" + "id 14, present" ], - cron: [ - "id 5, present", - "id 6, present" + "cron": [ + "id 3, present" ], - job: [ + "job": [ { - _: "id 116, present", - log: [ - "id 41, present", - "id 42, present" - ], - annotation: [ + "_": "id 118, present", + "queueable_job": [ "id 41, present", "id 42, present" ], - queueable_job: [ + "job_version": [ "id 41, present", "id 42, present" ] }, - "id 117, present" + "id 119, present" ], - request: [ + "request": [ { - _: "id 25, present", - abuse: [ + "_": "id 25, present", + "abuse": [ "id 23, present", "id 24, present" ], - message: [ + "message": [ "id 23, present", "id 24, present" ], - job: [ + "job": [ { - _: "id 131, present", - log: [ - "id 47, present", - "id 48, present" - ], - annotation: [ + "_": "id 133, present", + "queueable_job": [ "id 47, present", "id 48, present" ], - queueable_job: [ + "job_version": [ "id 47, present", "id 48, present" ] }, - "id 132, present" + "id 134, present" ], - build: [ + "build": [ { - _: "id 128, present", - job: [ - "id 129, present" + "_": "id 130, present", + "job": [ + "id 131, present" ], - repository: [ + "repository": [ "id 51, present", "id 50, present" ], - tag: [ + "tag": [ "id 29, present" ], - branch: [ - "id 102, present" + "branch": [ + "id 30, present" ], - stage: [ - "id 46, present" + "stage": [ + "id 29, present" ] }, - "id 130, present" + "id 132, present" + ], + "request_payload": [ + "id 23, present", + "id 24, present" + ], + "request_raw_configuration": [ + "id 23, present", + "id 24, present" + ], + "deleted_job": [ + "id 42, present", + "id 43, present" + ], + "deleted_build": [ + "id 45, present", + "id 46, present" + ], + "deleted_request_payload": [ + "id 23, present", + "id 24, present" + ], + "deleted_request_raw_configuration": [ + "id 23, present", + "id 24, present" ] }, "id 26, present" + ], + "deleted_build": [ + "id 39, present", + "id 40, present" + ], + "deleted_commit": [ + "id 9, present", + "id 10, present" + ], + "deleted_job": [ + "id 36, present", + "id 37, present" + ], + "deleted_request": [ + "id 21, present", + "id 22, present" ] }, - "id 103, present" + "id 31, present" ], - stage: [ + "stage": [ { - _: "id 37, removed", - job: [ - "id 89, removed", - "id 90, removed" + "_": "id 19, removed", + "job": [ + "id 90, removed", + "id 91, removed" ] }, { - _: "id 38, removed", - job: [ - "id 91, removed", - "id 92, removed" + "_": "id 20, removed", + "job": [ + "id 92, removed", + "id 93, removed" ] - } + }, + "id 21, removed" + ], + "deleted_job": [ + "id 44, removed" + ], + "deleted_tag": [ + "id 2, present" + ], + "deleted_stage": [ + "id 2, removed" ] }, - "id 137, removed" + "id 139, removed" + ], + "deleted_request": [ + "id 23, removed", + "id 24, removed" + ], + "deleted_build": [ + "id 49, removed", + "id 50, removed" ] }, "id 6, removed" ], - tag: [ + "tag": [ { - _: "id 33, removed", - build: [ + "_": "id 33, removed", + "build": [ { - _: "id 143, removed", - job: [ - "id 144, removed" + "_": "id 145, removed", + "job": [ + "id 146, removed" ], - repository: [ + "repository": [ "id 59, present", "id 58, present" ], - tag: [ + "tag": [ "id 34, present" ], - branch: [ - "id 107, present" + "branch": [ + "id 35, present" ], - stage: [ - "id 48, removed" + "stage": [ + "id 31, removed" ] }, - "id 145, removed" + "id 147, removed" ], - commit: [ + "commit": [ { - _: "id 227, removed", - build: [ + "_": "id 17, removed", + "build": [ { - _: "id 146, removed", - job: [ - "id 147, removed" + "_": "id 148, removed", + "job": [ + "id 149, removed" ], - repository: [ + "repository": [ "id 61, present", "id 60, present" ], - tag: [ + "tag": [ "id 35, present" ], - branch: [ - "id 108, present" + "branch": [ + "id 36, present" ], - stage: [ - "id 49, removed" + "stage": [ + "id 32, removed" ] }, - "id 148, removed" + "id 150, removed" ], - job: [ + "job": [ { - _: "id 149, removed", - log: [ - "id 51, removed", - "id 52, removed" - ], - annotation: [ + "_": "id 151, removed", + "queueable_job": [ "id 51, removed", "id 52, removed" ], - queueable_job: [ + "job_version": [ "id 51, removed", "id 52, removed" ] }, - "id 150, removed" + "id 152, removed" ], - request: [ + "request": [ { - _: "id 31, removed", - abuse: [ + "_": "id 31, removed", + "abuse": [ "id 27, removed", "id 28, removed" ], - message: [ + "message": [ "id 27, removed", "id 28, removed" ], - job: [ + "job": [ { - _: "id 154, removed", - log: [ - "id 53, removed", - "id 54, removed" - ], - annotation: [ + "_": "id 156, removed", + "queueable_job": [ "id 53, removed", "id 54, removed" ], - queueable_job: [ + "job_version": [ "id 53, removed", "id 54, removed" ] }, - "id 155, removed" + "id 157, removed" ], - build: [ + "build": [ { - _: "id 151, removed", - job: [ - "id 152, removed" + "_": "id 153, removed", + "job": [ + "id 154, removed" ], - repository: [ + "repository": [ "id 63, present", "id 62, present" ], - tag: [ + "tag": [ "id 36, present" ], - branch: [ - "id 109, present" + "branch": [ + "id 37, present" ], - stage: [ - "id 50, removed" + "stage": [ + "id 33, removed" ] }, - "id 153, removed" + "id 155, removed" + ], + "request_payload": [ + "id 27, removed", + "id 28, removed" + ], + "request_raw_configuration": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_job": [ + "id 47, removed", + "id 48, removed" + ], + "deleted_build": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_request_payload": [ + "id 27, removed", + "id 28, removed" + ], + "deleted_request_raw_configuration": [ + "id 27, removed", + "id 28, removed" ] }, "id 32, removed" + ], + "deleted_build": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_job": [ + "id 49, removed", + "id 50, removed" + ], + "deleted_request": [ + "id 25, removed", + "id 26, removed" ] }, - "id 228, removed" + "id 18, removed" ], - request: [ + "request": [ { - _: "id 33, removed", - abuse: [ + "_": "id 33, removed", + "abuse": [ "id 29, removed", "id 30, removed" ], - message: [ + "message": [ "id 29, removed", "id 30, removed" ], - job: [ + "job": [ { - _: "id 159, removed", - log: [ - "id 55, removed", - "id 56, removed" - ], - annotation: [ + "_": "id 161, removed", + "queueable_job": [ "id 55, removed", "id 56, removed" ], - queueable_job: [ + "job_version": [ "id 55, removed", "id 56, removed" ] }, - "id 160, removed" + "id 162, removed" ], - build: [ + "build": [ { - _: "id 156, removed", - job: [ - "id 157, removed" + "_": "id 158, removed", + "job": [ + "id 159, removed" ], - repository: [ + "repository": [ "id 65, present", "id 64, present" ], - tag: [ + "tag": [ "id 37, present" ], - branch: [ - "id 110, present" + "branch": [ + "id 38, present" ], - stage: [ - "id 51, removed" + "stage": [ + "id 34, removed" ] }, - "id 158, removed" + "id 160, removed" + ], + "request_payload": [ + "id 29, removed", + "id 30, removed" + ], + "request_raw_configuration": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_job": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_build": [ + "id 55, removed", + "id 56, removed" + ], + "deleted_request_payload": [ + "id 29, removed", + "id 30, removed" + ], + "deleted_request_raw_configuration": [ + "id 29, removed", + "id 30, removed" ] }, "id 34, removed" + ], + "deleted_build": [ + "id 57, removed", + "id 58, removed" + ], + "deleted_commit": [ + "id 11, removed", + "id 12, removed" + ], + "deleted_request": [ + "id 27, removed", + "id 28, removed" ] }, "id 38, removed" + ], + "build_config": [ + { + "_": "id 1, removed", + "build": [ + { + "_": "id 163, removed", + "job": [ + "id 164, removed" + ], + "repository": [ + "id 67, present", + "id 66, present" + ], + "tag": [ + "id 39, present" + ], + "branch": [ + "id 39, present" + ], + "stage": [ + "id 35, removed" + ] + }, + "id 165, removed" + ], + "deleted_build": [ + "id 59, removed", + "id 60, removed" + ] + }, + "id 2, removed" + ], + "email_unsubscribe": [ + "id 1, removed", + "id 2, removed" + ], + "request_config": [ + { + "_": "id 1, removed", + "request": [ + { + "_": "id 35, removed", + "abuse": [ + "id 31, removed", + "id 32, removed" + ], + "message": [ + "id 31, removed", + "id 32, removed" + ], + "job": [ + { + "_": "id 169, removed", + "queueable_job": [ + "id 57, removed", + "id 58, removed" + ], + "job_version": [ + "id 57, removed", + "id 58, removed" + ] + }, + "id 170, removed" + ], + "build": [ + { + "_": "id 166, removed", + "job": [ + "id 167, removed" + ], + "repository": [ + "id 69, present", + "id 68, present" + ], + "tag": [ + "id 40, present" + ], + "branch": [ + "id 40, present" + ], + "stage": [ + "id 36, removed" + ] + }, + "id 168, removed" + ], + "request_payload": [ + "id 31, removed", + "id 32, removed" + ], + "request_raw_configuration": [ + "id 31, removed", + "id 32, removed" + ], + "deleted_job": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_build": [ + "id 61, removed", + "id 62, removed" + ], + "deleted_request_payload": [ + "id 31, removed", + "id 32, removed" + ], + "deleted_request_raw_configuration": [ + "id 31, removed", + "id 32, removed" + ] + }, + "id 36, removed" + ], + "deleted_request": [ + "id 29, removed", + "id 30, removed" + ] + }, + "id 2, removed" + ], + "job_config": [ + { + "_": "id 1, removed", + "job": [ + { + "_": "id 171, removed", + "queueable_job": [ + "id 59, removed", + "id 60, removed" + ], + "job_version": [ + "id 59, removed", + "id 60, removed" + ] + }, + "id 172, removed" + ], + "deleted_job": [ + "id 55, removed", + "id 56, removed" + ] + }, + "id 2, removed" + ], + "request_raw_config": [ + { + "_": "id 1, removed", + "request_raw_configuration": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_request_raw_configuration": [ + "id 33, removed", + "id 34, removed" + ] + }, + "id 2, removed" + ], + "repo_count": [ + "id 1, removed", + "id 1, removed, duplicate" + ], + "request_yaml_config": [ + { + "_": "id 1, removed", + "request": [ + { + "_": "id 37, removed", + "abuse": [ + "id 33, removed", + "id 34, removed" + ], + "message": [ + "id 33, removed", + "id 34, removed" + ], + "job": [ + { + "_": "id 176, removed", + "queueable_job": [ + "id 61, removed", + "id 62, removed" + ], + "job_version": [ + "id 61, removed", + "id 62, removed" + ] + }, + "id 177, removed" + ], + "build": [ + { + "_": "id 173, removed", + "job": [ + "id 174, removed" + ], + "repository": [ + "id 71, present", + "id 70, present" + ], + "tag": [ + "id 41, present" + ], + "branch": [ + "id 41, present" + ], + "stage": [ + "id 37, removed" + ] + }, + "id 175, removed" + ], + "request_payload": [ + "id 33, removed", + "id 34, removed" + ], + "request_raw_configuration": [ + "id 35, removed", + "id 36, removed" + ], + "deleted_job": [ + "id 57, removed", + "id 58, removed" + ], + "deleted_build": [ + "id 63, removed", + "id 64, removed" + ], + "deleted_request_payload": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_request_raw_configuration": [ + "id 35, removed", + "id 36, removed" + ] + }, + "id 38, removed" + ], + "deleted_request": [ + "id 31, removed", + "id 32, removed" + ] + }, + "id 2, removed" + ], + "deleted_build": [ + "id 65, removed", + "id 66, removed" + ], + "deleted_request": [ + "id 33, removed", + "id 34, removed" + ], + "deleted_job": [ + "id 59, removed", + "id 60, removed" + ], + "deleted_ssl_key": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_commit": [ + "id 13, removed", + "id 14, removed" + ], + "deleted_pull_request": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_tag": [ + "id 3, removed", + "id 4, removed" + ], + "deleted_build_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_job_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_raw_config": [ + "id 1, removed", + "id 2, removed" + ], + "deleted_request_yaml_config": [ + "id 1, removed", + "id 2, removed" ] } ] }, { - _: "id 211, removed", - job: [ + "_": "id 229, removed", + "job": [ { - _: "id 216, removed", - log: [ - "id 73, removed", - "id 74, removed" - ], - annotation: [ - "id 73, removed", - "id 74, removed" - ], - queueable_job: [ - "id 73, removed", - "id 74, removed" + "_": "id 234, removed", + "queueable_job": [ + "id 79, removed", + "id 80, removed" + ], + "job_version": [ + "id 79, removed", + "id 80, removed" ] }, - "id 217, removed" + "id 235, removed", + "id 236, removed" ], - repository: [ + "repository": [ { - _: "id 105, present", - build: [ - "id 258, present" + "_": "id 111, present", + "build": [ + "id 277, present" ], - request: [ - "id 54, present" + "request": [ + "id 58, present" ], - job: [ - "id 259, present" + "job": [ + "id 278, present" ], - branch: [ - "id 134, present" + "branch": [ + "id 65, present" ], - ssl_key: [ - "id 40, present" + "ssl_key": [ + "id 10, present" ], - commit: [ - "id 240, present" + "commit": [ + "id 30, present" ], - permission: [ + "permission": [ "id 12, present" ], - star: [ + "star": [ "id 12, present" ], - pull_request: [ + "pull_request": [ "id 10, present" ], - tag: [ - "id 62, present" + "tag": [ + "id 65, present" ] }, - "id 106, present", + "id 112, present", { - _: "id 103, present", - build: [ - "id 256, present" + "_": "id 109, present", + "build": [ + "id 275, present" ], - request: [ - "id 53, present" + "request": [ + "id 57, present" ], - job: [ - "id 257, present" + "job": [ + "id 276, present" ], - branch: [ - "id 133, present" + "branch": [ + "id 64, present" ], - ssl_key: [ - "id 39, present" + "ssl_key": [ + "id 9, present" ], - commit: [ - "id 239, present" + "commit": [ + "id 29, present" ], - permission: [ + "permission": [ "id 11, present" ], - star: [ + "star": [ "id 11, present" ], - pull_request: [ + "pull_request": [ "id 9, present" ], - tag: [ - "id 61, present" + "tag": [ + "id 64, present" ] }, - "id 104, present" + "id 110, present" ], - tag: [ + "tag": [ { - _: "id 51, present", - build: [ + "_": "id 54, present", + "build": [ { - _: "id 218, present", - job: [ - "id 219, present" + "_": "id 237, present", + "job": [ + "id 238, present" ], - repository: [ - "id 88, present", - "id 87, present" + "repository": [ + "id 94, present", + "id 93, present" ], - tag: [ - "id 52, present" + "tag": [ + "id 55, present" ], - branch: [ - "id 123, present" + "branch": [ + "id 54, present" ], - stage: [ - "id 64, present" + "stage": [ + "id 52, present" ] }, - "id 220, present" + "id 239, present" ], - commit: [ + "commit": [ { - _: "id 235, present", - build: [ + "_": "id 25, present", + "build": [ { - _: "id 221, present", - job: [ - "id 222, present" + "_": "id 240, present", + "job": [ + "id 241, present" ], - repository: [ - "id 90, present", - "id 89, present" + "repository": [ + "id 96, present", + "id 95, present" ], - tag: [ - "id 53, present" + "tag": [ + "id 56, present" ], - branch: [ - "id 124, present" + "branch": [ + "id 55, present" ], - stage: [ - "id 65, present" + "stage": [ + "id 53, present" ] }, - "id 223, present" + "id 242, present" ], - job: [ + "job": [ { - _: "id 224, present", - log: [ - "id 75, present", - "id 76, present" - ], - annotation: [ - "id 75, present", - "id 76, present" - ], - queueable_job: [ - "id 75, present", - "id 76, present" + "_": "id 243, present", + "queueable_job": [ + "id 81, present", + "id 82, present" + ], + "job_version": [ + "id 81, present", + "id 82, present" ] }, - "id 225, present" + "id 244, present" ], - request: [ + "request": [ { - _: "id 45, present", - abuse: [ - "id 39, present", - "id 40, present" + "_": "id 49, present", + "abuse": [ + "id 43, present", + "id 44, present" ], - message: [ - "id 39, present", - "id 40, present" + "message": [ + "id 43, present", + "id 44, present" ], - job: [ + "job": [ { - _: "id 229, present", - log: [ - "id 77, present", - "id 78, present" - ], - annotation: [ - "id 77, present", - "id 78, present" - ], - queueable_job: [ - "id 77, present", - "id 78, present" + "_": "id 248, present", + "queueable_job": [ + "id 83, present", + "id 84, present" + ], + "job_version": [ + "id 83, present", + "id 84, present" ] }, - "id 230, present" + "id 249, present" ], - build: [ + "build": [ { - _: "id 226, present", - job: [ - "id 227, present" + "_": "id 245, present", + "job": [ + "id 246, present" ], - repository: [ - "id 92, present", - "id 91, present" + "repository": [ + "id 98, present", + "id 97, present" ], - tag: [ - "id 54, present" + "tag": [ + "id 57, present" ], - branch: [ - "id 125, present" + "branch": [ + "id 56, present" ], - stage: [ - "id 66, present" + "stage": [ + "id 54, present" ] }, - "id 228, present" + "id 247, present" + ], + "request_payload": [ + "id 43, present", + "id 44, present" + ], + "request_raw_configuration": [ + "id 45, present", + "id 46, present" + ], + "deleted_job": [ + "id 76, present", + "id 77, present" + ], + "deleted_build": [ + "id 83, present", + "id 84, present" + ], + "deleted_request_payload": [ + "id 43, present", + "id 44, present" + ], + "deleted_request_raw_configuration": [ + "id 45, present", + "id 46, present" ] }, - "id 46, present" + "id 50, present" + ], + "deleted_build": [ + "id 85, present", + "id 86, present" + ], + "deleted_job": [ + "id 78, present", + "id 79, present" + ], + "deleted_request": [ + "id 43, present", + "id 44, present" ] }, - "id 236, present" + "id 26, present" ], - request: [ + "request": [ { - _: "id 47, present", - abuse: [ - "id 41, present", - "id 42, present" + "_": "id 51, present", + "abuse": [ + "id 45, present", + "id 46, present" ], - message: [ - "id 41, present", - "id 42, present" + "message": [ + "id 45, present", + "id 46, present" ], - job: [ + "job": [ { - _: "id 234, present", - log: [ - "id 79, present", - "id 80, present" - ], - annotation: [ - "id 79, present", - "id 80, present" - ], - queueable_job: [ - "id 79, present", - "id 80, present" + "_": "id 253, present", + "queueable_job": [ + "id 85, present", + "id 86, present" + ], + "job_version": [ + "id 85, present", + "id 86, present" ] }, - "id 235, present" + "id 254, present" ], - build: [ + "build": [ { - _: "id 231, present", - job: [ - "id 232, present" + "_": "id 250, present", + "job": [ + "id 251, present" ], - repository: [ - "id 94, present", - "id 93, present" + "repository": [ + "id 100, present", + "id 99, present" ], - tag: [ - "id 55, present" + "tag": [ + "id 58, present" ], - branch: [ - "id 126, present" + "branch": [ + "id 57, present" ], - stage: [ - "id 67, present" + "stage": [ + "id 55, present" ] }, - "id 233, present" + "id 252, present" + ], + "request_payload": [ + "id 45, present", + "id 46, present" + ], + "request_raw_configuration": [ + "id 47, present", + "id 48, present" + ], + "deleted_job": [ + "id 80, present", + "id 81, present" + ], + "deleted_build": [ + "id 87, present", + "id 88, present" + ], + "deleted_request_payload": [ + "id 45, present", + "id 46, present" + ], + "deleted_request_raw_configuration": [ + "id 47, present", + "id 48, present" ] }, - "id 48, present" + "id 52, present" + ], + "deleted_build": [ + "id 89, present", + "id 90, present" + ], + "deleted_commit": [ + "id 19, present", + "id 20, present" + ], + "deleted_request": [ + "id 45, present", + "id 46, present" ] }, - "id 56, present" + "id 59, present" ], - branch: [ + "branch": [ { - _: "id 127, present", - build: [ + "_": "id 58, present", + "build": [ { - _: "id 236, present", - job: [ - "id 237, present" + "_": "id 255, present", + "job": [ + "id 256, present" ], - repository: [ - "id 96, present", - "id 95, present" + "repository": [ + "id 102, present", + "id 101, present" ], - tag: [ - "id 57, present" + "tag": [ + "id 60, present" ], - branch: [ - "id 128, present" + "branch": [ + "id 59, present" ], - stage: [ - "id 68, present" + "stage": [ + "id 56, present" ] }, - "id 238, present" + "id 257, present" ], - commit: [ + "commit": [ { - _: "id 237, present", - build: [ + "_": "id 27, present", + "build": [ { - _: "id 241, present", - job: [ - "id 242, present" + "_": "id 260, present", + "job": [ + "id 261, present" ], - repository: [ - "id 98, present", - "id 97, present" + "repository": [ + "id 104, present", + "id 103, present" ], - tag: [ - "id 58, present" + "tag": [ + "id 61, present" ], - branch: [ - "id 129, present" + "branch": [ + "id 60, present" ], - stage: [ - "id 69, present" + "stage": [ + "id 57, present" ] }, - "id 243, present" + "id 262, present" ], - job: [ + "job": [ { - _: "id 244, present", - log: [ - "id 83, present", - "id 84, present" - ], - annotation: [ - "id 83, present", - "id 84, present" - ], - queueable_job: [ - "id 83, present", - "id 84, present" + "_": "id 263, present", + "queueable_job": [ + "id 89, present", + "id 90, present" + ], + "job_version": [ + "id 89, present", + "id 90, present" ] }, - "id 245, present" + "id 264, present" ], - request: [ + "request": [ { - _: "id 49, present", - abuse: [ - "id 43, present", - "id 44, present" + "_": "id 53, present", + "abuse": [ + "id 47, present", + "id 48, present" ], - message: [ - "id 43, present", - "id 44, present" + "message": [ + "id 47, present", + "id 48, present" ], - job: [ + "job": [ { - _: "id 249, present", - log: [ - "id 85, present", - "id 86, present" - ], - annotation: [ - "id 85, present", - "id 86, present" - ], - queueable_job: [ - "id 85, present", - "id 86, present" + "_": "id 268, present", + "queueable_job": [ + "id 91, present", + "id 92, present" + ], + "job_version": [ + "id 91, present", + "id 92, present" ] }, - "id 250, present" + "id 269, present" ], - build: [ + "build": [ { - _: "id 246, present", - job: [ - "id 247, present" + "_": "id 265, present", + "job": [ + "id 266, present" ], - repository: [ - "id 100, present", - "id 99, present" + "repository": [ + "id 106, present", + "id 105, present" ], - tag: [ - "id 59, present" + "tag": [ + "id 62, present" ], - branch: [ - "id 130, present" + "branch": [ + "id 61, present" ], - stage: [ - "id 70, present" + "stage": [ + "id 58, present" ] }, - "id 248, present" + "id 267, present" + ], + "request_payload": [ + "id 47, present", + "id 48, present" + ], + "request_raw_configuration": [ + "id 49, present", + "id 50, present" + ], + "deleted_job": [ + "id 84, present", + "id 85, present" + ], + "deleted_build": [ + "id 93, present", + "id 94, present" + ], + "deleted_request_payload": [ + "id 47, present", + "id 48, present" + ], + "deleted_request_raw_configuration": [ + "id 49, present", + "id 50, present" ] }, - "id 50, present" + "id 54, present" + ], + "deleted_build": [ + "id 95, present", + "id 96, present" + ], + "deleted_job": [ + "id 86, present", + "id 87, present" + ], + "deleted_request": [ + "id 47, present", + "id 48, present" ] }, - "id 238, present" + "id 28, present" ], - cron: [ - "id 9, present", - "id 10, present" + "cron": [ + "id 5, present" ], - job: [ + "job": [ { - _: "id 239, present", - log: [ - "id 81, present", - "id 82, present" + "_": "id 258, present", + "queueable_job": [ + "id 87, present", + "id 88, present" ], - annotation: [ - "id 81, present", - "id 82, present" - ], - queueable_job: [ - "id 81, present", - "id 82, present" + "job_version": [ + "id 87, present", + "id 88, present" ] }, - "id 240, present" + "id 259, present" ], - request: [ + "request": [ { - _: "id 51, present", - abuse: [ - "id 45, present", - "id 46, present" + "_": "id 55, present", + "abuse": [ + "id 49, present", + "id 50, present" ], - message: [ - "id 45, present", - "id 46, present" + "message": [ + "id 49, present", + "id 50, present" ], - job: [ + "job": [ { - _: "id 254, present", - log: [ - "id 87, present", - "id 88, present" - ], - annotation: [ - "id 87, present", - "id 88, present" - ], - queueable_job: [ - "id 87, present", - "id 88, present" + "_": "id 273, present", + "queueable_job": [ + "id 93, present", + "id 94, present" + ], + "job_version": [ + "id 93, present", + "id 94, present" ] }, - "id 255, present" + "id 274, present" ], - build: [ + "build": [ { - _: "id 251, present", - job: [ - "id 252, present" + "_": "id 270, present", + "job": [ + "id 271, present" ], - repository: [ - "id 102, present", - "id 101, present" + "repository": [ + "id 108, present", + "id 107, present" ], - tag: [ - "id 60, present" + "tag": [ + "id 63, present" ], - branch: [ - "id 131, present" + "branch": [ + "id 62, present" ], - stage: [ - "id 71, present" + "stage": [ + "id 59, present" ] }, - "id 253, present" + "id 272, present" + ], + "request_payload": [ + "id 49, present", + "id 50, present" + ], + "request_raw_configuration": [ + "id 51, present", + "id 52, present" + ], + "deleted_job": [ + "id 88, present", + "id 89, present" + ], + "deleted_build": [ + "id 97, present", + "id 98, present" + ], + "deleted_request_payload": [ + "id 49, present", + "id 50, present" + ], + "deleted_request_raw_configuration": [ + "id 51, present", + "id 52, present" ] }, - "id 52, present" + "id 56, present" + ], + "deleted_build": [ + "id 91, present", + "id 92, present" + ], + "deleted_commit": [ + "id 21, present", + "id 22, present" + ], + "deleted_job": [ + "id 82, present", + "id 83, present" + ], + "deleted_request": [ + "id 49, present", + "id 50, present" ] }, - "id 132, present" + "id 63, present" ], - stage: [ + "stage": [ { - _: "id 62, removed", - job: [ - "id 212, removed", - "id 213, removed" + "_": "id 49, removed", + "job": [ + "id 230, removed", + "id 231, removed" ] }, { - _: "id 63, removed", - job: [ - "id 214, removed", - "id 215, removed" + "_": "id 50, removed", + "job": [ + "id 232, removed", + "id 233, removed" ] - } + }, + "id 51, removed" + ], + "deleted_job": [ + "id 90, removed" + ], + "deleted_tag": [ + "id 6, present" + ], + "deleted_stage": [ + "id 4, removed" ] }, { - _: "id 260, removed", - repository: [ + "_": "id 279, removed", + "repository": [ "id 1, removed, duplicate" ] } ], - repository: [ + "repository": [ "id 1, removed, duplicate", - "id 66, removed" + "id 72, removed" ], - job: [ + "job": [ { - _: "id 271, removed", - log: [ - "id 93, removed", - "id 94, removed" + "_": "id 290, removed", + "queueable_job": [ + "id 99, removed", + "id 100, removed" ], - annotation: [ - "id 93, removed", - "id 94, removed" - ], - queueable_job: [ - "id 93, removed", - "id 94, removed" + "job_version": [ + "id 99, removed", + "id 100, removed" ] }, - "id 272, removed" + "id 291, removed" ], - request: [ + "request": [ { - _: "id 57, removed", - abuse: [ - "id 49, removed", - "id 50, removed" + "_": "id 61, removed", + "abuse": [ + "id 53, removed", + "id 54, removed" ], - message: [ - "id 49, removed", - "id 50, removed" + "message": [ + "id 53, removed", + "id 54, removed" ], - job: [ + "job": [ { - _: "id 269, removed", - log: [ - "id 91, removed", - "id 92, removed" - ], - annotation: [ - "id 91, removed", - "id 92, removed" - ], - queueable_job: [ - "id 91, removed", - "id 92, removed" + "_": "id 288, removed", + "queueable_job": [ + "id 97, removed", + "id 98, removed" + ], + "job_version": [ + "id 97, removed", + "id 98, removed" ] }, - "id 270, removed" + "id 289, removed" ], - build: [ + "build": [ { - _: "id 266, removed", - job: [ - "id 267, removed" + "_": "id 285, removed", + "job": [ + "id 286, removed" ], - repository: [ - "id 110, present", - "id 109, present" + "repository": [ + "id 116, present", + "id 115, present" ], - tag: [ - "id 64, present" + "tag": [ + "id 67, present" ], - branch: [ - "id 136, present" + "branch": [ + "id 67, present" ], - stage: [ - "id 73, removed" + "stage": [ + "id 61, removed" ] }, - "id 268, removed" + "id 287, removed" + ], + "request_payload": [ + "id 53, removed", + "id 54, removed" + ], + "request_raw_configuration": [ + "id 55, removed", + "id 56, removed" + ], + "deleted_job": [ + "id 93, removed", + "id 94, removed" + ], + "deleted_build": [ + "id 101, removed", + "id 102, removed" + ], + "deleted_request_payload": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_request_raw_configuration": [ + "id 55, removed", + "id 56, removed" ] }, - "id 58, removed", + "id 62, removed", { - _: "id 55, removed", - abuse: [ - "id 47, removed", - "id 48, removed" + "_": "id 59, removed", + "abuse": [ + "id 51, removed", + "id 52, removed" ], - message: [ - "id 47, removed", - "id 48, removed" + "message": [ + "id 51, removed", + "id 52, removed" ], - job: [ + "job": [ { - _: "id 264, removed", - log: [ - "id 89, removed", - "id 90, removed" - ], - annotation: [ - "id 89, removed", - "id 90, removed" - ], - queueable_job: [ - "id 89, removed", - "id 90, removed" + "_": "id 283, removed", + "queueable_job": [ + "id 95, removed", + "id 96, removed" + ], + "job_version": [ + "id 95, removed", + "id 96, removed" ] }, - "id 265, removed" + "id 284, removed" ], - build: [ + "build": [ { - _: "id 261, removed", - job: [ - "id 262, removed" + "_": "id 280, removed", + "job": [ + "id 281, removed" ], - repository: [ - "id 108, present", - "id 107, present" + "repository": [ + "id 114, present", + "id 113, present" ], - tag: [ - "id 63, present" + "tag": [ + "id 66, present" ], - branch: [ - "id 135, present" + "branch": [ + "id 66, present" ], - stage: [ - "id 72, removed" + "stage": [ + "id 60, removed" ] }, - "id 263, removed" + "id 282, removed" + ], + "request_payload": [ + "id 51, removed", + "id 52, removed" + ], + "request_raw_configuration": [ + "id 53, removed", + "id 54, removed" + ], + "deleted_job": [ + "id 91, removed", + "id 92, removed" + ], + "deleted_build": [ + "id 99, removed", + "id 100, removed" + ], + "deleted_request_payload": [ + "id 51, removed", + "id 52, removed" + ], + "deleted_request_raw_configuration": [ + "id 53, removed", + "id 54, removed" ] }, - "id 56, removed" + "id 60, removed" ], - abuse: [ - "id 51, removed", - "id 52, removed" + "abuse": [ + "id 55, removed", + "id 56, removed" ], - subscription: [ + "subscription": [ { - _: "id 1, removed", - invoice: [ + "_": "id 1, removed", + "invoice": [ "id 1, removed", "id 2, removed" ] }, { - _: "id 2, removed", - invoice: [ + "_": "id 2, removed", + "invoice": [ "id 3, removed", "id 4, removed" ] } ], - owner_group: [ + "owner_group": [ "id 1, removed", "id 2, removed" ], - trial: [ + "trial": [ { - _: "id 1, removed", - trial_allowance: [ + "_": "id 1, removed", + "trial_allowance": [ "id 1, removed", "id 2, removed" ] }, { - _: "id 2, removed", - trial_allowance: [ + "_": "id 2, removed", + "trial_allowance": [ "id 3, removed", "id 4, removed" ] } ], - trial_allowance: [ + "trial_allowance": [ "id 5, removed", "id 6, removed" ], - broadcast: [ + "broadcast": [ "id 1, removed", "id 2, removed" ], - star: [ + "star": [ "id 1, removed", "id 2, removed" ], - permission: [ + "permission": [ "id 1, removed", "id 2, removed" ], - token: [ - "id 9, removed", - "id 10, removed" + "token": [ + "id 1, removed", + "id 2, removed" ], - email: [ - "id 9, removed", - "id 10, removed" + "email": [ + "id 1, removed", + "id 2, removed" ], - membership: [ + "membership": [ "id 1, removed", "id 2, removed" ], - user_beta_feature: [ + "user_beta_feature": [ "id 1, removed", "id 2, removed" ] diff --git a/spec/support/expected_files/remove_org_with_dependencies/abuse_14-26.json b/spec/support/expected_files/remove_org_with_dependencies/abuse_14-26.json index 0496343..7d7422f 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/abuse_14-26.json +++ b/spec/support/expected_files/remove_org_with_dependencies/abuse_14-26.json @@ -3,53 +3,53 @@ "data": [ { "id": 14, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 15, "level": 14, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 15, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 17, "level": 15, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 16, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 17, "level": 16, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 25, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 29, "level": 25, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 26, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 29, "level": 26, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/abuse_27-47.json b/spec/support/expected_files/remove_org_with_dependencies/abuse_27-31.json similarity index 58% rename from spec/support/expected_files/remove_org_with_dependencies/abuse_27-47.json rename to spec/support/expected_files/remove_org_with_dependencies/abuse_27-31.json index b4be048..a2a6ae9 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/abuse_27-47.json +++ b/spec/support/expected_files/remove_org_with_dependencies/abuse_27-31.json @@ -3,53 +3,53 @@ "data": [ { "id": 27, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 31, "level": 27, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 28, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 31, "level": 28, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 29, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 33, "level": 29, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 30, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 33, "level": 30, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { - "id": 47, - "owner_id": null, + "id": 31, "owner_type": null, - "request_id": 55, - "level": 47, + "owner_id": null, + "request_id": 35, + "level": 31, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/abuse_32-52.json b/spec/support/expected_files/remove_org_with_dependencies/abuse_32-52.json new file mode 100644 index 0000000..a896c9f --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/abuse_32-52.json @@ -0,0 +1,55 @@ +{ + "table_name": "abuses", + "data": [ + { + "id": 32, + "owner_type": null, + "owner_id": null, + "request_id": 35, + "level": 32, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 33, + "owner_type": null, + "owner_id": null, + "request_id": 37, + "level": 33, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 34, + "owner_type": null, + "owner_id": null, + "request_id": 37, + "level": 34, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 51, + "owner_type": null, + "owner_id": null, + "request_id": 59, + "level": 51, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 52, + "owner_type": null, + "owner_id": null, + "request_id": 59, + "level": 52, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/abuse_48-52.json b/spec/support/expected_files/remove_org_with_dependencies/abuse_48-52.json deleted file mode 100644 index e91875b..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/abuse_48-52.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "abuses", - "data": [ - { - "id": 48, - "owner_id": null, - "owner_type": null, - "request_id": 55, - "level": 48, - "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 49, - "owner_id": null, - "owner_type": null, - "request_id": 57, - "level": 49, - "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 50, - "owner_id": null, - "owner_type": null, - "request_id": 57, - "level": 50, - "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 51, - "owner_id": 1, - "owner_type": "Organization", - "request_id": null, - "level": 51, - "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 52, - "owner_id": 1, - "owner_type": "Organization", - "request_id": null, - "level": 52, - "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/abuse_53-56.json b/spec/support/expected_files/remove_org_with_dependencies/abuse_53-56.json new file mode 100644 index 0000000..814e5ad --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/abuse_53-56.json @@ -0,0 +1,45 @@ +{ + "table_name": "abuses", + "data": [ + { + "id": 53, + "owner_type": null, + "owner_id": null, + "request_id": 61, + "level": 53, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 54, + "owner_type": null, + "owner_id": null, + "request_id": 61, + "level": 54, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 55, + "owner_type": "Organization", + "owner_id": 1, + "request_id": null, + "level": 55, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 56, + "owner_type": "Organization", + "owner_id": 1, + "request_id": null, + "level": 56, + "reason": "some text", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/abuse_9-13.json b/spec/support/expected_files/remove_org_with_dependencies/abuse_9-13.json index a41cfaf..d655dae 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/abuse_9-13.json +++ b/spec/support/expected_files/remove_org_with_dependencies/abuse_9-13.json @@ -3,53 +3,53 @@ "data": [ { "id": 9, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 11, "level": 9, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 10, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 11, "level": 10, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 11, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 13, "level": 11, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 12, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 13, "level": 12, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 13, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 15, "level": 13, "reason": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_1-19.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_1-19.json deleted file mode 100644 index 9759e15..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_1-19.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 1, - "job_id": 6, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 2, - "job_id": 6, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 17, - "job_id": 54, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 18, - "job_id": 54, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 19, - "job_id": 56, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_20-24.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_20-24.json deleted file mode 100644 index f148942..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_20-24.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 20, - "job_id": 56, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 21, - "job_id": 61, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 22, - "job_id": 61, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 23, - "job_id": 66, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 24, - "job_id": 66, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_25-29.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_25-29.json deleted file mode 100644 index 3c3eef2..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_25-29.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 25, - "job_id": 71, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 26, - "job_id": 71, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 27, - "job_id": 76, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 28, - "job_id": 76, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 29, - "job_id": 81, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_30-34.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_30-34.json deleted file mode 100644 index 3af3afe..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_30-34.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 30, - "job_id": 81, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 31, - "job_id": 86, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 32, - "job_id": 86, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 33, - "job_id": 93, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 34, - "job_id": 93, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_49-53.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_49-53.json deleted file mode 100644 index e66b1fd..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_49-53.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 49, - "job_id": 141, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 50, - "job_id": 141, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 51, - "job_id": 149, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 52, - "job_id": 149, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 53, - "job_id": 154, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_54-58.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_54-58.json deleted file mode 100644 index 14655d1..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_54-58.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 54, - "job_id": 154, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 55, - "job_id": 159, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 56, - "job_id": 159, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 57, - "job_id": 166, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 58, - "job_id": 166, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_73-91.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_73-91.json deleted file mode 100644 index f8c2144..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_73-91.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 73, - "job_id": 216, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 74, - "job_id": 216, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 89, - "job_id": 264, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 90, - "job_id": 264, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 91, - "job_id": 269, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/annotation_92-94.json b/spec/support/expected_files/remove_org_with_dependencies/annotation_92-94.json deleted file mode 100644 index aa0c9bb..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/annotation_92-94.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 92, - "job_id": 269, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 93, - "job_id": 271, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 94, - "job_id": 271, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/branch_14-19.json b/spec/support/expected_files/remove_org_with_dependencies/branch_14-19.json new file mode 100644 index 0000000..0be3e28 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/branch_14-19.json @@ -0,0 +1,27 @@ +{ + "table_name": "branches", + "data": [ + { + "id": 14, + "repository_id": 1, + "last_build_id": null, + "name": "branch_14", + "exists_on_github": true, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 19, + "repository_id": 1, + "last_build_id": null, + "name": "branch_19", + "exists_on_github": true, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/branch_86-91.json b/spec/support/expected_files/remove_org_with_dependencies/branch_86-91.json deleted file mode 100644 index 18d9af4..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/branch_86-91.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "table_name": "branches", - "data": [ - { - "id": 86, - "repository_id": 1, - "last_build_id": null, - "name": "branch_14", - "exists_on_github": true, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 91, - "repository_id": 1, - "last_build_id": null, - "name": "branch_19", - "exists_on_github": true, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/broadcast_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/broadcast_1-2.json index 58cedbb..203bc97 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/broadcast_1-2.json +++ b/spec/support/expected_files/remove_org_with_dependencies/broadcast_1-2.json @@ -3,24 +3,24 @@ "data": [ { "id": 1, - "recipient_id": 1, "recipient_type": "Organization", + "recipient_id": 1, "kind": null, "message": null, "expired": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "category": null }, { "id": 2, - "recipient_id": 1, "recipient_type": "Organization", + "recipient_id": 1, "kind": null, "message": null, "expired": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "category": null } ] diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_1-58.json b/spec/support/expected_files/remove_org_with_dependencies/build_1-59.json similarity index 53% rename from spec/support/expected_files/remove_org_with_dependencies/build_1-58.json rename to spec/support/expected_files/remove_org_with_dependencies/build_1-59.json index 1d1eb9f..34cf3fe 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/build_1-58.json +++ b/spec/support/expected_files/remove_org_with_dependencies/build_1-59.json @@ -7,20 +7,30 @@ "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 50, + "id": 51, "repository_id": 1, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 51, + "id": 52, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 11, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 53, + "id": 54, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 11, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,38 +173,58 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 58, + "id": 59, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_143-151.json b/spec/support/expected_files/remove_org_with_dependencies/build_145-153.json similarity index 53% rename from spec/support/expected_files/remove_user_with_dependencies/build_143-151.json rename to spec/support/expected_files/remove_org_with_dependencies/build_145-153.json index baa2575..937fa56 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/build_143-151.json +++ b/spec/support/expected_files/remove_org_with_dependencies/build_145-153.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 143, + "id": 145, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 145, + "id": 147, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 146, + "id": 148, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, - "commit_id": 227, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 148, + "id": 150, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, - "commit_id": 227, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 151, + "id": 153, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 31, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_153-210.json b/spec/support/expected_files/remove_org_with_dependencies/build_155-165.json similarity index 52% rename from spec/support/expected_files/remove_user_with_dependencies/build_153-210.json rename to spec/support/expected_files/remove_org_with_dependencies/build_155-165.json index 5625799..10793a2 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/build_153-210.json +++ b/spec/support/expected_files/remove_org_with_dependencies/build_155-165.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 153, + "id": 155, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 31, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 156, + "id": 158, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 33, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 158, + "id": 160, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 33, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 161, + "id": 163, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": 9, - "owner_type": "User", + "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null }, { - "id": 210, + "id": 165, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": 9, - "owner_type": "User", + "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_166-178.json b/spec/support/expected_files/remove_org_with_dependencies/build_166-178.json new file mode 100644 index 0000000..1cad526 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/build_166-178.json @@ -0,0 +1,230 @@ +{ + "table_name": "builds", + "data": [ + { + "id": 166, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 168, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 173, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 175, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 178, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": "Organization", + "owner_id": 1, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_228-282.json b/spec/support/expected_files/remove_org_with_dependencies/build_228-282.json new file mode 100644 index 0000000..f1c9b7c --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/build_228-282.json @@ -0,0 +1,230 @@ +{ + "table_name": "builds", + "data": [ + { + "id": 228, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": "Organization", + "owner_id": 1, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 229, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": "Organization", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 279, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": "Organization", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 280, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 59, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 282, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 59, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_268-268.json b/spec/support/expected_files/remove_org_with_dependencies/build_268-268.json deleted file mode 100644 index 7d7f053..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/build_268-268.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "table_name": "builds", - "data": [ - { - "id": 268, - "repository_id": null, - "number": null, - "started_at": null, - "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, - "commit_id": null, - "request_id": 57, - "state": null, - "duration": null, - "owner_id": null, - "owner_type": null, - "event_type": null, - "previous_state": null, - "pull_request_title": null, - "pull_request_number": null, - "branch": null, - "canceled_at": null, - "cached_matrix_ids": null, - "received_at": null, - "private": null, - "pull_request_id": null, - "branch_id": null, - "tag_id": null, - "sender_id": null, - "sender_type": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_153-158.json b/spec/support/expected_files/remove_org_with_dependencies/build_285-287.json similarity index 51% rename from spec/support/expected_files/remove_repo_with_dependencies/build_153-158.json rename to spec/support/expected_files/remove_org_with_dependencies/build_285-287.json index cab82c0..775c388 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/build_153-158.json +++ b/spec/support/expected_files/remove_org_with_dependencies/build_285-287.json @@ -2,55 +2,35 @@ "table_name": "builds", "data": [ { - "id": 153, + "id": 285, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, - "commit_id": null, - "request_id": 31, - "state": null, - "duration": null, - "owner_id": null, - "owner_type": null, - "event_type": null, - "previous_state": null, - "pull_request_title": null, - "pull_request_number": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, "branch": null, - "canceled_at": null, - "cached_matrix_ids": null, - "received_at": null, - "private": null, - "pull_request_id": null, - "branch_id": null, - "tag_id": null, - "sender_id": null, - "sender_type": null - }, - { - "id": 156, - "repository_id": null, - "number": null, - "started_at": null, - "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 33, + "request_id": 61, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 158, + "id": 287, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 33, + "request_id": 61, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,8 +83,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_60-70.json b/spec/support/expected_files/remove_org_with_dependencies/build_61-71.json similarity index 52% rename from spec/support/expected_files/remove_repo_with_dependencies/build_60-70.json rename to spec/support/expected_files/remove_org_with_dependencies/build_61-71.json index 1caca11..d087c7e 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/build_60-70.json +++ b/spec/support/expected_files/remove_org_with_dependencies/build_61-71.json @@ -2,55 +2,80 @@ "table_name": "builds", "data": [ { - "id": 60, + "id": 61, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 63, + "id": 64, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, - "commit_id": 217, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 65, + "id": 66, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, - "commit_id": 217, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 68, + "id": 69, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 13, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 70, + "id": 71, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 13, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_73-83.json b/spec/support/expected_files/remove_org_with_dependencies/build_74-84.json similarity index 52% rename from spec/support/expected_files/remove_org_with_dependencies/build_73-83.json rename to spec/support/expected_files/remove_org_with_dependencies/build_74-84.json index deb1151..646277f 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/build_73-83.json +++ b/spec/support/expected_files/remove_org_with_dependencies/build_74-84.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 73, + "id": 74, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 15, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 75, + "id": 76, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 15, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 78, + "id": 79, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, - "commit_id": 219, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 80, + "id": 81, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, - "commit_id": 219, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 83, + "id": 84, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 17, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_85-140.json b/spec/support/expected_files/remove_org_with_dependencies/build_86-142.json similarity index 53% rename from spec/support/expected_files/remove_org_with_dependencies/build_85-140.json rename to spec/support/expected_files/remove_org_with_dependencies/build_86-142.json index 82588b1..5ec9ca6 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/build_85-140.json +++ b/spec/support/expected_files/remove_org_with_dependencies/build_86-142.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 85, + "id": 86, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 17, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 88, + "id": 89, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 137, + "id": 139, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 138, + "id": 140, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 29, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 140, + "id": 142, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 29, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/build_config_1-2.json new file mode 100644 index 0000000..d314a1a --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/build_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "build_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/commit_228-228.json b/spec/support/expected_files/remove_org_with_dependencies/commit_18-18.json similarity index 68% rename from spec/support/expected_files/remove_repo_with_dependencies/commit_228-228.json rename to spec/support/expected_files/remove_org_with_dependencies/commit_18-18.json index 5361dc6..884c841 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/commit_228-228.json +++ b/spec/support/expected_files/remove_org_with_dependencies/commit_18-18.json @@ -2,7 +2,7 @@ "table_name": "commits", "data": [ { - "id": 228, + "id": 18, "repository_id": null, "commit": null, "ref": null, @@ -14,10 +14,12 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "branch_id": null, - "tag_id": 33 + "tag_id": 33, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/commit_217-227.json b/spec/support/expected_files/remove_org_with_dependencies/commit_7-17.json similarity index 63% rename from spec/support/expected_files/remove_user_with_dependencies/commit_217-227.json rename to spec/support/expected_files/remove_org_with_dependencies/commit_7-17.json index 29115af..5b3a1f0 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/commit_217-227.json +++ b/spec/support/expected_files/remove_org_with_dependencies/commit_7-17.json @@ -2,7 +2,7 @@ "table_name": "commits", "data": [ { - "id": 217, + "id": 7, "repository_id": null, "commit": null, "ref": null, @@ -14,13 +14,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "branch_id": 86, - "tag_id": null + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 218, + "id": 8, "repository_id": null, "commit": null, "ref": null, @@ -32,13 +34,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "branch_id": 86, - "tag_id": null + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 219, + "id": 9, "repository_id": 1, "commit": null, "ref": null, @@ -50,13 +54,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "branch_id": null, - "tag_id": null + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 220, + "id": 10, "repository_id": 1, "commit": null, "ref": null, @@ -68,13 +74,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "branch_id": null, - "tag_id": null + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 227, + "id": 17, "repository_id": null, "commit": null, "ref": null, @@ -86,10 +94,12 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "branch_id": null, - "tag_id": 33 + "tag_id": 33, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/cron_2-2.json b/spec/support/expected_files/remove_org_with_dependencies/cron_2-2.json new file mode 100644 index 0000000..cf93f03 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/cron_2-2.json @@ -0,0 +1,18 @@ +{ + "table_name": "crons", + "data": [ + { + "id": 2, + "branch_id": 14, + "interval": "test", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "next_run": null, + "last_run": null, + "dont_run_if_recent_build_exists": false, + "org_id": null, + "com_id": null, + "active": true + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/cron_3-4.json b/spec/support/expected_files/remove_org_with_dependencies/cron_3-4.json deleted file mode 100644 index 2bc9524..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/cron_3-4.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "table_name": "crons", - "data": [ - { - "id": 3, - "branch_id": 86, - "interval": "test", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "next_run": null, - "last_run": null, - "dont_run_if_recent_build_exists": false - }, - { - "id": 4, - "branch_id": 86, - "interval": "test", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "next_run": null, - "last_run": null, - "dont_run_if_recent_build_exists": false - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_100-102.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_100-102.json new file mode 100644 index 0000000..978c9cc --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_100-102.json @@ -0,0 +1,140 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 100, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 59, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 101, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 61, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 102, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 61, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_17-21.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_17-21.json new file mode 100644 index 0000000..d42207c --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_17-21.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 17, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 11, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 18, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 11, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 19, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 20, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 21, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 13, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_22-26.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_22-26.json new file mode 100644 index 0000000..7f787ed --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_22-26.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 22, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 13, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 23, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 24, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 25, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 15, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 26, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 15, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_27-47.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_27-47.json new file mode 100644 index 0000000..07fce25 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_27-47.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 27, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 17, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 28, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 17, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 29, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 30, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 47, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 29, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_48-52.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_48-52.json new file mode 100644 index 0000000..22afd8f --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_48-52.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 48, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 29, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 49, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 50, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 51, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 31, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 52, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 31, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_53-57.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_53-57.json new file mode 100644 index 0000000..149a6d1 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_53-57.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 53, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 54, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 55, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 33, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 56, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 33, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 57, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_58-62.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_58-62.json new file mode 100644 index 0000000..9a2dbc3 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_58-62.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 58, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 59, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null + }, + { + "id": 60, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null + }, + { + "id": 61, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 62, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_63-99.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_63-99.json new file mode 100644 index 0000000..c6851ac --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_63-99.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 63, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 64, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 65, + "repository_id": 1, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 66, + "repository_id": 1, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 99, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 59, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_build_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_config_1-2.json new file mode 100644 index 0000000..6e20cc6 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_build_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_build_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_commit_14-14.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_commit_14-14.json new file mode 100644 index 0000000..d03b166 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_commit_14-14.json @@ -0,0 +1,25 @@ +{ + "table_name": "deleted_commits", + "data": [ + { + "id": 14, + "repository_id": 1, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": null, + "tag_id": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_commit_5-13.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_commit_5-13.json new file mode 100644 index 0000000..bccaf2b --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_commit_5-13.json @@ -0,0 +1,105 @@ +{ + "table_name": "deleted_commits", + "data": [ + { + "id": 5, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null + }, + { + "id": 6, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null + }, + { + "id": 11, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": null, + "tag_id": 33, + "org_id": null, + "com_id": null + }, + { + "id": 12, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": null, + "tag_id": 33, + "org_id": null, + "com_id": null + }, + { + "id": 13, + "repository_id": 1, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "branch_id": null, + "tag_id": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_15-19.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_15-19.json new file mode 100644 index 0000000..4a6a472 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_15-19.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 15, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 1, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 16, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 11, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 17, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 11, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 18, + "repository_id": null, + "commit_id": null, + "source_type": "Branch", + "source_id": 14, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 19, + "repository_id": null, + "commit_id": null, + "source_type": "Branch", + "source_id": 14, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_20-24.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_20-24.json new file mode 100644 index 0000000..97d128c --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_20-24.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 20, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 13, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 21, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 13, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 22, + "repository_id": null, + "commit_id": 7, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 23, + "repository_id": null, + "commit_id": 7, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 24, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 15, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_25-29.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_25-29.json new file mode 100644 index 0000000..1f1c345 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_25-29.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 25, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 15, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 26, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 17, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 27, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 17, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 28, + "repository_id": null, + "commit_id": 9, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 29, + "repository_id": null, + "commit_id": 9, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_44-48.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_44-48.json new file mode 100644 index 0000000..380bbc8 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_44-48.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 44, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 89, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 45, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 29, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 46, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 29, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 47, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 48, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_49-53.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_49-53.json new file mode 100644 index 0000000..2fe17bc --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_49-53.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 49, + "repository_id": null, + "commit_id": 17, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 50, + "repository_id": null, + "commit_id": 17, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 51, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 52, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 53, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_54-58.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_54-58.json new file mode 100644 index 0000000..3d2b92a --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_54-58.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 54, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 55, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + }, + { + "id": 56, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + }, + { + "id": 57, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 58, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_59-91.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_59-91.json new file mode 100644 index 0000000..6c64262 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_59-91.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 59, + "repository_id": 1, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 60, + "repository_id": 1, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 75, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 178, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 90, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 91, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 59, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_157-160.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_92-94.json similarity index 59% rename from spec/support/expected_files/remove_repo_with_dependencies/job_157-160.json rename to spec/support/expected_files/remove_org_with_dependencies/deleted_job_92-94.json index f720a86..4e90baa 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_157-160.json +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_92-94.json @@ -1,26 +1,26 @@ { - "table_name": "jobs", + "table_name": "deleted_jobs", "data": [ { - "id": 157, + "id": 92, "repository_id": null, "commit_id": null, - "source_id": 156, - "source_type": "Build", + "source_type": "Request", + "source_id": 59, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": null, "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, - "allow_failure": false, - "owner_id": null, + "allow_failure": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 159, + "id": 93, "repository_id": null, "commit_id": null, - "source_id": 33, "source_type": "Request", + "source_id": 61, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": null, "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, - "allow_failure": false, - "owner_id": null, + "allow_failure": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 160, + "id": 94, "repository_id": null, "commit_id": null, - "source_id": 33, "source_type": "Request", + "source_id": 61, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": null, "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, - "allow_failure": false, - "owner_id": null, + "allow_failure": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,7 +96,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_job_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_config_1-2.json new file mode 100644 index 0000000..49f6d54 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_job_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_job_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_pull_request_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_pull_request_1-2.json new file mode 100644 index 0000000..e274117 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_pull_request_1-2.json @@ -0,0 +1,43 @@ +{ + "table_name": "deleted_pull_requests", + "data": [ + { + "id": 1, + "repository_id": 1, + "number": null, + "title": null, + "state": null, + "head_repo_github_id": null, + "head_repo_slug": null, + "head_ref": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null + }, + { + "id": 2, + "repository_id": 1, + "number": null, + "title": null, + "state": null, + "head_repo_github_id": null, + "head_repo_slug": null, + "head_ref": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_14-26.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_14-26.json new file mode 100644 index 0000000..a77aa4c --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_14-26.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 14, + "repository_id": null, + "commit_id": 9, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 23, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 24, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 25, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 26, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_27-31.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_27-31.json new file mode 100644 index 0000000..10a56be --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_27-31.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 27, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 28, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 29, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 30, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 31, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_56-58.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_32-34.json similarity index 55% rename from spec/support/expected_files/remove_org_with_dependencies/request_56-58.json rename to spec/support/expected_files/remove_org_with_dependencies/deleted_request_32-34.json index 130db6e..1898e80 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/request_56-58.json +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_32-34.json @@ -1,89 +1,101 @@ { - "table_name": "requests", + "table_name": "deleted_requests", "data": [ { - "id": 56, + "id": 32, "repository_id": null, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 1, - "sender_type": "Organization" + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null }, { - "id": 57, - "repository_id": null, + "id": 33, + "repository_id": 1, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": 1, - "owner_type": "Organization", + "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { - "id": 58, - "repository_id": null, + "id": 34, + "repository_id": 1, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": 1, - "owner_type": "Organization", + "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_9-13.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_9-13.json new file mode 100644 index 0000000..df1aa24 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_9-13.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 9, + "repository_id": null, + "commit_id": 7, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 10, + "repository_id": null, + "commit_id": 7, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 11, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 12, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 13, + "repository_id": null, + "commit_id": 9, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_config_1-2.json new file mode 100644 index 0000000..f441c10 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_14-26.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_14-26.json new file mode 100644 index 0000000..f6f2cb4 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 14, + "request_id": 15, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 15, + "request_id": 17, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 16, + "request_id": 17, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 25, + "request_id": 29, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 26, + "request_id": 29, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_27-31.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_27-31.json new file mode 100644 index 0000000..aead945 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 27, + "request_id": 31, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 28, + "request_id": 31, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 29, + "request_id": 33, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 30, + "request_id": 33, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 31, + "request_id": 35, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_32-52.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_32-52.json new file mode 100644 index 0000000..b9ed4de --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_32-52.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 32, + "request_id": 35, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 33, + "request_id": 37, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 34, + "request_id": 37, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 51, + "request_id": 59, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 52, + "request_id": 59, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_53-54.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_53-54.json new file mode 100644 index 0000000..ad4fc35 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_53-54.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 53, + "request_id": 61, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 54, + "request_id": 61, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_9-13.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_9-13.json new file mode 100644 index 0000000..7a26d0a --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_payload_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 9, + "request_id": 11, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 10, + "request_id": 11, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 11, + "request_id": 13, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 12, + "request_id": 13, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 13, + "request_id": 15, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_config_1-2.json new file mode 100644 index 0000000..410650c --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_config_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "deleted_request_raw_configs", + "data": [ + { + "id": 1, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + }, + { + "id": 2, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_14-26.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_14-26.json new file mode 100644 index 0000000..564a58f --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 14, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 15, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 16, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 25, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 26, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_27-31.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_27-31.json new file mode 100644 index 0000000..8a2c909 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 27, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 28, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 29, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 30, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 31, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_32-36.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_32-36.json new file mode 100644 index 0000000..cbf91f2 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_32-36.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 32, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 33, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 34, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 35, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 36, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_53-56.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_53-56.json new file mode 100644 index 0000000..cac04de --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_53-56.json @@ -0,0 +1,37 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 53, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 54, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 55, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 56, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_9-13.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_9-13.json new file mode 100644 index 0000000..d0c3e3a --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_raw_configuration_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 9, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 10, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 11, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 12, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 13, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_request_yaml_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_yaml_config_1-2.json new file mode 100644 index 0000000..c35bead --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_request_yaml_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_yaml_configs", + "data": [ + { + "id": 1, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_ssl_key_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_ssl_key_1-2.json new file mode 100644 index 0000000..6635139 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_ssl_key_1-2.json @@ -0,0 +1,25 @@ +{ + "table_name": "deleted_ssl_keys", + "data": [ + { + "id": 1, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_stage_1-4.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_stage_1-4.json new file mode 100644 index 0000000..fb1f496 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_stage_1-4.json @@ -0,0 +1,49 @@ +{ + "table_name": "deleted_stages", + "data": [ + { + "id": 1, + "build_id": 1, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 2, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 3, + "build_id": 178, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 4, + "build_id": 229, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/deleted_tag_3-4.json b/spec/support/expected_files/remove_org_with_dependencies/deleted_tag_3-4.json new file mode 100644 index 0000000..e3cb7a8 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/deleted_tag_3-4.json @@ -0,0 +1,27 @@ +{ + "table_name": "deleted_tags", + "data": [ + { + "id": 3, + "repository_id": 1, + "name": null, + "last_build_id": null, + "exists_on_github": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 4, + "repository_id": 1, + "name": null, + "last_build_id": null, + "exists_on_github": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/email_unsubscribe_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/email_unsubscribe_1-2.json new file mode 100644 index 0000000..15d58c0 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/email_unsubscribe_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "email_unsubscribes", + "data": [ + { + "id": 1, + "user_id": null, + "repository_id": 1, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + }, + { + "id": 2, + "user_id": null, + "repository_id": 1, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/invoice_1-4.json b/spec/support/expected_files/remove_org_with_dependencies/invoice_1-4.json index b1963ac..38eebe5 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/invoice_1-4.json +++ b/spec/support/expected_files/remove_org_with_dependencies/invoice_1-4.json @@ -4,8 +4,8 @@ { "id": 1, "object": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "subscription_id": 1, "invoice_id": null, "stripe_id": null, @@ -14,8 +14,8 @@ { "id": 2, "object": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "subscription_id": 1, "invoice_id": null, "stripe_id": null, @@ -24,8 +24,8 @@ { "id": 3, "object": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "subscription_id": 2, "invoice_id": null, "stripe_id": null, @@ -34,8 +34,8 @@ { "id": 4, "object": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "subscription_id": 2, "invoice_id": null, "stripe_id": null, diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_149-155.json b/spec/support/expected_files/remove_org_with_dependencies/job_146-154.json similarity index 64% rename from spec/support/expected_files/remove_user_with_dependencies/job_149-155.json rename to spec/support/expected_files/remove_org_with_dependencies/job_146-154.json index a53d3a0..d8e13c4 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_149-155.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_146-154.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 149, + "id": 146, "repository_id": null, - "commit_id": 227, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 145, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 150, + "id": 149, "repository_id": null, - "commit_id": 227, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 148, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 152, + "id": 151, "repository_id": null, - "commit_id": null, - "source_id": 151, - "source_type": "Build", + "commit_id": 17, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 154, + "id": 152, "repository_id": null, - "commit_id": null, - "source_id": 31, - "source_type": "Request", + "commit_id": 17, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 155, + "id": 154, "repository_id": null, "commit_id": null, - "source_id": 31, - "source_type": "Request", + "source_type": "Build", + "source_id": 153, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_262-269.json b/spec/support/expected_files/remove_org_with_dependencies/job_156-162.json similarity index 64% rename from spec/support/expected_files/remove_user_with_dependencies/job_262-269.json rename to spec/support/expected_files/remove_org_with_dependencies/job_156-162.json index f433a03..f9e0283 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_262-269.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_156-162.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 262, + "id": 156, "repository_id": null, "commit_id": null, - "source_id": 261, - "source_type": "Build", + "source_type": "Request", + "source_id": 31, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 264, + "id": 157, "repository_id": null, "commit_id": null, - "source_id": 55, "source_type": "Request", + "source_id": 31, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 265, + "id": 159, "repository_id": null, "commit_id": null, - "source_id": 55, - "source_type": "Request", + "source_type": "Build", + "source_id": 158, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 267, + "id": 161, "repository_id": null, "commit_id": null, - "source_id": 266, - "source_type": "Build", + "source_type": "Request", + "source_id": 33, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 269, + "id": 162, "repository_id": null, "commit_id": null, - "source_id": 57, "source_type": "Request", + "source_id": 33, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_164-171.json b/spec/support/expected_files/remove_org_with_dependencies/job_164-171.json new file mode 100644 index 0000000..8923046 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_164-171.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 164, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 163, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 167, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 166, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 169, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 170, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 171, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_157-163.json b/spec/support/expected_files/remove_org_with_dependencies/job_172-179.json similarity index 66% rename from spec/support/expected_files/remove_org_with_dependencies/job_157-163.json rename to spec/support/expected_files/remove_org_with_dependencies/job_172-179.json index 64ec3e3..1f347d7 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_157-163.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_172-179.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 157, + "id": 172, "repository_id": null, "commit_id": null, - "source_id": 156, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null }, { - "id": 159, + "id": 174, "repository_id": null, "commit_id": null, - "source_id": 33, - "source_type": "Request", + "source_type": "Build", + "source_id": 173, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 160, + "id": 176, "repository_id": null, "commit_id": null, - "source_id": 33, "source_type": "Request", + "source_id": 37, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 162, + "id": 177, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 37, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 52 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 163, + "id": 179, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 52 + "stage_id": 38, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_164-212.json b/spec/support/expected_files/remove_org_with_dependencies/job_180-184.json similarity index 66% rename from spec/support/expected_files/remove_user_with_dependencies/job_164-212.json rename to spec/support/expected_files/remove_org_with_dependencies/job_180-184.json index f1e39fc..f501eea 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_164-212.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_180-184.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 164, + "id": 180, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 53 + "stage_id": 38, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 165, + "id": 181, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 53 + "stage_id": 39, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 166, + "id": 182, "repository_id": null, "commit_id": null, - "source_id": 161, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 39, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 167, + "id": 183, "repository_id": null, "commit_id": null, - "source_id": 161, "source_type": "Build", + "source_id": 178, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 212, + "id": 184, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Build", + "source_id": 178, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 62 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_213-217.json b/spec/support/expected_files/remove_org_with_dependencies/job_185-233.json similarity index 65% rename from spec/support/expected_files/remove_user_with_dependencies/job_213-217.json rename to spec/support/expected_files/remove_org_with_dependencies/job_185-233.json index a0d8575..8864911 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_213-217.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_185-233.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 213, + "id": 185, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Build", + "source_id": 178, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 62 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 214, + "id": 230, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 63 + "stage_id": 49, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 215, + "id": 231, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 63 + "stage_id": 49, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 216, + "id": 232, "repository_id": null, "commit_id": null, - "source_id": 211, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 50, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 217, + "id": 233, "repository_id": null, "commit_id": null, - "source_id": 211, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 50, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_2-6.json b/spec/support/expected_files/remove_org_with_dependencies/job_2-6.json index c8d418e..9e54cf4 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_2-6.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_2-6.json @@ -5,22 +5,22 @@ "id": 2, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 20 + "stage_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 3, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 20 + "stage_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 4, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 21 + "stage_id": 2, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 5, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 21 + "stage_id": 2, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 6, "repository_id": null, "commit_id": null, - "source_id": 1, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_234-283.json b/spec/support/expected_files/remove_org_with_dependencies/job_234-283.json new file mode 100644 index 0000000..f086c48 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_234-283.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 234, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 235, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 236, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 281, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 280, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 283, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 59, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_270-272.json b/spec/support/expected_files/remove_org_with_dependencies/job_270-272.json deleted file mode 100644 index 172a265..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/job_270-272.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "table_name": "jobs", - "data": [ - { - "id": 270, - "repository_id": null, - "commit_id": null, - "source_id": 57, - "source_type": "Request", - "queue": null, - "type": null, - "state": null, - "number": null, - "config": null, - "worker": null, - "started_at": null, - "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "tags": null, - "allow_failure": false, - "owner_id": null, - "owner_type": null, - "result": null, - "queued_at": null, - "canceled_at": null, - "received_at": null, - "debug_options": null, - "private": null, - "stage_number": null, - "stage_id": null - }, - { - "id": 271, - "repository_id": null, - "commit_id": null, - "source_id": null, - "source_type": null, - "queue": null, - "type": null, - "state": null, - "number": null, - "config": null, - "worker": null, - "started_at": null, - "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "tags": null, - "allow_failure": false, - "owner_id": 1, - "owner_type": "Organization", - "result": null, - "queued_at": null, - "canceled_at": null, - "received_at": null, - "debug_options": null, - "private": null, - "stage_number": null, - "stage_id": null - }, - { - "id": 272, - "repository_id": null, - "commit_id": null, - "source_id": null, - "source_type": null, - "queue": null, - "type": null, - "state": null, - "number": null, - "config": null, - "worker": null, - "started_at": null, - "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "tags": null, - "allow_failure": false, - "owner_id": 1, - "owner_type": "Organization", - "result": null, - "queued_at": null, - "canceled_at": null, - "received_at": null, - "debug_options": null, - "private": null, - "stage_number": null, - "stage_id": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_284-290.json b/spec/support/expected_files/remove_org_with_dependencies/job_284-290.json new file mode 100644 index 0000000..90a447d --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_284-290.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 284, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 59, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 286, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 285, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 288, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 61, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 289, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 61, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 290, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": "Organization", + "owner_id": 1, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_291-291.json b/spec/support/expected_files/remove_org_with_dependencies/job_291-291.json new file mode 100644 index 0000000..1728f64 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_291-291.json @@ -0,0 +1,39 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 291, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "tags": null, + "allow_failure": false, + "owner_type": "Organization", + "owner_id": 1, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_57-64.json b/spec/support/expected_files/remove_org_with_dependencies/job_57-63.json similarity index 64% rename from spec/support/expected_files/remove_repo_with_dependencies/job_57-64.json rename to spec/support/expected_files/remove_org_with_dependencies/job_57-63.json index 30ea7dd..8a32056 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_57-64.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_57-63.json @@ -5,22 +5,22 @@ "id": 57, "repository_id": 1, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 59, - "repository_id": null, + "id": 58, + "repository_id": 1, "commit_id": null, - "source_id": 58, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 61, + "id": 60, "repository_id": null, "commit_id": null, - "source_id": 86, - "source_type": "Branch", + "source_type": "Build", + "source_id": 59, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 62, "repository_id": null, "commit_id": null, - "source_id": 86, "source_type": "Branch", + "source_id": 14, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 64, + "id": 63, "repository_id": null, "commit_id": null, - "source_id": 63, - "source_type": "Build", + "source_type": "Branch", + "source_id": 14, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_66-72.json b/spec/support/expected_files/remove_org_with_dependencies/job_65-72.json similarity index 65% rename from spec/support/expected_files/remove_org_with_dependencies/job_66-72.json rename to spec/support/expected_files/remove_org_with_dependencies/job_65-72.json index 2ebbf08..59ba20c 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_66-72.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_65-72.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 66, + "id": 65, "repository_id": null, - "commit_id": 217, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 64, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 67, "repository_id": null, - "commit_id": 217, - "source_id": null, + "commit_id": 7, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 69, + "id": 68, "repository_id": null, - "commit_id": null, - "source_id": 68, - "source_type": "Build", + "commit_id": 7, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 71, + "id": 70, "repository_id": null, "commit_id": null, - "source_id": 13, - "source_type": "Request", + "source_type": "Build", + "source_id": 69, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 72, "repository_id": null, "commit_id": null, - "source_id": 13, "source_type": "Request", + "source_id": 13, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_7-56.json b/spec/support/expected_files/remove_org_with_dependencies/job_7-56.json index ae8161e..ee10218 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_7-56.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_7-56.json @@ -5,22 +5,22 @@ "id": 7, "repository_id": null, "commit_id": null, - "source_id": 1, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 52, + "id": 8, "repository_id": null, "commit_id": null, - "source_id": 51, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 54, + "id": 53, "repository_id": null, "commit_id": null, - "source_id": 11, - "source_type": "Request", + "source_type": "Build", + "source_id": 52, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 55, "repository_id": null, "commit_id": null, - "source_id": 11, "source_type": "Request", + "source_id": 11, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 56, - "repository_id": 1, + "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 11, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_74-81.json b/spec/support/expected_files/remove_org_with_dependencies/job_73-80.json similarity index 65% rename from spec/support/expected_files/remove_user_with_dependencies/job_74-81.json rename to spec/support/expected_files/remove_org_with_dependencies/job_73-80.json index 2d95aad..0eefb65 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_74-81.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_73-80.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 74, + "id": 73, "repository_id": null, "commit_id": null, - "source_id": 73, - "source_type": "Build", + "source_type": "Request", + "source_id": 13, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 76, + "id": 75, "repository_id": null, "commit_id": null, - "source_id": 15, - "source_type": "Request", + "source_type": "Build", + "source_id": 74, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 77, "repository_id": null, "commit_id": null, - "source_id": 15, "source_type": "Request", + "source_id": 15, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 79, + "id": 78, "repository_id": null, "commit_id": null, - "source_id": 78, - "source_type": "Build", + "source_type": "Request", + "source_id": 15, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 81, + "id": 80, "repository_id": null, - "commit_id": 219, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 79, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_82-89.json b/spec/support/expected_files/remove_org_with_dependencies/job_82-88.json similarity index 66% rename from spec/support/expected_files/remove_repo_with_dependencies/job_82-89.json rename to spec/support/expected_files/remove_org_with_dependencies/job_82-88.json index c473843..e3b1fa2 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_82-89.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_82-88.json @@ -4,23 +4,23 @@ { "id": 82, "repository_id": null, - "commit_id": 219, - "source_id": null, + "commit_id": 9, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 84, + "id": 83, "repository_id": null, - "commit_id": null, - "source_id": 83, - "source_type": "Build", + "commit_id": 9, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 86, + "id": 85, "repository_id": null, "commit_id": null, - "source_id": 17, - "source_type": "Request", + "source_type": "Build", + "source_id": 84, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 87, "repository_id": null, "commit_id": null, - "source_id": 17, "source_type": "Request", + "source_id": 17, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 89, + "id": 88, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 17, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 37 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_90-94.json b/spec/support/expected_files/remove_org_with_dependencies/job_90-94.json index f6f2570..dc04981 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_90-94.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_90-94.json @@ -5,22 +5,22 @@ "id": 90, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 37 + "stage_id": 19, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 91, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 38 + "stage_id": 19, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 92, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 38 + "stage_id": 20, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 93, "repository_id": null, "commit_id": null, - "source_id": 88, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 20, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 94, "repository_id": null, "commit_id": null, - "source_id": 88, "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_139-147.json b/spec/support/expected_files/remove_org_with_dependencies/job_95-144.json similarity index 66% rename from spec/support/expected_files/remove_repo_with_dependencies/job_139-147.json rename to spec/support/expected_files/remove_org_with_dependencies/job_95-144.json index 3a5e23e..6635e8a 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_139-147.json +++ b/spec/support/expected_files/remove_org_with_dependencies/job_95-144.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 139, + "id": 95, "repository_id": null, "commit_id": null, - "source_id": 138, "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 141, + "id": 96, "repository_id": null, "commit_id": null, - "source_id": 29, - "source_type": "Request", + "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 142, + "id": 141, "repository_id": null, "commit_id": null, - "source_id": 29, - "source_type": "Request", + "source_type": "Build", + "source_id": 140, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 144, + "id": 143, "repository_id": null, "commit_id": null, - "source_id": 143, - "source_type": "Build", + "source_type": "Request", + "source_id": 29, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 147, + "id": 144, "repository_id": null, "commit_id": null, - "source_id": 146, - "source_type": "Build", + "source_type": "Request", + "source_id": 29, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/job_config_1-2.json new file mode 100644 index 0000000..381267e --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "job_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_1-19.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_1-19.json new file mode 100644 index 0000000..0767a0c --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_1-19.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 1, + "job_id": 6, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 2, + "job_id": 6, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 17, + "job_id": 55, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 18, + "job_id": 55, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 19, + "job_id": 57, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_20-24.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_20-24.json new file mode 100644 index 0000000..63ae90a --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_20-24.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 20, + "job_id": 57, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 21, + "job_id": 62, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 22, + "job_id": 62, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 23, + "job_id": 67, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 24, + "job_id": 67, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_25-29.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_25-29.json new file mode 100644 index 0000000..1dafddf --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_25-29.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 25, + "job_id": 72, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 26, + "job_id": 72, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 27, + "job_id": 77, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 28, + "job_id": 77, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 29, + "job_id": 82, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_30-34.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_30-34.json new file mode 100644 index 0000000..a46e855 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_30-34.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 30, + "job_id": 82, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 31, + "job_id": 87, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 32, + "job_id": 87, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 33, + "job_id": 94, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 34, + "job_id": 94, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_49-53.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_49-53.json new file mode 100644 index 0000000..57512dd --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_49-53.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 49, + "job_id": 143, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 50, + "job_id": 143, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 51, + "job_id": 151, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 52, + "job_id": 151, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 53, + "job_id": 156, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_54-58.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_54-58.json new file mode 100644 index 0000000..5aa4281 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_54-58.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 54, + "job_id": 156, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 55, + "job_id": 161, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 56, + "job_id": 161, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 57, + "job_id": 169, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 58, + "job_id": 169, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_59-63.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_59-63.json new file mode 100644 index 0000000..c98e66d --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_59-63.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 59, + "job_id": 171, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 60, + "job_id": 171, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 61, + "job_id": 176, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 62, + "job_id": 176, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 63, + "job_id": 183, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_64-96.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_64-96.json new file mode 100644 index 0000000..edbbdbb --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_64-96.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 64, + "job_id": 183, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 79, + "job_id": 234, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 80, + "job_id": 234, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 95, + "job_id": 283, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 96, + "job_id": 283, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_version_97-100.json b/spec/support/expected_files/remove_org_with_dependencies/job_version_97-100.json new file mode 100644 index 0000000..c2ec758 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/job_version_97-100.json @@ -0,0 +1,53 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 97, + "job_id": 288, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 98, + "job_id": 288, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 99, + "job_id": 290, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 100, + "job_id": 290, + "number": null, + "state": null, + "created_at": "2021-09-01 15:06:56 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_1-19.json b/spec/support/expected_files/remove_org_with_dependencies/log_1-19.json deleted file mode 100644 index 9a6da64..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_1-19.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 1, - "job_id": 6, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 2, - "job_id": 6, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 17, - "job_id": 54, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 18, - "job_id": 54, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 19, - "job_id": 56, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_20-24.json b/spec/support/expected_files/remove_org_with_dependencies/log_20-24.json deleted file mode 100644 index 0d38ae6..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_20-24.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 20, - "job_id": 56, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 21, - "job_id": 61, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 22, - "job_id": 61, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 23, - "job_id": 66, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 24, - "job_id": 66, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_25-29.json b/spec/support/expected_files/remove_org_with_dependencies/log_25-29.json deleted file mode 100644 index 292ae11..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_25-29.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 25, - "job_id": 71, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 26, - "job_id": 71, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 27, - "job_id": 76, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 28, - "job_id": 76, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 29, - "job_id": 81, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_30-34.json b/spec/support/expected_files/remove_org_with_dependencies/log_30-34.json deleted file mode 100644 index d0d1e6f..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_30-34.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 30, - "job_id": 81, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 31, - "job_id": 86, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 32, - "job_id": 86, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 33, - "job_id": 93, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 34, - "job_id": 93, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_49-53.json b/spec/support/expected_files/remove_org_with_dependencies/log_49-53.json deleted file mode 100644 index 4c44d28..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_49-53.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 49, - "job_id": 141, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 50, - "job_id": 141, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 51, - "job_id": 149, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 52, - "job_id": 149, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 53, - "job_id": 154, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_54-58.json b/spec/support/expected_files/remove_org_with_dependencies/log_54-58.json deleted file mode 100644 index 0dc4c87..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_54-58.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 54, - "job_id": 154, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 55, - "job_id": 159, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 56, - "job_id": 159, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 57, - "job_id": 166, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 58, - "job_id": 166, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_73-91.json b/spec/support/expected_files/remove_org_with_dependencies/log_73-91.json deleted file mode 100644 index acbaed6..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_73-91.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 73, - "job_id": 216, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 74, - "job_id": 216, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 89, - "job_id": 264, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 90, - "job_id": 264, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 91, - "job_id": 269, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/log_92-94.json b/spec/support/expected_files/remove_org_with_dependencies/log_92-94.json deleted file mode 100644 index ea984f0..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/log_92-94.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 92, - "job_id": 269, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 93, - "job_id": 271, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 94, - "job_id": 271, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/message_14-26.json b/spec/support/expected_files/remove_org_with_dependencies/message_14-26.json index 5222427..0052f6b 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/message_14-26.json +++ b/spec/support/expected_files/remove_org_with_dependencies/message_14-26.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 15, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 16, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 25, @@ -42,8 +51,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 26, @@ -53,8 +65,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/message_27-47.json b/spec/support/expected_files/remove_org_with_dependencies/message_27-31.json similarity index 51% rename from spec/support/expected_files/remove_user_with_dependencies/message_27-47.json rename to spec/support/expected_files/remove_org_with_dependencies/message_27-31.json index b0834d0..086bbcd 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/message_27-47.json +++ b/spec/support/expected_files/remove_org_with_dependencies/message_27-31.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 28, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 29, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 30, @@ -42,19 +51,25 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { - "id": 47, - "subject_id": 55, + "id": 31, + "subject_id": 35, "subject_type": "Request", "level": null, "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/message_32-52.json b/spec/support/expected_files/remove_org_with_dependencies/message_32-52.json new file mode 100644 index 0000000..9ffd9e3 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/message_32-52.json @@ -0,0 +1,75 @@ +{ + "table_name": "messages", + "data": [ + { + "id": 32, + "subject_id": 35, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 33, + "subject_id": 37, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 34, + "subject_id": 37, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 51, + "subject_id": 59, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 52, + "subject_id": 59, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/message_48-50.json b/spec/support/expected_files/remove_org_with_dependencies/message_48-50.json deleted file mode 100644 index 211acaa..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/message_48-50.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "table_name": "messages", - "data": [ - { - "id": 48, - "subject_id": 55, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 49, - "subject_id": 57, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 50, - "subject_id": 57, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/message_53-54.json b/spec/support/expected_files/remove_org_with_dependencies/message_53-54.json new file mode 100644 index 0000000..292407e --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/message_53-54.json @@ -0,0 +1,33 @@ +{ + "table_name": "messages", + "data": [ + { + "id": 53, + "subject_id": 61, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 54, + "subject_id": 61, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/message_9-13.json b/spec/support/expected_files/remove_org_with_dependencies/message_9-13.json index 39aabb9..6acd37e 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/message_9-13.json +++ b/spec/support/expected_files/remove_org_with_dependencies/message_9-13.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 10, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 11, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 12, @@ -42,8 +51,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null }, { "id": 13, @@ -53,8 +65,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_1.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_1.json index 2d2b64a..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_1.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_1.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 20 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 21 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 18 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 19 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 1 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_10.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_10.json index 101c4f1..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_10.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_10.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 56 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 32 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 106 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 143, - "related_id": 59 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 58 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_11.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_11.json index b3dbda1..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_11.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_11.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 34 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 107 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 146, - "related_id": 61 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 60 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 35 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_12.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_12.json index b73dca0..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_12.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_12.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 108 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 151, - "related_id": 63 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 62 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 36 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 109 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_13.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_13.json index b0ab2c0..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_13.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_13.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 156, - "related_id": 65 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 64 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 37 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 110 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 161, - "related_id": 85 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_14.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_14.json index a8b087e..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_14.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_14.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 161, - "related_id": 86 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 83 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 84 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 39 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 44 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_15.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_15.json index 90f0626..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_15.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_15.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 115 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 120 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 211, - "related_id": 105 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 211, - "related_id": 106 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 103 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_16.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_16.json index 98a736a..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_16.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_16.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 104 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 51 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 56 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 127 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 132 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_17.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_17.json index d2e2aa9..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_17.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_17.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 261, - "related_id": 108 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 261, - "related_id": 107 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 261, - "related_id": 63 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 261, - "related_id": 135 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 266, - "related_id": 110 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_18.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_18.json index 803d6f6..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_18.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_18.json @@ -1,23 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 266, - "related_id": 109 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 266, - "related_id": 64 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 266, - "related_id": 136 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_19.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_19.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_19.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_2.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_2.json index be7794f..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_2.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_2.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 6 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 77 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 82 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 51, - "related_id": 23 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 22 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_20.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_20.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_20.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_21.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_21.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_21.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_3.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_3.json index 9187a39..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_3.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_3.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 13 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 85 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 58, - "related_id": 25 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 24 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 14 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_4.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_4.json index 0369249..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_4.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_4.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 87 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 63, - "related_id": 27 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 26 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 15 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 88 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_5.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_5.json index c056257..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_5.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_5.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 68, - "related_id": 29 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 28 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 16 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 89 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 73, - "related_id": 31 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_6.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_6.json index 2b3a562..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_6.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_6.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 30 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 17 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 90 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 78, - "related_id": 33 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 32 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_7.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_7.json index dda4205..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_7.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_7.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 18 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 92 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 83, - "related_id": 35 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 34 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 19 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_8.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_8.json index 33d14e6..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_8.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_8.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 93 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 88, - "related_id": 54 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 88, - "related_id": 55 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 52 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 53 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_9.json b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_9.json index 2cff1ec..83fb8fc 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_9.json +++ b/spec/support/expected_files/remove_org_with_dependencies/nullified_relationships/build_9.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 20 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 25 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 98 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 103 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 138, - "related_id": 57 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/organization_1-1.json b/spec/support/expected_files/remove_org_with_dependencies/organization_1-1.json index 938ebdf..11f050c 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/organization_1-1.json +++ b/spec/support/expected_files/remove_org_with_dependencies/organization_1-1.json @@ -6,14 +6,23 @@ "name": null, "login": null, "github_id": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "avatar_url": null, "location": null, "email": null, "company": null, "homepage": null, - "billing_admin_only": null + "billing_admin_only": null, + "org_id": null, + "com_id": null, + "migrating": null, + "migrated_at": null, + "preferences": { + }, + "beta_migration_request_id": null, + "vcs_type": "GithubOrganization", + "vcs_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/owner_group_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/owner_group_1-2.json index a7e3a1e..a9f23de 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/owner_group_1-2.json +++ b/spec/support/expected_files/remove_org_with_dependencies/owner_group_1-2.json @@ -4,18 +4,18 @@ { "id": 1, "uuid": null, - "owner_id": 1, "owner_type": "Organization", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "owner_id": 1, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 2, "uuid": null, - "owner_id": 1, "owner_type": "Organization", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "owner_id": 1, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/permission_3-4.json b/spec/support/expected_files/remove_org_with_dependencies/permission_3-4.json index 56c2d35..52eb838 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/permission_3-4.json +++ b/spec/support/expected_files/remove_org_with_dependencies/permission_3-4.json @@ -7,7 +7,9 @@ "repository_id": 1, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null }, { "id": 4, @@ -15,7 +17,9 @@ "repository_id": 1, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/pull_request_3-6.json b/spec/support/expected_files/remove_org_with_dependencies/pull_request_3-6.json index d9b0ab9..14d9bd3 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/pull_request_3-6.json +++ b/spec/support/expected_files/remove_org_with_dependencies/pull_request_3-6.json @@ -10,8 +10,15 @@ "head_repo_github_id": null, "head_repo_slug": null, "head_ref": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null }, { "id": 6, @@ -22,8 +29,15 @@ "head_repo_github_id": null, "head_repo_slug": null, "head_ref": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_1-19.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_1-19.json index 858cbb5..4e7316c 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_1-19.json +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_1-19.json @@ -11,15 +11,15 @@ }, { "id": 17, - "job_id": 54 + "job_id": 55 }, { "id": 18, - "job_id": 54 + "job_id": 55 }, { "id": 19, - "job_id": 56 + "job_id": 57 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_20-24.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_20-24.json index 5274e58..ed9d9e2 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_20-24.json +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_20-24.json @@ -3,23 +3,23 @@ "data": [ { "id": 20, - "job_id": 56 + "job_id": 57 }, { "id": 21, - "job_id": 61 + "job_id": 62 }, { "id": 22, - "job_id": 61 + "job_id": 62 }, { "id": 23, - "job_id": 66 + "job_id": 67 }, { "id": 24, - "job_id": 66 + "job_id": 67 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_25-29.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_25-29.json index 1fc2d88..af6eea8 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_25-29.json +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_25-29.json @@ -3,23 +3,23 @@ "data": [ { "id": 25, - "job_id": 71 + "job_id": 72 }, { "id": 26, - "job_id": 71 + "job_id": 72 }, { "id": 27, - "job_id": 76 + "job_id": 77 }, { "id": 28, - "job_id": 76 + "job_id": 77 }, { "id": 29, - "job_id": 81 + "job_id": 82 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_30-34.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_30-34.json index 38ef88d..a73a124 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_30-34.json +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_30-34.json @@ -3,23 +3,23 @@ "data": [ { "id": 30, - "job_id": 81 + "job_id": 82 }, { "id": 31, - "job_id": 86 + "job_id": 87 }, { "id": 32, - "job_id": 86 + "job_id": 87 }, { "id": 33, - "job_id": 93 + "job_id": 94 }, { "id": 34, - "job_id": 93 + "job_id": 94 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_49-53.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_49-53.json index 98c6643..2a5b437 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_49-53.json +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_49-53.json @@ -3,23 +3,23 @@ "data": [ { "id": 49, - "job_id": 141 + "job_id": 143 }, { "id": 50, - "job_id": 141 + "job_id": 143 }, { "id": 51, - "job_id": 149 + "job_id": 151 }, { "id": 52, - "job_id": 149 + "job_id": 151 }, { "id": 53, - "job_id": 154 + "job_id": 156 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_54-58.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_54-58.json index fdf0f32..318b4b8 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_54-58.json +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_54-58.json @@ -3,23 +3,23 @@ "data": [ { "id": 54, - "job_id": 154 + "job_id": 156 }, { "id": 55, - "job_id": 159 + "job_id": 161 }, { "id": 56, - "job_id": 159 + "job_id": 161 }, { "id": 57, - "job_id": 166 + "job_id": 169 }, { "id": 58, - "job_id": 166 + "job_id": 169 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_59-63.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_59-63.json new file mode 100644 index 0000000..b19fdd8 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_59-63.json @@ -0,0 +1,25 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 59, + "job_id": 171 + }, + { + "id": 60, + "job_id": 171 + }, + { + "id": 61, + "job_id": 176 + }, + { + "id": 62, + "job_id": 176 + }, + { + "id": 63, + "job_id": 183 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_64-96.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_64-96.json new file mode 100644 index 0000000..e3634b3 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_64-96.json @@ -0,0 +1,25 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 64, + "job_id": 183 + }, + { + "id": 79, + "job_id": 234 + }, + { + "id": 80, + "job_id": 234 + }, + { + "id": 95, + "job_id": 283 + }, + { + "id": 96, + "job_id": 283 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_73-91.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_73-91.json deleted file mode 100644 index ff4127a..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_73-91.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "table_name": "queueable_jobs", - "data": [ - { - "id": 73, - "job_id": 216 - }, - { - "id": 74, - "job_id": 216 - }, - { - "id": 89, - "job_id": 264 - }, - { - "id": 90, - "job_id": 264 - }, - { - "id": 91, - "job_id": 269 - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_92-94.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_92-94.json deleted file mode 100644 index 52bcc99..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_92-94.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "table_name": "queueable_jobs", - "data": [ - { - "id": 92, - "job_id": 269 - }, - { - "id": 93, - "job_id": 271 - }, - { - "id": 94, - "job_id": 271 - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/queueable_job_97-100.json b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_97-100.json new file mode 100644 index 0000000..4c9512f --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/queueable_job_97-100.json @@ -0,0 +1,21 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 97, + "job_id": 288 + }, + { + "id": 98, + "job_id": 288 + }, + { + "id": 99, + "job_id": 290 + }, + { + "id": 100, + "job_id": 290 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/repo_count_1-1.json b/spec/support/expected_files/remove_org_with_dependencies/repo_count_1-1.json new file mode 100644 index 0000000..31fee31 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/repo_count_1-1.json @@ -0,0 +1,17 @@ +{ + "table_name": "repo_counts", + "data": [ + { + "repository_id": 1, + "requests": null, + "commits": null, + "branches": null, + "pull_requests": null, + "tags": null, + "builds": null, + "stages": null, + "jobs": null, + "range": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/repository_1-66.json b/spec/support/expected_files/remove_org_with_dependencies/repository_1-72.json similarity index 54% rename from spec/support/expected_files/remove_org_with_dependencies/repository_1-66.json rename to spec/support/expected_files/remove_org_with_dependencies/repository_1-72.json index 0a67323..6d6b095 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/repository_1-66.json +++ b/spec/support/expected_files/remove_org_with_dependencies/repository_1-72.json @@ -5,9 +5,9 @@ "id": 1, "name": null, "url": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "last_build_id": 260, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "last_build_id": 279, "last_build_number": null, "last_build_started_at": null, "last_build_finished_at": null, @@ -16,8 +16,8 @@ "active": null, "description": null, "last_build_duration": null, - "owner_id": 1, "owner_type": "Organization", + "owner_id": 1, "private": false, "last_build_state": null, "github_id": null, @@ -26,14 +26,27 @@ "settings": null, "next_build_number": null, "invalidated_at": null, - "current_build_id": 210 + "current_build_id": 228, + "org_id": null, + "com_id": null, + "migrating": null, + "migrated_at": null, + "active_on_org": null, + "managed_by_installation_at": null, + "migration_status": null, + "history_migration_status": null, + "vcs_type": "GithubRepository", + "vcs_id": null, + "fork": null, + "vcs_slug": null, + "vcs_source_host": null }, { - "id": 66, + "id": 72, "name": null, "url": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "last_build_id": null, "last_build_number": null, "last_build_started_at": null, @@ -43,8 +56,8 @@ "active": null, "description": null, "last_build_duration": null, - "owner_id": 1, "owner_type": "Organization", + "owner_id": 1, "private": false, "last_build_state": null, "github_id": null, @@ -53,7 +66,20 @@ "settings": null, "next_build_number": null, "invalidated_at": null, - "current_build_id": null + "current_build_id": null, + "org_id": null, + "com_id": null, + "migrating": null, + "migrated_at": null, + "active_on_org": null, + "managed_by_installation_at": null, + "migration_status": null, + "history_migration_status": null, + "vcs_type": "GithubRepository", + "vcs_id": null, + "fork": null, + "vcs_slug": null, + "vcs_source_host": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_11-15.json b/spec/support/expected_files/remove_org_with_dependencies/request_11-15.json index a952522..0f94987 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/request_11-15.json +++ b/spec/support/expected_files/remove_org_with_dependencies/request_11-15.json @@ -7,27 +7,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 12, @@ -35,83 +39,95 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 13, "repository_id": null, - "commit_id": 217, + "commit_id": 7, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 14, "repository_id": null, - "commit_id": 217, + "commit_id": 7, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 15, @@ -119,27 +135,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_16-30.json b/spec/support/expected_files/remove_org_with_dependencies/request_16-30.json index 73f68be..01e6fdf 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/request_16-30.json +++ b/spec/support/expected_files/remove_org_with_dependencies/request_16-30.json @@ -7,83 +7,95 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 17, "repository_id": null, - "commit_id": 219, + "commit_id": 9, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 18, "repository_id": null, - "commit_id": 219, + "commit_id": 9, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 29, @@ -91,27 +103,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 30, @@ -119,27 +135,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_31-55.json b/spec/support/expected_files/remove_org_with_dependencies/request_31-35.json similarity index 63% rename from spec/support/expected_files/remove_user_with_dependencies/request_31-55.json rename to spec/support/expected_files/remove_org_with_dependencies/request_31-35.json index e992ae6..e87700d 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/request_31-55.json +++ b/spec/support/expected_files/remove_org_with_dependencies/request_31-35.json @@ -4,58 +4,66 @@ { "id": 31, "repository_id": null, - "commit_id": 227, + "commit_id": 17, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 32, "repository_id": null, - "commit_id": 227, + "commit_id": 17, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 33, @@ -63,27 +71,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 34, @@ -91,55 +103,63 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { - "id": 55, + "id": 35, "repository_id": null, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 9, - "sender_type": "User" + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_36-60.json b/spec/support/expected_files/remove_org_with_dependencies/request_36-60.json new file mode 100644 index 0000000..bac22b2 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_36-60.json @@ -0,0 +1,165 @@ +{ + "table_name": "requests", + "data": [ + { + "id": 36, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 37, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 38, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 59, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": "Organization", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 60, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": "Organization", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_61-62.json b/spec/support/expected_files/remove_org_with_dependencies/request_61-62.json new file mode 100644 index 0000000..807cb4e --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_61-62.json @@ -0,0 +1,69 @@ +{ + "table_name": "requests", + "data": [ + { + "id": 61, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": "Organization", + "owner_id": 1, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 62, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": "Organization", + "owner_id": 1, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/request_config_1-2.json new file mode 100644 index 0000000..3721f6a --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_payload_14-26.json b/spec/support/expected_files/remove_org_with_dependencies/request_payload_14-26.json new file mode 100644 index 0000000..24086b5 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_payload_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 14, + "request_id": 15, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 15, + "request_id": 17, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 16, + "request_id": 17, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 25, + "request_id": 29, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 26, + "request_id": 29, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_payload_27-31.json b/spec/support/expected_files/remove_org_with_dependencies/request_payload_27-31.json new file mode 100644 index 0000000..42d477b --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_payload_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 27, + "request_id": 31, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 28, + "request_id": 31, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 29, + "request_id": 33, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 30, + "request_id": 33, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 31, + "request_id": 35, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_payload_32-52.json b/spec/support/expected_files/remove_org_with_dependencies/request_payload_32-52.json new file mode 100644 index 0000000..7efc237 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_payload_32-52.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 32, + "request_id": 35, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 33, + "request_id": 37, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 34, + "request_id": 37, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 51, + "request_id": 59, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 52, + "request_id": 59, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_payload_53-54.json b/spec/support/expected_files/remove_org_with_dependencies/request_payload_53-54.json new file mode 100644 index 0000000..83df667 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_payload_53-54.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 53, + "request_id": 61, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 54, + "request_id": 61, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_payload_9-13.json b/spec/support/expected_files/remove_org_with_dependencies/request_payload_9-13.json new file mode 100644 index 0000000..3b28b03 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_payload_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 9, + "request_id": 11, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 10, + "request_id": 11, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 11, + "request_id": 13, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 12, + "request_id": 13, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + }, + { + "id": 13, + "request_id": 15, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:06:56 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_raw_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/request_raw_config_1-2.json new file mode 100644 index 0000000..c72323d --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_raw_config_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "request_raw_configs", + "data": [ + { + "id": 1, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + }, + { + "id": 2, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_14-26.json b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_14-26.json new file mode 100644 index 0000000..9590ef0 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 14, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 15, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 16, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 25, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 26, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_27-31.json b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_27-31.json new file mode 100644 index 0000000..46d82ef --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 27, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 28, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 29, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 30, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 31, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_32-36.json b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_32-36.json new file mode 100644 index 0000000..fe9accd --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_32-36.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 32, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 33, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 34, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 35, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 36, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_53-56.json b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_53-56.json new file mode 100644 index 0000000..4de4d62 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_53-56.json @@ -0,0 +1,37 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 53, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 54, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 55, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 56, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_9-13.json b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_9-13.json new file mode 100644 index 0000000..613d490 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_raw_configuration_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 9, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 10, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 11, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 12, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 13, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_yaml_config_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/request_yaml_config_1-2.json new file mode 100644 index 0000000..568e31b --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/request_yaml_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_yaml_configs", + "data": [ + { + "id": 1, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/ssl_key_3-4.json b/spec/support/expected_files/remove_org_with_dependencies/ssl_key_3-4.json new file mode 100644 index 0000000..7b43209 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/ssl_key_3-4.json @@ -0,0 +1,25 @@ +{ + "table_name": "ssl_keys", + "data": [ + { + "id": 3, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 4, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/ssl_key_33-34.json b/spec/support/expected_files/remove_org_with_dependencies/ssl_key_33-34.json deleted file mode 100644 index e2dfb2f..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/ssl_key_33-34.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "table_name": "ssl_keys", - "data": [ - { - "id": 33, - "repository_id": 1, - "public_key": null, - "private_key": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - }, - { - "id": 34, - "repository_id": 1, - "public_key": null, - "private_key": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/stage_20-32.json b/spec/support/expected_files/remove_org_with_dependencies/stage_1-13.json similarity index 58% rename from spec/support/expected_files/remove_repo_with_dependencies/stage_20-32.json rename to spec/support/expected_files/remove_org_with_dependencies/stage_1-13.json index 91fcb2e..ccba356 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/stage_20-32.json +++ b/spec/support/expected_files/remove_org_with_dependencies/stage_1-13.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 20, + "id": 1, "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 21, + "id": 2, "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 30, - "build_id": 51, + "id": 3, + "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 31, - "build_id": 58, + "id": 12, + "build_id": 52, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 32, - "build_id": 63, + "id": 13, + "build_id": 59, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/stage_14-18.json b/spec/support/expected_files/remove_org_with_dependencies/stage_14-18.json new file mode 100644 index 0000000..56d9de4 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/stage_14-18.json @@ -0,0 +1,60 @@ +{ + "table_name": "stages", + "data": [ + { + "id": 14, + "build_id": 64, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 15, + "build_id": 69, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 16, + "build_id": 74, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 17, + "build_id": 79, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 18, + "build_id": 84, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/stage_19-31.json b/spec/support/expected_files/remove_org_with_dependencies/stage_19-31.json new file mode 100644 index 0000000..1983714 --- /dev/null +++ b/spec/support/expected_files/remove_org_with_dependencies/stage_19-31.json @@ -0,0 +1,60 @@ +{ + "table_name": "stages", + "data": [ + { + "id": 19, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 20, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 21, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 30, + "build_id": 140, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 31, + "build_id": 145, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/stage_33-37.json b/spec/support/expected_files/remove_org_with_dependencies/stage_32-36.json similarity index 56% rename from spec/support/expected_files/remove_user_with_dependencies/stage_33-37.json rename to spec/support/expected_files/remove_org_with_dependencies/stage_32-36.json index 4b99471..f6c6757 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/stage_33-37.json +++ b/spec/support/expected_files/remove_org_with_dependencies/stage_32-36.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 33, - "build_id": 68, + "id": 32, + "build_id": 148, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 34, - "build_id": 73, + "id": 33, + "build_id": 153, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 35, - "build_id": 78, + "id": 34, + "build_id": 158, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 36, - "build_id": 83, + "id": 35, + "build_id": 163, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 37, - "build_id": 88, + "id": 36, + "build_id": 166, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/stage_38-50.json b/spec/support/expected_files/remove_org_with_dependencies/stage_37-49.json similarity index 53% rename from spec/support/expected_files/remove_user_with_dependencies/stage_38-50.json rename to spec/support/expected_files/remove_org_with_dependencies/stage_37-49.json index 40a0031..0de26d1 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/stage_38-50.json +++ b/spec/support/expected_files/remove_org_with_dependencies/stage_37-49.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 38, - "build_id": 88, + "id": 37, + "build_id": 173, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 47, - "build_id": 138, + "id": 38, + "build_id": 178, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 48, - "build_id": 143, + "id": 39, + "build_id": 178, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 49, - "build_id": 146, + "id": 40, + "build_id": 178, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 50, - "build_id": 151, + "id": 49, + "build_id": 229, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/stage_51-63.json b/spec/support/expected_files/remove_org_with_dependencies/stage_50-61.json similarity index 52% rename from spec/support/expected_files/remove_org_with_dependencies/stage_51-63.json rename to spec/support/expected_files/remove_org_with_dependencies/stage_50-61.json index 944cb8b..6043e7d 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/stage_51-63.json +++ b/spec/support/expected_files/remove_org_with_dependencies/stage_50-61.json @@ -2,49 +2,48 @@ "table_name": "stages", "data": [ { - "id": 51, - "build_id": 156, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 52, - "build_id": 161, + "id": 50, + "build_id": 229, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 53, - "build_id": 161, + "id": 51, + "build_id": 229, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 62, - "build_id": 211, + "id": 60, + "build_id": 280, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 63, - "build_id": 211, + "id": 61, + "build_id": 285, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/stage_72-73.json b/spec/support/expected_files/remove_org_with_dependencies/stage_72-73.json deleted file mode 100644 index 5fe27f1..0000000 --- a/spec/support/expected_files/remove_org_with_dependencies/stage_72-73.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "table_name": "stages", - "data": [ - { - "id": 72, - "build_id": 261, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 73, - "build_id": 266, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/star_3-4.json b/spec/support/expected_files/remove_org_with_dependencies/star_3-4.json index b61a1da..da8a40a 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/star_3-4.json +++ b/spec/support/expected_files/remove_org_with_dependencies/star_3-4.json @@ -5,15 +5,15 @@ "id": 3, "repository_id": 1, "user_id": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 4, "repository_id": 1, "user_id": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/subscription_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/subscription_1-2.json index 2b06806..679f63e 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/subscription_1-2.json +++ b/spec/support/expected_files/remove_org_with_dependencies/subscription_1-2.json @@ -5,8 +5,8 @@ "id": 1, "cc_token": null, "valid_to": null, - "owner_id": 1, "owner_type": "Organization", + "owner_id": 1, "first_name": null, "last_name": null, "company": null, @@ -18,8 +18,8 @@ "country": null, "vat_id": null, "customer_id": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "cc_owner": null, "cc_last_digits": null, "cc_expiration_date": null, @@ -37,8 +37,8 @@ "id": 2, "cc_token": null, "valid_to": null, - "owner_id": 1, "owner_type": "Organization", + "owner_id": 1, "first_name": null, "last_name": null, "company": null, @@ -50,8 +50,8 @@ "country": null, "vat_id": null, "customer_id": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", "cc_owner": null, "cc_last_digits": null, "cc_expiration_date": null, diff --git a/spec/support/expected_files/remove_org_with_dependencies/tag_33-38.json b/spec/support/expected_files/remove_org_with_dependencies/tag_33-38.json index 0dab47f..1ebdeff 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/tag_33-38.json +++ b/spec/support/expected_files/remove_org_with_dependencies/tag_33-38.json @@ -7,8 +7,10 @@ "name": null, "last_build_id": null, "exists_on_github": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null }, { "id": 38, @@ -16,8 +18,10 @@ "name": null, "last_build_id": null, "exists_on_github": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC", + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/trial_1-2.json b/spec/support/expected_files/remove_org_with_dependencies/trial_1-2.json index 87b63a1..8caa77f 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/trial_1-2.json +++ b/spec/support/expected_files/remove_org_with_dependencies/trial_1-2.json @@ -3,25 +3,25 @@ "data": [ { "id": 1, - "owner_id": 1, "owner_type": "Organization", + "owner_id": 1, "chartmogul_customer_uuids": [ ], "status": "new", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 2, - "owner_id": 1, "owner_type": "Organization", + "owner_id": 1, "chartmogul_customer_uuids": [ ], "status": "new", - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_1-5.json b/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_1-5.json index 16ca1a7..aaac3e4 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_1-5.json +++ b/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_1-5.json @@ -8,8 +8,8 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 2, @@ -18,8 +18,8 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 3, @@ -28,8 +28,8 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 4, @@ -38,8 +38,8 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" }, { "id": 5, @@ -48,8 +48,8 @@ "creator_type": "Organization", "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_6-6.json b/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_6-6.json index 5423e48..7a9108e 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_6-6.json +++ b/spec/support/expected_files/remove_org_with_dependencies/trial_allowance_6-6.json @@ -8,8 +8,8 @@ "creator_type": "Organization", "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:06:56 UTC", + "updated_at": "2021-09-01 15:06:56 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_1.json b/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_1.json index 2d2b64a..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_1.json +++ b/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_1.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 20 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 21 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 18 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 19 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 1 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_2.json b/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_2.json index 9ec0010..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_2.json +++ b/spec/support/expected_files/remove_repo_builds/nullified_relationships/build_2.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 10 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 5 - }, - { - "related_table": "deleted_tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 1 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 192, - "related_id": 1 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 6 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_requests/nullified_relationships/build_1.json b/spec/support/expected_files/remove_repo_requests/nullified_relationships/build_1.json index ad178f5..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_requests/nullified_relationships/build_1.json +++ b/spec/support/expected_files/remove_repo_requests/nullified_relationships/build_1.json @@ -1,29 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 52, - "related_id": 13 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 52, - "related_id": 23 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 52, - "related_id": 22 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 52, - "related_id": 13 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/abuse_14-26.json b/spec/support/expected_files/remove_repo_with_dependencies/abuse_14-26.json index ec93c33..d5ca65a 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/abuse_14-26.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/abuse_14-26.json @@ -3,53 +3,53 @@ "data": [ { "id": 14, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 15, "level": 14, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 15, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 17, "level": 15, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 16, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 17, "level": 16, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 25, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 29, "level": 25, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 26, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 29, "level": 26, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/abuse_27-47.json b/spec/support/expected_files/remove_repo_with_dependencies/abuse_27-31.json similarity index 58% rename from spec/support/expected_files/remove_user_with_dependencies/abuse_27-47.json rename to spec/support/expected_files/remove_repo_with_dependencies/abuse_27-31.json index a502371..6b6cab1 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/abuse_27-47.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/abuse_27-31.json @@ -3,53 +3,53 @@ "data": [ { "id": 27, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 31, "level": 27, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 28, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 31, "level": 28, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 29, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 33, "level": 29, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 30, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 33, "level": 30, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { - "id": 47, - "owner_id": null, + "id": 31, "owner_type": null, - "request_id": 55, - "level": 47, + "owner_id": null, + "request_id": 35, + "level": 31, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/abuse_32-34.json b/spec/support/expected_files/remove_repo_with_dependencies/abuse_32-34.json new file mode 100644 index 0000000..2b7b011 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/abuse_32-34.json @@ -0,0 +1,35 @@ +{ + "table_name": "abuses", + "data": [ + { + "id": 32, + "owner_type": null, + "owner_id": null, + "request_id": 35, + "level": 32, + "reason": "some text", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" + }, + { + "id": 33, + "owner_type": null, + "owner_id": null, + "request_id": 37, + "level": 33, + "reason": "some text", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" + }, + { + "id": 34, + "owner_type": null, + "owner_id": null, + "request_id": 37, + "level": 34, + "reason": "some text", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/abuse_9-13.json b/spec/support/expected_files/remove_repo_with_dependencies/abuse_9-13.json index a6b9b4b..42bc23f 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/abuse_9-13.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/abuse_9-13.json @@ -3,53 +3,53 @@ "data": [ { "id": 9, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 11, "level": 9, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 10, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 11, "level": 10, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 11, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 13, "level": 11, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 12, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 13, "level": 12, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 13, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 15, "level": 13, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/annotation_1-19.json b/spec/support/expected_files/remove_repo_with_dependencies/annotation_1-19.json deleted file mode 100644 index 8e87d96..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/annotation_1-19.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 1, - "job_id": 6, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 2, - "job_id": 6, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 17, - "job_id": 54, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 18, - "job_id": 54, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 19, - "job_id": 56, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/annotation_20-24.json b/spec/support/expected_files/remove_repo_with_dependencies/annotation_20-24.json deleted file mode 100644 index 5203a65..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/annotation_20-24.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 20, - "job_id": 56, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 21, - "job_id": 61, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 22, - "job_id": 61, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 23, - "job_id": 66, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 24, - "job_id": 66, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/annotation_25-29.json b/spec/support/expected_files/remove_repo_with_dependencies/annotation_25-29.json deleted file mode 100644 index 7d073ad..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/annotation_25-29.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 25, - "job_id": 71, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 26, - "job_id": 71, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 27, - "job_id": 76, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 28, - "job_id": 76, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 29, - "job_id": 81, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/annotation_30-34.json b/spec/support/expected_files/remove_repo_with_dependencies/annotation_30-34.json deleted file mode 100644 index daa05fb..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/annotation_30-34.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 30, - "job_id": 81, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 31, - "job_id": 86, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 32, - "job_id": 86, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 33, - "job_id": 93, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 34, - "job_id": 93, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/annotation_49-53.json b/spec/support/expected_files/remove_repo_with_dependencies/annotation_49-53.json deleted file mode 100644 index fb579c8..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/annotation_49-53.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 49, - "job_id": 141, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 50, - "job_id": 141, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 51, - "job_id": 149, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 52, - "job_id": 149, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 53, - "job_id": 154, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/annotation_54-56.json b/spec/support/expected_files/remove_repo_with_dependencies/annotation_54-56.json deleted file mode 100644 index ae39964..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/annotation_54-56.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 54, - "job_id": 154, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 55, - "job_id": 159, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 56, - "job_id": 159, - "url": null, - "description": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/branch_14-19.json b/spec/support/expected_files/remove_repo_with_dependencies/branch_14-19.json new file mode 100644 index 0000000..9b1d11d --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/branch_14-19.json @@ -0,0 +1,27 @@ +{ + "table_name": "branches", + "data": [ + { + "id": 14, + "repository_id": 1, + "last_build_id": null, + "name": "branch_14", + "exists_on_github": true, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 19, + "repository_id": 1, + "last_build_id": null, + "name": "branch_19", + "exists_on_github": true, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/branch_86-91.json b/spec/support/expected_files/remove_repo_with_dependencies/branch_86-91.json deleted file mode 100644 index 5bf0da8..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/branch_86-91.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "table_name": "branches", - "data": [ - { - "id": 86, - "repository_id": 1, - "last_build_id": null, - "name": "branch_14", - "exists_on_github": true, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - }, - { - "id": 91, - "repository_id": 1, - "last_build_id": null, - "name": "branch_19", - "exists_on_github": true, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_1-58.json b/spec/support/expected_files/remove_repo_with_dependencies/build_1-59.json similarity index 53% rename from spec/support/expected_files/remove_repo_with_dependencies/build_1-58.json rename to spec/support/expected_files/remove_repo_with_dependencies/build_1-59.json index 72a5b10..c373543 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/build_1-58.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_1-59.json @@ -7,20 +7,30 @@ "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 50, + "id": 51, "repository_id": 1, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 51, + "id": 52, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 11, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 53, + "id": 54, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 11, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,38 +173,58 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 58, + "id": 59, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_143-151.json b/spec/support/expected_files/remove_repo_with_dependencies/build_145-153.json similarity index 53% rename from spec/support/expected_files/remove_org_with_dependencies/build_143-151.json rename to spec/support/expected_files/remove_repo_with_dependencies/build_145-153.json index 3a54218..bdf0501 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/build_143-151.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_145-153.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 143, + "id": 145, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 145, + "id": 147, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 146, + "id": 148, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, - "commit_id": 227, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 148, + "id": 150, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, - "commit_id": 227, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 151, + "id": 153, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 31, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_153-210.json b/spec/support/expected_files/remove_repo_with_dependencies/build_155-165.json similarity index 52% rename from spec/support/expected_files/remove_org_with_dependencies/build_153-210.json rename to spec/support/expected_files/remove_repo_with_dependencies/build_155-165.json index 31f1a77..d924627 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/build_153-210.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_155-165.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 153, + "id": 155, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 31, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 156, + "id": 158, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 33, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 158, + "id": 160, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 33, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 161, + "id": 163, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": 1, - "owner_type": "Organization", + "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null }, { - "id": 210, + "id": 165, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": 1, - "owner_type": "Organization", + "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_166-175.json b/spec/support/expected_files/remove_repo_with_dependencies/build_166-175.json new file mode 100644 index 0000000..5a3fa38 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_166-175.json @@ -0,0 +1,185 @@ +{ + "table_name": "builds", + "data": [ + { + "id": 166, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 168, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 173, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 175, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_60-70.json b/spec/support/expected_files/remove_repo_with_dependencies/build_61-71.json similarity index 52% rename from spec/support/expected_files/remove_user_with_dependencies/build_60-70.json rename to spec/support/expected_files/remove_repo_with_dependencies/build_61-71.json index cbfc3c9..74de8e3 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/build_60-70.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_61-71.json @@ -2,55 +2,80 @@ "table_name": "builds", "data": [ { - "id": 60, + "id": 61, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 63, + "id": 64, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, - "commit_id": 217, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 65, + "id": 66, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, - "commit_id": 217, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 68, + "id": 69, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 13, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 70, + "id": 71, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 13, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_73-83.json b/spec/support/expected_files/remove_repo_with_dependencies/build_74-84.json similarity index 52% rename from spec/support/expected_files/remove_user_with_dependencies/build_73-83.json rename to spec/support/expected_files/remove_repo_with_dependencies/build_74-84.json index c297d51..400b1f8 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/build_73-83.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_74-84.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 73, + "id": 74, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 15, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 75, + "id": 76, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 15, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 78, + "id": 79, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, - "commit_id": 219, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 80, + "id": 81, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, - "commit_id": 219, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 83, + "id": 84, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 17, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_85-140.json b/spec/support/expected_files/remove_repo_with_dependencies/build_86-142.json similarity index 53% rename from spec/support/expected_files/remove_user_with_dependencies/build_85-140.json rename to spec/support/expected_files/remove_repo_with_dependencies/build_86-142.json index ace42b0..0649f67 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/build_85-140.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_86-142.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 85, + "id": 86, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 17, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 88, + "id": 89, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 137, + "id": 139, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 138, + "id": 140, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 29, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 140, + "id": 142, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 29, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/build_config_1-2.json new file mode 100644 index 0000000..d314a1a --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/build_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "build_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/commit_228-228.json b/spec/support/expected_files/remove_repo_with_dependencies/commit_18-18.json similarity index 68% rename from spec/support/expected_files/remove_user_with_dependencies/commit_228-228.json rename to spec/support/expected_files/remove_repo_with_dependencies/commit_18-18.json index e54000d..ac4b131 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/commit_228-228.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/commit_18-18.json @@ -2,7 +2,7 @@ "table_name": "commits", "data": [ { - "id": 228, + "id": 18, "repository_id": null, "commit": null, "ref": null, @@ -14,10 +14,12 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "branch_id": null, - "tag_id": 33 + "tag_id": 33, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/commit_217-227.json b/spec/support/expected_files/remove_repo_with_dependencies/commit_7-17.json similarity index 63% rename from spec/support/expected_files/remove_org_with_dependencies/commit_217-227.json rename to spec/support/expected_files/remove_repo_with_dependencies/commit_7-17.json index b10f234..e289d82 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/commit_217-227.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/commit_7-17.json @@ -2,7 +2,7 @@ "table_name": "commits", "data": [ { - "id": 217, + "id": 7, "repository_id": null, "commit": null, "ref": null, @@ -14,13 +14,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "branch_id": 86, - "tag_id": null + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 218, + "id": 8, "repository_id": null, "commit": null, "ref": null, @@ -32,13 +34,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "branch_id": 86, - "tag_id": null + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 219, + "id": 9, "repository_id": 1, "commit": null, "ref": null, @@ -50,13 +54,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "branch_id": null, - "tag_id": null + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 220, + "id": 10, "repository_id": 1, "commit": null, "ref": null, @@ -68,13 +74,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "branch_id": null, - "tag_id": null + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 227, + "id": 17, "repository_id": null, "commit": null, "ref": null, @@ -86,10 +94,12 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "branch_id": null, - "tag_id": 33 + "tag_id": 33, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/cron_2-2.json b/spec/support/expected_files/remove_repo_with_dependencies/cron_2-2.json new file mode 100644 index 0000000..e00c074 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/cron_2-2.json @@ -0,0 +1,18 @@ +{ + "table_name": "crons", + "data": [ + { + "id": 2, + "branch_id": 14, + "interval": "test", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "next_run": null, + "last_run": null, + "dont_run_if_recent_build_exists": false, + "org_id": null, + "com_id": null, + "active": true + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/cron_3-4.json b/spec/support/expected_files/remove_repo_with_dependencies/cron_3-4.json deleted file mode 100644 index cd9d56d..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/cron_3-4.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "table_name": "crons", - "data": [ - { - "id": 3, - "branch_id": 86, - "interval": "test", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "next_run": null, - "last_run": null, - "dont_run_if_recent_build_exists": false - }, - { - "id": 4, - "branch_id": 86, - "interval": "test", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "next_run": null, - "last_run": null, - "dont_run_if_recent_build_exists": false - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_17-21.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_17-21.json new file mode 100644 index 0000000..9e4be07 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_17-21.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 17, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 11, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 18, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 11, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 19, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 20, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 21, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 13, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_22-26.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_22-26.json new file mode 100644 index 0000000..e6509c9 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_22-26.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 22, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 13, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 23, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 24, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 25, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 15, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 26, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 15, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_27-47.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_27-47.json new file mode 100644 index 0000000..a13e556 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_27-47.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 27, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 17, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 28, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 17, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 29, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 30, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 47, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 29, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_48-52.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_48-52.json new file mode 100644 index 0000000..cc4bd3f --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_48-52.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 48, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 29, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 49, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 50, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 51, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 31, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 52, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 31, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_53-57.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_53-57.json new file mode 100644 index 0000000..8deaa0c --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_53-57.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 53, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 54, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 55, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 33, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 56, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 33, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 57, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_58-62.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_58-62.json new file mode 100644 index 0000000..16aed8c --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_58-62.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 58, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 59, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null + }, + { + "id": 60, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null + }, + { + "id": 61, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 62, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_63-66.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_63-66.json new file mode 100644 index 0000000..907c74a --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_63-66.json @@ -0,0 +1,185 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 63, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 64, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 65, + "repository_id": 1, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 66, + "repository_id": 1, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_config_1-2.json new file mode 100644 index 0000000..6e20cc6 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_build_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_build_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_commit_14-14.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_commit_14-14.json new file mode 100644 index 0000000..bd06564 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_commit_14-14.json @@ -0,0 +1,25 @@ +{ + "table_name": "deleted_commits", + "data": [ + { + "id": 14, + "repository_id": 1, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": null, + "tag_id": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_commit_5-13.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_commit_5-13.json new file mode 100644 index 0000000..33f2618 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_commit_5-13.json @@ -0,0 +1,105 @@ +{ + "table_name": "deleted_commits", + "data": [ + { + "id": 5, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null + }, + { + "id": 6, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null + }, + { + "id": 11, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": null, + "tag_id": 33, + "org_id": null, + "com_id": null + }, + { + "id": 12, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": null, + "tag_id": 33, + "org_id": null, + "com_id": null + }, + { + "id": 13, + "repository_id": 1, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "branch_id": null, + "tag_id": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_15-19.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_15-19.json new file mode 100644 index 0000000..9d8acca --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_15-19.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 15, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 1, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 16, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 11, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 17, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 11, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 18, + "repository_id": null, + "commit_id": null, + "source_type": "Branch", + "source_id": 14, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 19, + "repository_id": null, + "commit_id": null, + "source_type": "Branch", + "source_id": 14, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_20-24.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_20-24.json new file mode 100644 index 0000000..f88e87f --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_20-24.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 20, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 13, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 21, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 13, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 22, + "repository_id": null, + "commit_id": 7, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 23, + "repository_id": null, + "commit_id": 7, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 24, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 15, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_25-29.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_25-29.json new file mode 100644 index 0000000..c4da980 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_25-29.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 25, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 15, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 26, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 17, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 27, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 17, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 28, + "repository_id": null, + "commit_id": 9, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 29, + "repository_id": null, + "commit_id": 9, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_44-48.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_44-48.json new file mode 100644 index 0000000..f27d47a --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_44-48.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 44, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 89, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 45, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 29, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 46, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 29, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 47, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 48, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_49-53.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_49-53.json new file mode 100644 index 0000000..1b67949 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_49-53.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 49, + "repository_id": null, + "commit_id": 17, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 50, + "repository_id": null, + "commit_id": 17, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 51, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 52, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 53, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_54-58.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_54-58.json new file mode 100644 index 0000000..8e6e910 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_54-58.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 54, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 55, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + }, + { + "id": 56, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + }, + { + "id": 57, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 58, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_59-60.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_59-60.json new file mode 100644 index 0000000..defc9de --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_59-60.json @@ -0,0 +1,73 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 59, + "repository_id": 1, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 60, + "repository_id": 1, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_config_1-2.json new file mode 100644 index 0000000..49f6d54 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_job_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_job_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_pull_request_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_pull_request_1-2.json new file mode 100644 index 0000000..6bcb8f6 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_pull_request_1-2.json @@ -0,0 +1,43 @@ +{ + "table_name": "deleted_pull_requests", + "data": [ + { + "id": 1, + "repository_id": 1, + "number": null, + "title": null, + "state": null, + "head_repo_github_id": null, + "head_repo_slug": null, + "head_ref": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null + }, + { + "id": 2, + "repository_id": 1, + "number": null, + "title": null, + "state": null, + "head_repo_github_id": null, + "head_repo_slug": null, + "head_ref": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_14-26.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_14-26.json new file mode 100644 index 0000000..f9bb594 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_14-26.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 14, + "repository_id": null, + "commit_id": 9, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 23, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 24, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 25, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 26, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_27-31.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_27-31.json new file mode 100644 index 0000000..f04bddb --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_27-31.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 27, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 28, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 29, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 30, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 31, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_31-34.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_32-34.json similarity index 53% rename from spec/support/expected_files/remove_repo_with_dependencies/request_31-34.json rename to spec/support/expected_files/remove_repo_with_dependencies/deleted_request_32-34.json index 486e755..10a7e1a 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/request_31-34.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_32-34.json @@ -1,117 +1,101 @@ { - "table_name": "requests", + "table_name": "deleted_requests", "data": [ - { - "id": 31, - "repository_id": null, - "commit_id": 227, - "state": null, - "source": null, - "payload": null, - "token": null, - "config": null, - "started_at": null, - "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "event_type": null, - "comments_url": null, - "base_commit": null, - "head_commit": null, - "owner_id": null, - "owner_type": null, - "result": null, - "message": null, - "private": null, - "pull_request_id": null, - "branch_id": null, - "tag_id": null, - "sender_id": null, - "sender_type": null - }, { "id": 32, "repository_id": null, - "commit_id": 227, + "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 33, - "repository_id": null, + "repository_id": 1, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, - "tag_id": 33, + "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 34, - "repository_id": null, + "repository_id": 1, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, - "tag_id": 33, + "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_9-13.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_9-13.json new file mode 100644 index 0000000..ad2de36 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_9-13.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 9, + "repository_id": null, + "commit_id": 7, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 10, + "repository_id": null, + "commit_id": 7, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 11, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 12, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 13, + "repository_id": null, + "commit_id": 9, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_config_1-2.json new file mode 100644 index 0000000..f441c10 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_14-26.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_14-26.json new file mode 100644 index 0000000..0bfc218 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 14, + "request_id": 15, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 15, + "request_id": 17, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 16, + "request_id": 17, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 25, + "request_id": 29, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 26, + "request_id": 29, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_27-31.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_27-31.json new file mode 100644 index 0000000..0660427 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 27, + "request_id": 31, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 28, + "request_id": 31, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 29, + "request_id": 33, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 30, + "request_id": 33, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 31, + "request_id": 35, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_32-34.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_32-34.json new file mode 100644 index 0000000..f6dbb3d --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_32-34.json @@ -0,0 +1,29 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 32, + "request_id": 35, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 33, + "request_id": 37, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 34, + "request_id": 37, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_9-13.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_9-13.json new file mode 100644 index 0000000..cc6ac47 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_payload_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 9, + "request_id": 11, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 10, + "request_id": 11, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 11, + "request_id": 13, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 12, + "request_id": 13, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 13, + "request_id": 15, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_config_1-2.json new file mode 100644 index 0000000..410650c --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_config_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "deleted_request_raw_configs", + "data": [ + { + "id": 1, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + }, + { + "id": 2, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_14-26.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_14-26.json new file mode 100644 index 0000000..564a58f --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 14, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 15, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 16, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 25, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 26, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_27-31.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_27-31.json new file mode 100644 index 0000000..8a2c909 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 27, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 28, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 29, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 30, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 31, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_32-36.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_32-36.json new file mode 100644 index 0000000..cbf91f2 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_32-36.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 32, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 33, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 34, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 35, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 36, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_9-13.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_9-13.json new file mode 100644 index 0000000..d0c3e3a --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_raw_configuration_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 9, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 10, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 11, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 12, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 13, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_yaml_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_yaml_config_1-2.json new file mode 100644 index 0000000..c35bead --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_request_yaml_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_yaml_configs", + "data": [ + { + "id": 1, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_ssl_key_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_ssl_key_1-2.json new file mode 100644 index 0000000..ecd7cb8 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_ssl_key_1-2.json @@ -0,0 +1,25 @@ +{ + "table_name": "deleted_ssl_keys", + "data": [ + { + "id": 1, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_stage_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_stage_1-2.json new file mode 100644 index 0000000..4c459fd --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_stage_1-2.json @@ -0,0 +1,27 @@ +{ + "table_name": "deleted_stages", + "data": [ + { + "id": 1, + "build_id": 1, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 2, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/deleted_tag_3-4.json b/spec/support/expected_files/remove_repo_with_dependencies/deleted_tag_3-4.json new file mode 100644 index 0000000..f80e029 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/deleted_tag_3-4.json @@ -0,0 +1,27 @@ +{ + "table_name": "deleted_tags", + "data": [ + { + "id": 3, + "repository_id": 1, + "name": null, + "last_build_id": null, + "exists_on_github": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 4, + "repository_id": 1, + "name": null, + "last_build_id": null, + "exists_on_github": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/email_unsubscribe_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/email_unsubscribe_1-2.json new file mode 100644 index 0000000..086e6e1 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/email_unsubscribe_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "email_unsubscribes", + "data": [ + { + "id": 1, + "user_id": null, + "repository_id": 1, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" + }, + { + "id": 2, + "user_id": null, + "repository_id": 1, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_149-155.json b/spec/support/expected_files/remove_repo_with_dependencies/job_146-154.json similarity index 64% rename from spec/support/expected_files/remove_org_with_dependencies/job_149-155.json rename to spec/support/expected_files/remove_repo_with_dependencies/job_146-154.json index 8c705ae..5325a09 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_149-155.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_146-154.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 149, + "id": 146, "repository_id": null, - "commit_id": 227, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 145, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 150, + "id": 149, "repository_id": null, - "commit_id": 227, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 148, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 152, + "id": 151, "repository_id": null, - "commit_id": null, - "source_id": 151, - "source_type": "Build", + "commit_id": 17, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 154, + "id": 152, "repository_id": null, - "commit_id": null, - "source_id": 31, - "source_type": "Request", + "commit_id": 17, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 155, + "id": 154, "repository_id": null, "commit_id": null, - "source_id": 31, - "source_type": "Request", + "source_type": "Build", + "source_id": 153, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_262-269.json b/spec/support/expected_files/remove_repo_with_dependencies/job_156-162.json similarity index 64% rename from spec/support/expected_files/remove_org_with_dependencies/job_262-269.json rename to spec/support/expected_files/remove_repo_with_dependencies/job_156-162.json index 74f1b52..e3c61b2 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_262-269.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_156-162.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 262, + "id": 156, "repository_id": null, "commit_id": null, - "source_id": 261, - "source_type": "Build", + "source_type": "Request", + "source_id": 31, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 264, + "id": 157, "repository_id": null, "commit_id": null, - "source_id": 55, "source_type": "Request", + "source_id": 31, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 265, + "id": 159, "repository_id": null, "commit_id": null, - "source_id": 55, - "source_type": "Request", + "source_type": "Build", + "source_id": 158, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 267, + "id": 161, "repository_id": null, "commit_id": null, - "source_id": 266, - "source_type": "Build", + "source_type": "Request", + "source_id": 33, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 269, + "id": 162, "repository_id": null, "commit_id": null, - "source_id": 57, "source_type": "Request", + "source_id": 33, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_164-171.json b/spec/support/expected_files/remove_repo_with_dependencies/job_164-171.json new file mode 100644 index 0000000..c06996f --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_164-171.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 164, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 163, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 167, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 166, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 169, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 170, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 171, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_172-177.json b/spec/support/expected_files/remove_repo_with_dependencies/job_172-177.json new file mode 100644 index 0000000..6fdb7d4 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_172-177.json @@ -0,0 +1,141 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 172, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + }, + { + "id": 174, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 173, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 176, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 177, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_2-6.json b/spec/support/expected_files/remove_repo_with_dependencies/job_2-6.json index 65484a3..be5596d 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_2-6.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_2-6.json @@ -5,22 +5,22 @@ "id": 2, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 20 + "stage_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 3, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 20 + "stage_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 4, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 21 + "stage_id": 2, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 5, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 21 + "stage_id": 2, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 6, "repository_id": null, "commit_id": null, - "source_id": 1, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_57-64.json b/spec/support/expected_files/remove_repo_with_dependencies/job_57-63.json similarity index 64% rename from spec/support/expected_files/remove_org_with_dependencies/job_57-64.json rename to spec/support/expected_files/remove_repo_with_dependencies/job_57-63.json index e3d232a..e104060 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_57-64.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_57-63.json @@ -5,22 +5,22 @@ "id": 57, "repository_id": 1, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 59, - "repository_id": null, + "id": 58, + "repository_id": 1, "commit_id": null, - "source_id": 58, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 61, + "id": 60, "repository_id": null, "commit_id": null, - "source_id": 86, - "source_type": "Branch", + "source_type": "Build", + "source_id": 59, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 62, "repository_id": null, "commit_id": null, - "source_id": 86, "source_type": "Branch", + "source_id": 14, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 64, + "id": 63, "repository_id": null, "commit_id": null, - "source_id": 63, - "source_type": "Build", + "source_type": "Branch", + "source_id": 14, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_66-72.json b/spec/support/expected_files/remove_repo_with_dependencies/job_65-72.json similarity index 65% rename from spec/support/expected_files/remove_repo_with_dependencies/job_66-72.json rename to spec/support/expected_files/remove_repo_with_dependencies/job_65-72.json index 62a52eb..bf7892e 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_66-72.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_65-72.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 66, + "id": 65, "repository_id": null, - "commit_id": 217, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 64, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 67, "repository_id": null, - "commit_id": 217, - "source_id": null, + "commit_id": 7, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 69, + "id": 68, "repository_id": null, - "commit_id": null, - "source_id": 68, - "source_type": "Build", + "commit_id": 7, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 71, + "id": 70, "repository_id": null, "commit_id": null, - "source_id": 13, - "source_type": "Request", + "source_type": "Build", + "source_id": 69, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 72, "repository_id": null, "commit_id": null, - "source_id": 13, "source_type": "Request", + "source_id": 13, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_7-56.json b/spec/support/expected_files/remove_repo_with_dependencies/job_7-56.json index c57ce12..963fd50 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_7-56.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_7-56.json @@ -5,22 +5,22 @@ "id": 7, "repository_id": null, "commit_id": null, - "source_id": 1, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 52, + "id": 8, "repository_id": null, "commit_id": null, - "source_id": 51, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 54, + "id": 53, "repository_id": null, "commit_id": null, - "source_id": 11, - "source_type": "Request", + "source_type": "Build", + "source_id": 52, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 55, "repository_id": null, "commit_id": null, - "source_id": 11, "source_type": "Request", + "source_id": 11, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 56, - "repository_id": 1, + "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 11, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_74-81.json b/spec/support/expected_files/remove_repo_with_dependencies/job_73-80.json similarity index 65% rename from spec/support/expected_files/remove_org_with_dependencies/job_74-81.json rename to spec/support/expected_files/remove_repo_with_dependencies/job_73-80.json index 9b7f8c4..0c1cdc9 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_74-81.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_73-80.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 74, + "id": 73, "repository_id": null, "commit_id": null, - "source_id": 73, - "source_type": "Build", + "source_type": "Request", + "source_id": 13, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 76, + "id": 75, "repository_id": null, "commit_id": null, - "source_id": 15, - "source_type": "Request", + "source_type": "Build", + "source_id": 74, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 77, "repository_id": null, "commit_id": null, - "source_id": 15, "source_type": "Request", + "source_id": 15, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 79, + "id": 78, "repository_id": null, "commit_id": null, - "source_id": 78, - "source_type": "Build", + "source_type": "Request", + "source_id": 15, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 81, + "id": 80, "repository_id": null, - "commit_id": 219, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 79, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_82-89.json b/spec/support/expected_files/remove_repo_with_dependencies/job_82-88.json similarity index 66% rename from spec/support/expected_files/remove_user_with_dependencies/job_82-89.json rename to spec/support/expected_files/remove_repo_with_dependencies/job_82-88.json index 210a41d..c9e2699 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_82-89.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_82-88.json @@ -4,23 +4,23 @@ { "id": 82, "repository_id": null, - "commit_id": 219, - "source_id": null, + "commit_id": 9, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 84, + "id": 83, "repository_id": null, - "commit_id": null, - "source_id": 83, - "source_type": "Build", + "commit_id": 9, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 86, + "id": 85, "repository_id": null, "commit_id": null, - "source_id": 17, - "source_type": "Request", + "source_type": "Build", + "source_id": 84, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 87, "repository_id": null, "commit_id": null, - "source_id": 17, "source_type": "Request", + "source_id": 17, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 89, + "id": 88, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 17, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 37 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_90-94.json b/spec/support/expected_files/remove_repo_with_dependencies/job_90-94.json index b10ae33..f967fa6 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_90-94.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_90-94.json @@ -5,22 +5,22 @@ "id": 90, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 37 + "stage_id": 19, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 91, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 38 + "stage_id": 19, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 92, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 38 + "stage_id": 20, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 93, "repository_id": null, "commit_id": null, - "source_id": 88, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 20, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 94, "repository_id": null, "commit_id": null, - "source_id": 88, "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_139-147.json b/spec/support/expected_files/remove_repo_with_dependencies/job_95-144.json similarity index 66% rename from spec/support/expected_files/remove_org_with_dependencies/job_139-147.json rename to spec/support/expected_files/remove_repo_with_dependencies/job_95-144.json index b406dc8..ee547d0 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_139-147.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_95-144.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 139, + "id": 95, "repository_id": null, "commit_id": null, - "source_id": 138, "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 141, + "id": 96, "repository_id": null, "commit_id": null, - "source_id": 29, - "source_type": "Request", + "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 142, + "id": 141, "repository_id": null, "commit_id": null, - "source_id": 29, - "source_type": "Request", + "source_type": "Build", + "source_id": 140, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 144, + "id": 143, "repository_id": null, "commit_id": null, - "source_id": 143, - "source_type": "Build", + "source_type": "Request", + "source_id": 29, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 147, + "id": 144, "repository_id": null, "commit_id": null, - "source_id": 146, - "source_type": "Build", + "source_type": "Request", + "source_id": 29, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/job_config_1-2.json new file mode 100644 index 0000000..381267e --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "job_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_version_1-19.json b/spec/support/expected_files/remove_repo_with_dependencies/job_version_1-19.json new file mode 100644 index 0000000..b94cc0a --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_version_1-19.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 1, + "job_id": 6, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 2, + "job_id": 6, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 17, + "job_id": 55, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 18, + "job_id": 55, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 19, + "job_id": 57, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_version_20-24.json b/spec/support/expected_files/remove_repo_with_dependencies/job_version_20-24.json new file mode 100644 index 0000000..3abad23 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_version_20-24.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 20, + "job_id": 57, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 21, + "job_id": 62, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 22, + "job_id": 62, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 23, + "job_id": 67, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 24, + "job_id": 67, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_version_25-29.json b/spec/support/expected_files/remove_repo_with_dependencies/job_version_25-29.json new file mode 100644 index 0000000..d9a4740 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_version_25-29.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 25, + "job_id": 72, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 26, + "job_id": 72, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 27, + "job_id": 77, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 28, + "job_id": 77, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 29, + "job_id": 82, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_version_30-34.json b/spec/support/expected_files/remove_repo_with_dependencies/job_version_30-34.json new file mode 100644 index 0000000..84e659e --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_version_30-34.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 30, + "job_id": 82, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 31, + "job_id": 87, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 32, + "job_id": 87, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 33, + "job_id": 94, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 34, + "job_id": 94, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_version_49-53.json b/spec/support/expected_files/remove_repo_with_dependencies/job_version_49-53.json new file mode 100644 index 0000000..cdc8a86 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_version_49-53.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 49, + "job_id": 143, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 50, + "job_id": 143, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 51, + "job_id": 151, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 52, + "job_id": 151, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 53, + "job_id": 156, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_version_54-58.json b/spec/support/expected_files/remove_repo_with_dependencies/job_version_54-58.json new file mode 100644 index 0000000..5e42704 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_version_54-58.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 54, + "job_id": 156, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 55, + "job_id": 161, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 56, + "job_id": 161, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 57, + "job_id": 169, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 58, + "job_id": 169, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_version_59-62.json b/spec/support/expected_files/remove_repo_with_dependencies/job_version_59-62.json new file mode 100644 index 0000000..ed6c15a --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/job_version_59-62.json @@ -0,0 +1,53 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 59, + "job_id": 171, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 60, + "job_id": 171, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 61, + "job_id": 176, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 62, + "job_id": 176, + "number": null, + "state": null, + "created_at": "2021-09-01 15:07:54 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/log_1-19.json b/spec/support/expected_files/remove_repo_with_dependencies/log_1-19.json deleted file mode 100644 index 5c383ae..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/log_1-19.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 1, - "job_id": 6, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 2, - "job_id": 6, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 17, - "job_id": 54, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 18, - "job_id": 54, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 19, - "job_id": 56, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/log_20-24.json b/spec/support/expected_files/remove_repo_with_dependencies/log_20-24.json deleted file mode 100644 index 6a630c5..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/log_20-24.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 20, - "job_id": 56, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 21, - "job_id": 61, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 22, - "job_id": 61, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 23, - "job_id": 66, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 24, - "job_id": 66, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/log_25-29.json b/spec/support/expected_files/remove_repo_with_dependencies/log_25-29.json deleted file mode 100644 index a62db92..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/log_25-29.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 25, - "job_id": 71, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 26, - "job_id": 71, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 27, - "job_id": 76, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 28, - "job_id": 76, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 29, - "job_id": 81, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/log_30-34.json b/spec/support/expected_files/remove_repo_with_dependencies/log_30-34.json deleted file mode 100644 index 4bc8d2d..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/log_30-34.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 30, - "job_id": 81, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 31, - "job_id": 86, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 32, - "job_id": 86, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 33, - "job_id": 93, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 34, - "job_id": 93, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/log_49-53.json b/spec/support/expected_files/remove_repo_with_dependencies/log_49-53.json deleted file mode 100644 index 897a624..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/log_49-53.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 49, - "job_id": 141, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 50, - "job_id": 141, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 51, - "job_id": 149, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 52, - "job_id": 149, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 53, - "job_id": 154, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/log_54-56.json b/spec/support/expected_files/remove_repo_with_dependencies/log_54-56.json deleted file mode 100644 index d607b61..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/log_54-56.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 54, - "job_id": 154, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 55, - "job_id": 159, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 56, - "job_id": 159, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/message_14-26.json b/spec/support/expected_files/remove_repo_with_dependencies/message_14-26.json index e9efb63..4792714 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/message_14-26.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/message_14-26.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 15, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 16, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 25, @@ -42,8 +51,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 26, @@ -53,8 +65,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/message_27-30.json b/spec/support/expected_files/remove_repo_with_dependencies/message_27-30.json deleted file mode 100644 index 048d614..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/message_27-30.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "table_name": "messages", - "data": [ - { - "id": 27, - "subject_id": 31, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - }, - { - "id": 28, - "subject_id": 31, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - }, - { - "id": 29, - "subject_id": 33, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - }, - { - "id": 30, - "subject_id": 33, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/message_27-47.json b/spec/support/expected_files/remove_repo_with_dependencies/message_27-31.json similarity index 51% rename from spec/support/expected_files/remove_org_with_dependencies/message_27-47.json rename to spec/support/expected_files/remove_repo_with_dependencies/message_27-31.json index c215996..cd08826 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/message_27-47.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/message_27-31.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 28, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 29, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 30, @@ -42,19 +51,25 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { - "id": 47, - "subject_id": 55, + "id": 31, + "subject_id": 35, "subject_type": "Request", "level": null, "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/message_32-34.json b/spec/support/expected_files/remove_repo_with_dependencies/message_32-34.json new file mode 100644 index 0000000..75226d6 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/message_32-34.json @@ -0,0 +1,47 @@ +{ + "table_name": "messages", + "data": [ + { + "id": 32, + "subject_id": 35, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 33, + "subject_id": 37, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 34, + "subject_id": 37, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/message_9-13.json b/spec/support/expected_files/remove_repo_with_dependencies/message_9-13.json index 543c734..6c3b210 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/message_9-13.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/message_9-13.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 10, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 11, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 12, @@ -42,8 +51,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null }, { "id": 13, @@ -53,8 +65,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_1.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_1.json index 2d2b64a..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_1.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_1.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 20 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 21 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 18 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 19 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 1 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_10.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_10.json index 101c4f1..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_10.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_10.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 56 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 32 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 106 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 143, - "related_id": 59 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 58 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_11.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_11.json index b3dbda1..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_11.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_11.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 34 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 107 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 146, - "related_id": 61 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 60 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 35 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_12.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_12.json index b73dca0..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_12.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_12.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 108 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 151, - "related_id": 63 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 62 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 36 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 109 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_13.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_13.json index 4dd99bc..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_13.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_13.json @@ -1,29 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 156, - "related_id": 65 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 64 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 37 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 110 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_14.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_14.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_14.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_15.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_15.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_15.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_16.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_16.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_16.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_2.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_2.json index be7794f..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_2.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_2.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 6 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 77 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 82 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 51, - "related_id": 23 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 22 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_3.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_3.json index 9187a39..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_3.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_3.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 13 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 85 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 58, - "related_id": 25 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 24 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 14 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_4.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_4.json index 0369249..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_4.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_4.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 87 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 63, - "related_id": 27 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 26 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 15 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 88 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_5.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_5.json index c056257..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_5.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_5.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 68, - "related_id": 29 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 28 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 16 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 89 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 73, - "related_id": 31 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_6.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_6.json index 2b3a562..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_6.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_6.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 30 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 17 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 90 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 78, - "related_id": 33 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 32 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_7.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_7.json index dda4205..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_7.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_7.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 18 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 92 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 83, - "related_id": 35 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 34 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 19 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_8.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_8.json index 33d14e6..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_8.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_8.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 93 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 88, - "related_id": 54 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 88, - "related_id": 55 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 52 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 53 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_9.json b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_9.json index 2cff1ec..83fb8fc 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_9.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/nullified_relationships/build_9.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 20 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 25 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 98 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 103 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 138, - "related_id": 57 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/permission_3-4.json b/spec/support/expected_files/remove_repo_with_dependencies/permission_3-4.json index 56c2d35..52eb838 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/permission_3-4.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/permission_3-4.json @@ -7,7 +7,9 @@ "repository_id": 1, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null }, { "id": 4, @@ -15,7 +17,9 @@ "repository_id": 1, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/pull_request_3-6.json b/spec/support/expected_files/remove_repo_with_dependencies/pull_request_3-6.json index 7a6a2c5..96e21c8 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/pull_request_3-6.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/pull_request_3-6.json @@ -10,8 +10,15 @@ "head_repo_github_id": null, "head_repo_slug": null, "head_ref": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null }, { "id": 6, @@ -22,8 +29,15 @@ "head_repo_github_id": null, "head_repo_slug": null, "head_ref": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_1-19.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_1-19.json index 858cbb5..4e7316c 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_1-19.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_1-19.json @@ -11,15 +11,15 @@ }, { "id": 17, - "job_id": 54 + "job_id": 55 }, { "id": 18, - "job_id": 54 + "job_id": 55 }, { "id": 19, - "job_id": 56 + "job_id": 57 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_20-24.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_20-24.json index 5274e58..ed9d9e2 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_20-24.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_20-24.json @@ -3,23 +3,23 @@ "data": [ { "id": 20, - "job_id": 56 + "job_id": 57 }, { "id": 21, - "job_id": 61 + "job_id": 62 }, { "id": 22, - "job_id": 61 + "job_id": 62 }, { "id": 23, - "job_id": 66 + "job_id": 67 }, { "id": 24, - "job_id": 66 + "job_id": 67 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_25-29.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_25-29.json index 1fc2d88..af6eea8 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_25-29.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_25-29.json @@ -3,23 +3,23 @@ "data": [ { "id": 25, - "job_id": 71 + "job_id": 72 }, { "id": 26, - "job_id": 71 + "job_id": 72 }, { "id": 27, - "job_id": 76 + "job_id": 77 }, { "id": 28, - "job_id": 76 + "job_id": 77 }, { "id": 29, - "job_id": 81 + "job_id": 82 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_30-34.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_30-34.json index 38ef88d..a73a124 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_30-34.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_30-34.json @@ -3,23 +3,23 @@ "data": [ { "id": 30, - "job_id": 81 + "job_id": 82 }, { "id": 31, - "job_id": 86 + "job_id": 87 }, { "id": 32, - "job_id": 86 + "job_id": 87 }, { "id": 33, - "job_id": 93 + "job_id": 94 }, { "id": 34, - "job_id": 93 + "job_id": 94 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_49-53.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_49-53.json index 98c6643..2a5b437 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_49-53.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_49-53.json @@ -3,23 +3,23 @@ "data": [ { "id": 49, - "job_id": 141 + "job_id": 143 }, { "id": 50, - "job_id": 141 + "job_id": 143 }, { "id": 51, - "job_id": 149 + "job_id": 151 }, { "id": 52, - "job_id": 149 + "job_id": 151 }, { "id": 53, - "job_id": 154 + "job_id": 156 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_54-56.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_54-56.json deleted file mode 100644 index dcd0d35..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_54-56.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "table_name": "queueable_jobs", - "data": [ - { - "id": 54, - "job_id": 154 - }, - { - "id": 55, - "job_id": 159 - }, - { - "id": 56, - "job_id": 159 - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_54-58.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_54-58.json new file mode 100644 index 0000000..318b4b8 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_54-58.json @@ -0,0 +1,25 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 54, + "job_id": 156 + }, + { + "id": 55, + "job_id": 161 + }, + { + "id": 56, + "job_id": 161 + }, + { + "id": 57, + "job_id": 169 + }, + { + "id": 58, + "job_id": 169 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_59-62.json b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_59-62.json new file mode 100644 index 0000000..85f4ecc --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/queueable_job_59-62.json @@ -0,0 +1,21 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 59, + "job_id": 171 + }, + { + "id": 60, + "job_id": 171 + }, + { + "id": 61, + "job_id": 176 + }, + { + "id": 62, + "job_id": 176 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/repo_count_1-1.json b/spec/support/expected_files/remove_repo_with_dependencies/repo_count_1-1.json new file mode 100644 index 0000000..31fee31 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/repo_count_1-1.json @@ -0,0 +1,17 @@ +{ + "table_name": "repo_counts", + "data": [ + { + "repository_id": 1, + "requests": null, + "commits": null, + "branches": null, + "pull_requests": null, + "tags": null, + "builds": null, + "stages": null, + "jobs": null, + "range": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/repository_1-1.json b/spec/support/expected_files/remove_repo_with_dependencies/repository_1-1.json index ce544de..122c3c8 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/repository_1-1.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/repository_1-1.json @@ -5,8 +5,8 @@ "id": 1, "name": null, "url": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "last_build_id": null, "last_build_number": null, "last_build_started_at": null, @@ -16,8 +16,8 @@ "active": null, "description": null, "last_build_duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "private": false, "last_build_state": null, "github_id": null, @@ -26,7 +26,20 @@ "settings": null, "next_build_number": null, "invalidated_at": null, - "current_build_id": null + "current_build_id": null, + "org_id": null, + "com_id": null, + "migrating": null, + "migrated_at": null, + "active_on_org": null, + "managed_by_installation_at": null, + "migration_status": null, + "history_migration_status": null, + "vcs_type": "GithubRepository", + "vcs_id": null, + "fork": null, + "vcs_slug": null, + "vcs_source_host": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_11-15.json b/spec/support/expected_files/remove_repo_with_dependencies/request_11-15.json index 22d2548..1139876 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/request_11-15.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_11-15.json @@ -7,27 +7,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 12, @@ -35,83 +39,95 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 13, "repository_id": null, - "commit_id": 217, + "commit_id": 7, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 14, "repository_id": null, - "commit_id": 217, + "commit_id": 7, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 15, @@ -119,27 +135,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_16-30.json b/spec/support/expected_files/remove_repo_with_dependencies/request_16-30.json index 6822b21..e9e9779 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/request_16-30.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_16-30.json @@ -7,83 +7,95 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 17, "repository_id": null, - "commit_id": 219, + "commit_id": 9, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 18, "repository_id": null, - "commit_id": 219, + "commit_id": 9, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 29, @@ -91,27 +103,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 30, @@ -119,27 +135,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/request_31-55.json b/spec/support/expected_files/remove_repo_with_dependencies/request_31-35.json similarity index 63% rename from spec/support/expected_files/remove_org_with_dependencies/request_31-55.json rename to spec/support/expected_files/remove_repo_with_dependencies/request_31-35.json index 2067bdf..0341453 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/request_31-55.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_31-35.json @@ -4,58 +4,66 @@ { "id": 31, "repository_id": null, - "commit_id": 227, + "commit_id": 17, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 32, "repository_id": null, - "commit_id": 227, + "commit_id": 17, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 33, @@ -63,27 +71,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 34, @@ -91,55 +103,63 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { - "id": 55, + "id": 35, "repository_id": null, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 1, - "sender_type": "Organization" + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_56-58.json b/spec/support/expected_files/remove_repo_with_dependencies/request_36-38.json similarity index 58% rename from spec/support/expected_files/remove_user_with_dependencies/request_56-58.json rename to spec/support/expected_files/remove_repo_with_dependencies/request_36-38.json index eb2d24d..5e7d698 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/request_56-58.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_36-38.json @@ -2,88 +2,100 @@ "table_name": "requests", "data": [ { - "id": 56, + "id": 36, "repository_id": null, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 9, - "sender_type": "User" + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { - "id": 57, + "id": 37, "repository_id": null, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": 9, - "owner_type": "User", + "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null }, { - "id": 58, + "id": 38, "repository_id": null, "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": 9, - "owner_type": "User", + "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/request_config_1-2.json new file mode 100644 index 0000000..3721f6a --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_payload_14-26.json b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_14-26.json new file mode 100644 index 0000000..7502bfc --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 14, + "request_id": 15, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 15, + "request_id": 17, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 16, + "request_id": 17, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 25, + "request_id": 29, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 26, + "request_id": 29, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_payload_27-31.json b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_27-31.json new file mode 100644 index 0000000..332d471 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 27, + "request_id": 31, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 28, + "request_id": 31, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 29, + "request_id": 33, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 30, + "request_id": 33, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 31, + "request_id": 35, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_payload_32-34.json b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_32-34.json new file mode 100644 index 0000000..b509b8d --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_32-34.json @@ -0,0 +1,29 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 32, + "request_id": 35, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 33, + "request_id": 37, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 34, + "request_id": 37, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_payload_9-13.json b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_9-13.json new file mode 100644 index 0000000..f25a094 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_payload_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 9, + "request_id": 11, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 10, + "request_id": 11, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 11, + "request_id": 13, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 12, + "request_id": 13, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + }, + { + "id": 13, + "request_id": 15, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:07:54 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_raw_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_config_1-2.json new file mode 100644 index 0000000..c72323d --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_config_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "request_raw_configs", + "data": [ + { + "id": 1, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + }, + { + "id": 2, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_14-26.json b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_14-26.json new file mode 100644 index 0000000..9590ef0 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 14, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 15, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 16, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 25, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 26, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_27-31.json b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_27-31.json new file mode 100644 index 0000000..46d82ef --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 27, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 28, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 29, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 30, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 31, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_32-36.json b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_32-36.json new file mode 100644 index 0000000..fe9accd --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_32-36.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 32, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 33, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 34, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 35, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 36, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_9-13.json b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_9-13.json new file mode 100644 index 0000000..613d490 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_raw_configuration_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 9, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 10, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 11, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 12, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 13, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/request_yaml_config_1-2.json b/spec/support/expected_files/remove_repo_with_dependencies/request_yaml_config_1-2.json new file mode 100644 index 0000000..568e31b --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/request_yaml_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_yaml_configs", + "data": [ + { + "id": 1, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/ssl_key_3-4.json b/spec/support/expected_files/remove_repo_with_dependencies/ssl_key_3-4.json new file mode 100644 index 0000000..30e94cb --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/ssl_key_3-4.json @@ -0,0 +1,25 @@ +{ + "table_name": "ssl_keys", + "data": [ + { + "id": 3, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 4, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/ssl_key_33-34.json b/spec/support/expected_files/remove_repo_with_dependencies/ssl_key_33-34.json deleted file mode 100644 index 2261aac..0000000 --- a/spec/support/expected_files/remove_repo_with_dependencies/ssl_key_33-34.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "table_name": "ssl_keys", - "data": [ - { - "id": 33, - "repository_id": 1, - "public_key": null, - "private_key": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - }, - { - "id": 34, - "repository_id": 1, - "public_key": null, - "private_key": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/stage_20-32.json b/spec/support/expected_files/remove_repo_with_dependencies/stage_1-13.json similarity index 58% rename from spec/support/expected_files/remove_user_with_dependencies/stage_20-32.json rename to spec/support/expected_files/remove_repo_with_dependencies/stage_1-13.json index 91fcb2e..ccba356 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/stage_20-32.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/stage_1-13.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 20, + "id": 1, "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 21, + "id": 2, "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 30, - "build_id": 51, + "id": 3, + "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 31, - "build_id": 58, + "id": 12, + "build_id": 52, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 32, - "build_id": 63, + "id": 13, + "build_id": 59, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/stage_14-18.json b/spec/support/expected_files/remove_repo_with_dependencies/stage_14-18.json new file mode 100644 index 0000000..56d9de4 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/stage_14-18.json @@ -0,0 +1,60 @@ +{ + "table_name": "stages", + "data": [ + { + "id": 14, + "build_id": 64, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 15, + "build_id": 69, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 16, + "build_id": 74, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 17, + "build_id": 79, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 18, + "build_id": 84, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/stage_19-31.json b/spec/support/expected_files/remove_repo_with_dependencies/stage_19-31.json new file mode 100644 index 0000000..1983714 --- /dev/null +++ b/spec/support/expected_files/remove_repo_with_dependencies/stage_19-31.json @@ -0,0 +1,60 @@ +{ + "table_name": "stages", + "data": [ + { + "id": 19, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 20, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 21, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 30, + "build_id": 140, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 31, + "build_id": 145, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/stage_33-37.json b/spec/support/expected_files/remove_repo_with_dependencies/stage_32-36.json similarity index 56% rename from spec/support/expected_files/remove_repo_with_dependencies/stage_33-37.json rename to spec/support/expected_files/remove_repo_with_dependencies/stage_32-36.json index 4b99471..f6c6757 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/stage_33-37.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/stage_32-36.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 33, - "build_id": 68, + "id": 32, + "build_id": 148, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 34, - "build_id": 73, + "id": 33, + "build_id": 153, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 35, - "build_id": 78, + "id": 34, + "build_id": 158, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 36, - "build_id": 83, + "id": 35, + "build_id": 163, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 37, - "build_id": 88, + "id": 36, + "build_id": 166, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/stage_51-51.json b/spec/support/expected_files/remove_repo_with_dependencies/stage_37-37.json similarity index 57% rename from spec/support/expected_files/remove_repo_with_dependencies/stage_51-51.json rename to spec/support/expected_files/remove_repo_with_dependencies/stage_37-37.json index e540575..1fa0db9 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/stage_51-51.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/stage_37-37.json @@ -2,13 +2,15 @@ "table_name": "stages", "data": [ { - "id": 51, - "build_id": 156, + "id": 37, + "build_id": 173, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/star_3-4.json b/spec/support/expected_files/remove_repo_with_dependencies/star_3-4.json index 5b4cb04..d2c7878 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/star_3-4.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/star_3-4.json @@ -5,15 +5,15 @@ "id": 3, "repository_id": 1, "user_id": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" }, { "id": 4, "repository_id": 1, "user_id": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/tag_33-38.json b/spec/support/expected_files/remove_repo_with_dependencies/tag_33-38.json index 226824f..17e70ae 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/tag_33-38.json +++ b/spec/support/expected_files/remove_repo_with_dependencies/tag_33-38.json @@ -7,8 +7,10 @@ "name": null, "last_build_id": null, "exists_on_github": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null }, { "id": 38, @@ -16,8 +18,10 @@ "name": null, "last_build_id": null, "exists_on_github": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:07:54 UTC", + "updated_at": "2021-09-01 15:07:54 UTC", + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/abuse_14-26.json b/spec/support/expected_files/remove_user_with_dependencies/abuse_14-26.json index 7f20e54..12f2084 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/abuse_14-26.json +++ b/spec/support/expected_files/remove_user_with_dependencies/abuse_14-26.json @@ -3,53 +3,53 @@ "data": [ { "id": 14, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 15, "level": 14, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 15, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 17, "level": 15, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 16, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 17, "level": 16, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 25, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 29, "level": 25, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 26, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 29, "level": 26, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/abuse_27-30.json b/spec/support/expected_files/remove_user_with_dependencies/abuse_27-31.json similarity index 51% rename from spec/support/expected_files/remove_repo_with_dependencies/abuse_27-30.json rename to spec/support/expected_files/remove_user_with_dependencies/abuse_27-31.json index b5c7a3f..df4b6fe 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/abuse_27-30.json +++ b/spec/support/expected_files/remove_user_with_dependencies/abuse_27-31.json @@ -3,43 +3,53 @@ "data": [ { "id": 27, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 31, "level": 27, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 28, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 31, "level": 28, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 29, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 33, "level": 29, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 30, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 33, "level": 30, "reason": "some text", - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 31, + "owner_type": null, + "owner_id": null, + "request_id": 35, + "level": 31, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/abuse_32-52.json b/spec/support/expected_files/remove_user_with_dependencies/abuse_32-52.json new file mode 100644 index 0000000..d2830b3 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/abuse_32-52.json @@ -0,0 +1,55 @@ +{ + "table_name": "abuses", + "data": [ + { + "id": 32, + "owner_type": null, + "owner_id": null, + "request_id": 35, + "level": 32, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 33, + "owner_type": null, + "owner_id": null, + "request_id": 37, + "level": 33, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 34, + "owner_type": null, + "owner_id": null, + "request_id": 37, + "level": 34, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 51, + "owner_type": null, + "owner_id": null, + "request_id": 59, + "level": 51, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 52, + "owner_type": null, + "owner_id": null, + "request_id": 59, + "level": 52, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/abuse_48-52.json b/spec/support/expected_files/remove_user_with_dependencies/abuse_48-52.json deleted file mode 100644 index fbe53d3..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/abuse_48-52.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "abuses", - "data": [ - { - "id": 48, - "owner_id": null, - "owner_type": null, - "request_id": 55, - "level": 48, - "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 49, - "owner_id": null, - "owner_type": null, - "request_id": 57, - "level": 49, - "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 50, - "owner_id": null, - "owner_type": null, - "request_id": 57, - "level": 50, - "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 51, - "owner_id": 9, - "owner_type": "User", - "request_id": null, - "level": 51, - "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 52, - "owner_id": 9, - "owner_type": "User", - "request_id": null, - "level": 52, - "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/abuse_53-56.json b/spec/support/expected_files/remove_user_with_dependencies/abuse_53-56.json new file mode 100644 index 0000000..301a2e1 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/abuse_53-56.json @@ -0,0 +1,45 @@ +{ + "table_name": "abuses", + "data": [ + { + "id": 53, + "owner_type": null, + "owner_id": null, + "request_id": 61, + "level": 53, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 54, + "owner_type": null, + "owner_id": null, + "request_id": 61, + "level": 54, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 55, + "owner_type": "User", + "owner_id": 1, + "request_id": null, + "level": 55, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 56, + "owner_type": "User", + "owner_id": 1, + "request_id": null, + "level": 56, + "reason": "some text", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/abuse_9-13.json b/spec/support/expected_files/remove_user_with_dependencies/abuse_9-13.json index 88eac13..10ba117 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/abuse_9-13.json +++ b/spec/support/expected_files/remove_user_with_dependencies/abuse_9-13.json @@ -3,53 +3,53 @@ "data": [ { "id": 9, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 11, "level": 9, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 10, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 11, "level": 10, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 11, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 13, "level": 11, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 12, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 13, "level": 12, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 13, - "owner_id": null, "owner_type": null, + "owner_id": null, "request_id": 15, "level": 13, "reason": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_1-19.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_1-19.json deleted file mode 100644 index eee2379..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_1-19.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 1, - "job_id": 6, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 2, - "job_id": 6, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 17, - "job_id": 54, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 18, - "job_id": 54, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 19, - "job_id": 56, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_20-24.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_20-24.json deleted file mode 100644 index 167cb99..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_20-24.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 20, - "job_id": 56, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 21, - "job_id": 61, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 22, - "job_id": 61, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 23, - "job_id": 66, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 24, - "job_id": 66, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_25-29.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_25-29.json deleted file mode 100644 index 5a81945..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_25-29.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 25, - "job_id": 71, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 26, - "job_id": 71, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 27, - "job_id": 76, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 28, - "job_id": 76, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 29, - "job_id": 81, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_30-34.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_30-34.json deleted file mode 100644 index 72f09bd..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_30-34.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 30, - "job_id": 81, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 31, - "job_id": 86, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 32, - "job_id": 86, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 33, - "job_id": 93, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 34, - "job_id": 93, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_49-53.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_49-53.json deleted file mode 100644 index 0b67fd6..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_49-53.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 49, - "job_id": 141, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 50, - "job_id": 141, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 51, - "job_id": 149, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 52, - "job_id": 149, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 53, - "job_id": 154, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_54-58.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_54-58.json deleted file mode 100644 index 343cd5f..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_54-58.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 54, - "job_id": 154, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 55, - "job_id": 159, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 56, - "job_id": 159, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 57, - "job_id": 166, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 58, - "job_id": 166, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_73-91.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_73-91.json deleted file mode 100644 index 30d0825..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_73-91.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 73, - "job_id": 216, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 74, - "job_id": 216, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 89, - "job_id": 264, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 90, - "job_id": 264, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 91, - "job_id": 269, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/annotation_92-94.json b/spec/support/expected_files/remove_user_with_dependencies/annotation_92-94.json deleted file mode 100644 index a79a8b5..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/annotation_92-94.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "table_name": "annotations", - "data": [ - { - "id": 92, - "job_id": 269, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 93, - "job_id": 271, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - }, - { - "id": 94, - "job_id": 271, - "url": null, - "description": "some text", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "annotation_provider_id": 0, - "status": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/branch_14-19.json b/spec/support/expected_files/remove_user_with_dependencies/branch_14-19.json new file mode 100644 index 0000000..751717a --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/branch_14-19.json @@ -0,0 +1,27 @@ +{ + "table_name": "branches", + "data": [ + { + "id": 14, + "repository_id": 1, + "last_build_id": null, + "name": "branch_14", + "exists_on_github": true, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 19, + "repository_id": 1, + "last_build_id": null, + "name": "branch_19", + "exists_on_github": true, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/branch_86-91.json b/spec/support/expected_files/remove_user_with_dependencies/branch_86-91.json deleted file mode 100644 index 9378d54..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/branch_86-91.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "table_name": "branches", - "data": [ - { - "id": 86, - "repository_id": 1, - "last_build_id": null, - "name": "branch_14", - "exists_on_github": true, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 91, - "repository_id": 1, - "last_build_id": null, - "name": "branch_19", - "exists_on_github": true, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/broadcast_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/broadcast_1-2.json index 727a751..1d7b73c 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/broadcast_1-2.json +++ b/spec/support/expected_files/remove_user_with_dependencies/broadcast_1-2.json @@ -3,24 +3,24 @@ "data": [ { "id": 1, - "recipient_id": 9, "recipient_type": "User", + "recipient_id": 1, "kind": null, "message": null, "expired": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "category": null }, { "id": 2, - "recipient_id": 9, "recipient_type": "User", + "recipient_id": 1, "kind": null, "message": null, "expired": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "category": null } ] diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_1-58.json b/spec/support/expected_files/remove_user_with_dependencies/build_1-59.json similarity index 53% rename from spec/support/expected_files/remove_user_with_dependencies/build_1-58.json rename to spec/support/expected_files/remove_user_with_dependencies/build_1-59.json index cc29e05..2180f90 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/build_1-58.json +++ b/spec/support/expected_files/remove_user_with_dependencies/build_1-59.json @@ -7,20 +7,30 @@ "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 50, + "id": 51, "repository_id": 1, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 51, + "id": 52, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 11, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 53, + "id": 54, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 11, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,38 +173,58 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 58, + "id": 59, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_143-151.json b/spec/support/expected_files/remove_user_with_dependencies/build_145-153.json similarity index 53% rename from spec/support/expected_files/remove_repo_with_dependencies/build_143-151.json rename to spec/support/expected_files/remove_user_with_dependencies/build_145-153.json index c500e64..4dc97b9 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/build_143-151.json +++ b/spec/support/expected_files/remove_user_with_dependencies/build_145-153.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 143, + "id": 145, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 145, + "id": 147, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": 33, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 146, + "id": 148, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, - "commit_id": 227, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 148, + "id": 150, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, - "commit_id": 227, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 151, + "id": 153, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 31, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_211-266.json b/spec/support/expected_files/remove_user_with_dependencies/build_155-165.json similarity index 51% rename from spec/support/expected_files/remove_org_with_dependencies/build_211-266.json rename to spec/support/expected_files/remove_user_with_dependencies/build_155-165.json index fec42d9..49a6e74 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/build_211-266.json +++ b/spec/support/expected_files/remove_user_with_dependencies/build_155-165.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 211, + "id": 155, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": null, + "request_id": 31, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 1, - "sender_type": "Organization" + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 260, + "id": 158, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": null, + "request_id": 33, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 1, - "sender_type": "Organization" + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 261, + "id": 160, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 55, + "request_id": 33, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 263, + "id": 163, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 55, + "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null }, { - "id": 266, + "id": 165, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 57, + "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_166-178.json b/spec/support/expected_files/remove_user_with_dependencies/build_166-178.json new file mode 100644 index 0000000..9025c59 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/build_166-178.json @@ -0,0 +1,230 @@ +{ + "table_name": "builds", + "data": [ + { + "id": 166, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 168, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 173, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 175, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 178, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": "User", + "owner_id": 1, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_211-266.json b/spec/support/expected_files/remove_user_with_dependencies/build_228-282.json similarity index 50% rename from spec/support/expected_files/remove_user_with_dependencies/build_211-266.json rename to spec/support/expected_files/remove_user_with_dependencies/build_228-282.json index 4ff3914..dfec309 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/build_211-266.json +++ b/spec/support/expected_files/remove_user_with_dependencies/build_228-282.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 211, + "id": 228, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, - "owner_type": null, + "owner_type": "User", + "owner_id": 1, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 9, - "sender_type": "User" + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 260, + "id": 229, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": 9, - "sender_type": "User" + "sender_type": "User", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 261, + "id": 279, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 55, + "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, - "sender_id": null, - "sender_type": null + "sender_type": "User", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 263, + "id": 280, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 55, + "request_id": 59, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 266, + "id": 282, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, - "request_id": 57, + "request_id": 59, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_268-268.json b/spec/support/expected_files/remove_user_with_dependencies/build_268-268.json deleted file mode 100644 index 4a201a7..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/build_268-268.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "table_name": "builds", - "data": [ - { - "id": 268, - "repository_id": null, - "number": null, - "started_at": null, - "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "config": null, - "commit_id": null, - "request_id": 57, - "state": null, - "duration": null, - "owner_id": null, - "owner_type": null, - "event_type": null, - "previous_state": null, - "pull_request_title": null, - "pull_request_number": null, - "branch": null, - "canceled_at": null, - "cached_matrix_ids": null, - "received_at": null, - "private": null, - "pull_request_id": null, - "branch_id": null, - "tag_id": null, - "sender_id": null, - "sender_type": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_285-287.json b/spec/support/expected_files/remove_user_with_dependencies/build_285-287.json new file mode 100644 index 0000000..b0a350c --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/build_285-287.json @@ -0,0 +1,95 @@ +{ + "table_name": "builds", + "data": [ + { + "id": 285, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 61, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 287, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 61, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/build_60-70.json b/spec/support/expected_files/remove_user_with_dependencies/build_61-71.json similarity index 52% rename from spec/support/expected_files/remove_org_with_dependencies/build_60-70.json rename to spec/support/expected_files/remove_user_with_dependencies/build_61-71.json index 30dd45c..c2e4ec3 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/build_60-70.json +++ b/spec/support/expected_files/remove_user_with_dependencies/build_61-71.json @@ -2,55 +2,80 @@ "table_name": "builds", "data": [ { - "id": 60, + "id": 61, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 63, + "id": 64, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, - "commit_id": 217, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 65, + "id": 66, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, - "commit_id": 217, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 68, + "id": 69, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 13, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 70, + "id": 71, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 13, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_73-83.json b/spec/support/expected_files/remove_user_with_dependencies/build_74-84.json similarity index 52% rename from spec/support/expected_files/remove_repo_with_dependencies/build_73-83.json rename to spec/support/expected_files/remove_user_with_dependencies/build_74-84.json index 61d3d0e..36c9b1e 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/build_73-83.json +++ b/spec/support/expected_files/remove_user_with_dependencies/build_74-84.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 73, + "id": 74, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 15, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 75, + "id": 76, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 15, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 78, + "id": 79, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, - "commit_id": 219, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 80, + "id": 81, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, - "commit_id": 219, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 83, + "id": 84, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 17, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/build_85-140.json b/spec/support/expected_files/remove_user_with_dependencies/build_86-142.json similarity index 53% rename from spec/support/expected_files/remove_repo_with_dependencies/build_85-140.json rename to spec/support/expected_files/remove_user_with_dependencies/build_86-142.json index 53302bf..04fb9b2 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/build_85-140.json +++ b/spec/support/expected_files/remove_user_with_dependencies/build_86-142.json @@ -2,25 +2,35 @@ "table_name": "builds", "data": [ { - "id": 85, + "id": 86, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 17, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -28,29 +38,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 88, + "id": 89, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -58,29 +83,44 @@ "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 137, + "id": 139, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": null, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -88,29 +128,44 @@ "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 138, + "id": 140, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 29, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -118,29 +173,44 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null }, { - "id": 140, + "id": 142, "repository_id": null, "number": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "config": null, + "log": "", + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, "commit_id": null, "request_id": 29, "state": null, "duration": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "event_type": null, "previous_state": null, "pull_request_title": null, "pull_request_number": null, - "branch": null, "canceled_at": null, "cached_matrix_ids": null, "received_at": null, @@ -148,8 +218,13 @@ "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/build_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/build_config_1-2.json new file mode 100644 index 0000000..d314a1a --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/build_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "build_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/commit_228-228.json b/spec/support/expected_files/remove_user_with_dependencies/commit_18-18.json similarity index 68% rename from spec/support/expected_files/remove_org_with_dependencies/commit_228-228.json rename to spec/support/expected_files/remove_user_with_dependencies/commit_18-18.json index 4317644..8d1fedf 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/commit_228-228.json +++ b/spec/support/expected_files/remove_user_with_dependencies/commit_18-18.json @@ -2,7 +2,7 @@ "table_name": "commits", "data": [ { - "id": 228, + "id": 18, "repository_id": null, "commit": null, "ref": null, @@ -14,10 +14,12 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "branch_id": null, - "tag_id": 33 + "tag_id": 33, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/commit_217-227.json b/spec/support/expected_files/remove_user_with_dependencies/commit_7-17.json similarity index 63% rename from spec/support/expected_files/remove_repo_with_dependencies/commit_217-227.json rename to spec/support/expected_files/remove_user_with_dependencies/commit_7-17.json index 0459d3d..c3f6cf8 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/commit_217-227.json +++ b/spec/support/expected_files/remove_user_with_dependencies/commit_7-17.json @@ -2,7 +2,7 @@ "table_name": "commits", "data": [ { - "id": 217, + "id": 7, "repository_id": null, "commit": null, "ref": null, @@ -14,13 +14,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "branch_id": 86, - "tag_id": null + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 218, + "id": 8, "repository_id": null, "commit": null, "ref": null, @@ -32,13 +34,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", - "branch_id": 86, - "tag_id": null + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 219, + "id": 9, "repository_id": 1, "commit": null, "ref": null, @@ -50,13 +54,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "branch_id": null, - "tag_id": null + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 220, + "id": 10, "repository_id": 1, "commit": null, "ref": null, @@ -68,13 +74,15 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "branch_id": null, - "tag_id": null + "tag_id": null, + "org_id": null, + "com_id": null }, { - "id": 227, + "id": 17, "repository_id": null, "commit": null, "ref": null, @@ -86,10 +94,12 @@ "committer_email": null, "author_name": null, "author_email": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "branch_id": null, - "tag_id": 33 + "tag_id": 33, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/cron_2-2.json b/spec/support/expected_files/remove_user_with_dependencies/cron_2-2.json new file mode 100644 index 0000000..47efa7c --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/cron_2-2.json @@ -0,0 +1,18 @@ +{ + "table_name": "crons", + "data": [ + { + "id": 2, + "branch_id": 14, + "interval": "test", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "next_run": null, + "last_run": null, + "dont_run_if_recent_build_exists": false, + "org_id": null, + "com_id": null, + "active": true + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/cron_3-4.json b/spec/support/expected_files/remove_user_with_dependencies/cron_3-4.json deleted file mode 100644 index f85171a..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/cron_3-4.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "table_name": "crons", - "data": [ - { - "id": 3, - "branch_id": 86, - "interval": "test", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "next_run": null, - "last_run": null, - "dont_run_if_recent_build_exists": false - }, - { - "id": 4, - "branch_id": 86, - "interval": "test", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "next_run": null, - "last_run": null, - "dont_run_if_recent_build_exists": false - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_100-102.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_100-102.json new file mode 100644 index 0000000..5c271ef --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_100-102.json @@ -0,0 +1,140 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 100, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 59, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 101, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 61, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 102, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 61, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_17-21.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_17-21.json new file mode 100644 index 0000000..97ad375 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_17-21.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 17, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 11, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 18, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 11, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 19, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 20, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 21, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 13, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_22-26.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_22-26.json new file mode 100644 index 0000000..36a51fd --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_22-26.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 22, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 13, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 23, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 24, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 7, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 25, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 15, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 26, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 15, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_27-47.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_27-47.json new file mode 100644 index 0000000..960474f --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_27-47.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 27, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 17, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 28, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 17, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 29, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 30, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 9, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 47, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 29, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_48-52.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_48-52.json new file mode 100644 index 0000000..f2f7b90 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_48-52.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 48, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 29, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 49, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 50, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 51, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 31, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 52, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 31, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_53-57.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_53-57.json new file mode 100644 index 0000000..0623b71 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_53-57.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 53, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 54, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": 17, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 55, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 33, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 56, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 33, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 57, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_58-62.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_58-62.json new file mode 100644 index 0000000..d5cebd2 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_58-62.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 58, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 59, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null + }, + { + "id": 60, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "unique_number": null + }, + { + "id": 61, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 62, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 35, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_63-99.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_63-99.json new file mode 100644 index 0000000..f3f4a56 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_63-99.json @@ -0,0 +1,230 @@ +{ + "table_name": "deleted_builds", + "data": [ + { + "id": 63, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 64, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 37, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 65, + "repository_id": 1, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 66, + "repository_id": 1, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": null, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + }, + { + "id": 99, + "repository_id": null, + "number": null, + "started_at": null, + "finished_at": null, + "log": null, + "message": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "ref": null, + "branch": null, + "github_payload": null, + "compare_url": null, + "token": null, + "commit_id": null, + "request_id": 59, + "state": null, + "duration": null, + "owner_type": null, + "owner_id": null, + "event_type": null, + "previous_state": null, + "pull_request_title": null, + "pull_request_number": null, + "canceled_at": null, + "cached_matrix_ids": null, + "received_at": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "unique_number": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_build_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_config_1-2.json new file mode 100644 index 0000000..6e20cc6 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_build_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_build_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_commit_14-14.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_commit_14-14.json new file mode 100644 index 0000000..4212e90 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_commit_14-14.json @@ -0,0 +1,25 @@ +{ + "table_name": "deleted_commits", + "data": [ + { + "id": 14, + "repository_id": 1, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": null, + "tag_id": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_commit_5-13.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_commit_5-13.json new file mode 100644 index 0000000..5b08d68 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_commit_5-13.json @@ -0,0 +1,105 @@ +{ + "table_name": "deleted_commits", + "data": [ + { + "id": 5, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null + }, + { + "id": 6, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": 14, + "tag_id": null, + "org_id": null, + "com_id": null + }, + { + "id": 11, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": null, + "tag_id": 33, + "org_id": null, + "com_id": null + }, + { + "id": 12, + "repository_id": null, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": null, + "tag_id": 33, + "org_id": null, + "com_id": null + }, + { + "id": 13, + "repository_id": 1, + "commit": null, + "ref": null, + "branch": null, + "message": null, + "compare_url": null, + "committed_at": null, + "committer_name": null, + "committer_email": null, + "author_name": null, + "author_email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "branch_id": null, + "tag_id": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_15-19.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_15-19.json new file mode 100644 index 0000000..00ae614 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_15-19.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 15, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 1, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 16, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 11, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 17, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 11, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 18, + "repository_id": null, + "commit_id": null, + "source_type": "Branch", + "source_id": 14, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 19, + "repository_id": null, + "commit_id": null, + "source_type": "Branch", + "source_id": 14, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_20-24.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_20-24.json new file mode 100644 index 0000000..0e44b3e --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_20-24.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 20, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 13, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 21, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 13, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 22, + "repository_id": null, + "commit_id": 7, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 23, + "repository_id": null, + "commit_id": 7, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 24, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 15, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_25-29.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_25-29.json new file mode 100644 index 0000000..081e08f --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_25-29.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 25, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 15, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 26, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 17, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 27, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 17, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 28, + "repository_id": null, + "commit_id": 9, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 29, + "repository_id": null, + "commit_id": 9, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_44-48.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_44-48.json new file mode 100644 index 0000000..ee6992c --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_44-48.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 44, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 89, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 45, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 29, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 46, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 29, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 47, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 48, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_49-53.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_49-53.json new file mode 100644 index 0000000..c069152 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_49-53.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 49, + "repository_id": null, + "commit_id": 17, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 50, + "repository_id": null, + "commit_id": 17, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 51, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 52, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 53, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_54-58.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_54-58.json new file mode 100644 index 0000000..bd20eff --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_54-58.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 54, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 55, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + }, + { + "id": 56, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + }, + { + "id": 57, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 58, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 37, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_59-91.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_59-91.json new file mode 100644 index 0000000..288c072 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_59-91.json @@ -0,0 +1,175 @@ +{ + "table_name": "deleted_jobs", + "data": [ + { + "id": 59, + "repository_id": 1, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 60, + "repository_id": 1, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 75, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 178, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 90, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 91, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 59, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": null, + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": null, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_270-272.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_92-94.json similarity index 54% rename from spec/support/expected_files/remove_user_with_dependencies/job_270-272.json rename to spec/support/expected_files/remove_user_with_dependencies/deleted_job_92-94.json index 2bb3c45..2026e9b 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_270-272.json +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_92-94.json @@ -1,26 +1,26 @@ { - "table_name": "jobs", + "table_name": "deleted_jobs", "data": [ { - "id": 270, + "id": 92, "repository_id": null, "commit_id": null, - "source_id": 57, "source_type": "Request", + "source_id": 59, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": null, "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, - "allow_failure": false, - "owner_id": null, + "allow_failure": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 271, + "id": 93, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 61, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": null, "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, - "allow_failure": false, - "owner_id": 9, - "owner_type": "User", + "allow_failure": null, + "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 272, + "id": 94, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 61, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": null, "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, - "allow_failure": false, - "owner_id": 9, - "owner_type": "User", + "allow_failure": null, + "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,7 +96,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_job_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_config_1-2.json new file mode 100644 index 0000000..49f6d54 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_job_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_job_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_pull_request_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_pull_request_1-2.json new file mode 100644 index 0000000..7b5fcfa --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_pull_request_1-2.json @@ -0,0 +1,43 @@ +{ + "table_name": "deleted_pull_requests", + "data": [ + { + "id": 1, + "repository_id": 1, + "number": null, + "title": null, + "state": null, + "head_repo_github_id": null, + "head_repo_slug": null, + "head_ref": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null + }, + { + "id": 2, + "repository_id": 1, + "number": null, + "title": null, + "state": null, + "head_repo_github_id": null, + "head_repo_slug": null, + "head_ref": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_14-26.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_14-26.json new file mode 100644 index 0000000..007cac6 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_14-26.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 14, + "repository_id": null, + "commit_id": 9, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 23, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 24, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": 3, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 25, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 26, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_27-31.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_27-31.json new file mode 100644 index 0000000..0348296 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_27-31.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 27, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 28, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 29, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 30, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 31, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_32-34.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_32-34.json new file mode 100644 index 0000000..c4fda9f --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_32-34.json @@ -0,0 +1,101 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 32, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 33, + "repository_id": 1, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 34, + "repository_id": 1, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_9-13.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_9-13.json new file mode 100644 index 0000000..8945a10 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_9-13.json @@ -0,0 +1,165 @@ +{ + "table_name": "deleted_requests", + "data": [ + { + "id": 9, + "repository_id": null, + "commit_id": 7, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 10, + "repository_id": null, + "commit_id": 7, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 11, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 12, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": 14, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 13, + "repository_id": null, + "commit_id": 9, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_config_1-2.json new file mode 100644 index 0000000..f441c10 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_14-26.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_14-26.json new file mode 100644 index 0000000..0fbf858 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 14, + "request_id": 15, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 15, + "request_id": 17, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 16, + "request_id": 17, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 25, + "request_id": 29, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 26, + "request_id": 29, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_27-31.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_27-31.json new file mode 100644 index 0000000..1a288ea --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 27, + "request_id": 31, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 28, + "request_id": 31, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 29, + "request_id": 33, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 30, + "request_id": 33, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 31, + "request_id": 35, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_32-52.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_32-52.json new file mode 100644 index 0000000..05fd4ed --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_32-52.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 32, + "request_id": 35, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 33, + "request_id": 37, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 34, + "request_id": 37, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 51, + "request_id": 59, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 52, + "request_id": 59, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_53-54.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_53-54.json new file mode 100644 index 0000000..2eff293 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_53-54.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 53, + "request_id": 61, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 54, + "request_id": 61, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_9-13.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_9-13.json new file mode 100644 index 0000000..71743f3 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_payload_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_payloads", + "data": [ + { + "id": 9, + "request_id": 11, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 10, + "request_id": 11, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 11, + "request_id": 13, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 12, + "request_id": 13, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 13, + "request_id": 15, + "payload": null, + "archived": null, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_config_1-2.json new file mode 100644 index 0000000..410650c --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_config_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "deleted_request_raw_configs", + "data": [ + { + "id": 1, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + }, + { + "id": 2, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_14-26.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_14-26.json new file mode 100644 index 0000000..564a58f --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 14, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 15, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 16, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 25, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 26, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_27-31.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_27-31.json new file mode 100644 index 0000000..8a2c909 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 27, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 28, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 29, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 30, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 31, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_32-36.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_32-36.json new file mode 100644 index 0000000..cbf91f2 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_32-36.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 32, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 33, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 34, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 35, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 36, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_53-56.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_53-56.json new file mode 100644 index 0000000..cac04de --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_53-56.json @@ -0,0 +1,37 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 53, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 54, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 55, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 56, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_9-13.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_9-13.json new file mode 100644 index 0000000..d0c3e3a --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_raw_configuration_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "deleted_request_raw_configurations", + "data": [ + { + "id": 9, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 10, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 11, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 12, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 13, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_request_yaml_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_yaml_config_1-2.json new file mode 100644 index 0000000..c35bead --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_request_yaml_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "deleted_request_yaml_configs", + "data": [ + { + "id": 1, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_ssl_key_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_ssl_key_1-2.json new file mode 100644 index 0000000..ee9b629 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_ssl_key_1-2.json @@ -0,0 +1,25 @@ +{ + "table_name": "deleted_ssl_keys", + "data": [ + { + "id": 1, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_stage_1-4.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_stage_1-4.json new file mode 100644 index 0000000..fb1f496 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_stage_1-4.json @@ -0,0 +1,49 @@ +{ + "table_name": "deleted_stages", + "data": [ + { + "id": 1, + "build_id": 1, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 2, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 3, + "build_id": 178, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 4, + "build_id": 229, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/deleted_tag_3-4.json b/spec/support/expected_files/remove_user_with_dependencies/deleted_tag_3-4.json new file mode 100644 index 0000000..c758942 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/deleted_tag_3-4.json @@ -0,0 +1,27 @@ +{ + "table_name": "deleted_tags", + "data": [ + { + "id": 3, + "repository_id": 1, + "name": null, + "last_build_id": null, + "exists_on_github": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 4, + "repository_id": 1, + "name": null, + "last_build_id": null, + "exists_on_github": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/email_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/email_1-2.json new file mode 100644 index 0000000..822594a --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/email_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "emails", + "data": [ + { + "id": 1, + "user_id": 1, + "email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 2, + "user_id": 1, + "email": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/email_9-10.json b/spec/support/expected_files/remove_user_with_dependencies/email_9-10.json deleted file mode 100644 index 3264925..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/email_9-10.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "table_name": "emails", - "data": [ - { - "id": 9, - "user_id": 9, - "email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 10, - "user_id": 9, - "email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/email_unsubscribe_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/email_unsubscribe_1-2.json new file mode 100644 index 0000000..4d6badb --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/email_unsubscribe_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "email_unsubscribes", + "data": [ + { + "id": 1, + "user_id": null, + "repository_id": 1, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 2, + "user_id": null, + "repository_id": 1, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/invoice_1-4.json b/spec/support/expected_files/remove_user_with_dependencies/invoice_1-4.json index 501d6b6..833b652 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/invoice_1-4.json +++ b/spec/support/expected_files/remove_user_with_dependencies/invoice_1-4.json @@ -4,8 +4,8 @@ { "id": 1, "object": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "subscription_id": 1, "invoice_id": null, "stripe_id": null, @@ -14,8 +14,8 @@ { "id": 2, "object": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "subscription_id": 1, "invoice_id": null, "stripe_id": null, @@ -24,8 +24,8 @@ { "id": 3, "object": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "subscription_id": 2, "invoice_id": null, "stripe_id": null, @@ -34,8 +34,8 @@ { "id": 4, "object": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "subscription_id": 2, "invoice_id": null, "stripe_id": null, diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_149-155.json b/spec/support/expected_files/remove_user_with_dependencies/job_146-154.json similarity index 64% rename from spec/support/expected_files/remove_repo_with_dependencies/job_149-155.json rename to spec/support/expected_files/remove_user_with_dependencies/job_146-154.json index 6483592..15e3f6f 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_149-155.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_146-154.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 149, + "id": 146, "repository_id": null, - "commit_id": 227, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 145, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 150, + "id": 149, "repository_id": null, - "commit_id": 227, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 148, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 152, + "id": 151, "repository_id": null, - "commit_id": null, - "source_id": 151, - "source_type": "Build", + "commit_id": 17, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 154, + "id": 152, "repository_id": null, - "commit_id": null, - "source_id": 31, - "source_type": "Request", + "commit_id": 17, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 155, + "id": 154, "repository_id": null, "commit_id": null, - "source_id": 31, - "source_type": "Request", + "source_type": "Build", + "source_id": 153, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_156-162.json b/spec/support/expected_files/remove_user_with_dependencies/job_156-162.json new file mode 100644 index 0000000..2973714 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_156-162.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 156, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 157, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 31, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 159, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 158, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 161, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 162, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 33, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_164-171.json b/spec/support/expected_files/remove_user_with_dependencies/job_164-171.json new file mode 100644 index 0000000..7e1d1f8 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_164-171.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 164, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 163, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 167, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 166, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 169, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 170, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 35, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 171, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_157-163.json b/spec/support/expected_files/remove_user_with_dependencies/job_172-179.json similarity index 66% rename from spec/support/expected_files/remove_user_with_dependencies/job_157-163.json rename to spec/support/expected_files/remove_user_with_dependencies/job_172-179.json index bd79d52..0dc4b64 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_157-163.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_172-179.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 157, + "id": 172, "repository_id": null, "commit_id": null, - "source_id": 156, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "restarted_at": null, + "priority": null }, { - "id": 159, + "id": 174, "repository_id": null, "commit_id": null, - "source_id": 33, - "source_type": "Request", + "source_type": "Build", + "source_id": 173, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 160, + "id": 176, "repository_id": null, "commit_id": null, - "source_id": 33, "source_type": "Request", + "source_id": 37, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 162, + "id": 177, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 37, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 52 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 163, + "id": 179, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 52 + "stage_id": 38, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_213-217.json b/spec/support/expected_files/remove_user_with_dependencies/job_180-184.json similarity index 66% rename from spec/support/expected_files/remove_org_with_dependencies/job_213-217.json rename to spec/support/expected_files/remove_user_with_dependencies/job_180-184.json index 9d87609..a59fbfe 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_213-217.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_180-184.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 213, + "id": 180, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 62 + "stage_id": 38, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 214, + "id": 181, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 63 + "stage_id": 39, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 215, + "id": 182, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 63 + "stage_id": 39, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 216, + "id": 183, "repository_id": null, "commit_id": null, - "source_id": 211, "source_type": "Build", + "source_id": 178, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 217, + "id": 184, "repository_id": null, "commit_id": null, - "source_id": 211, "source_type": "Build", + "source_id": 178, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_164-212.json b/spec/support/expected_files/remove_user_with_dependencies/job_185-233.json similarity index 65% rename from spec/support/expected_files/remove_org_with_dependencies/job_164-212.json rename to spec/support/expected_files/remove_user_with_dependencies/job_185-233.json index 6574272..7e60f67 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_164-212.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_185-233.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 164, + "id": 185, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Build", + "source_id": 178, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 53 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 165, + "id": 230, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 53 + "stage_id": 49, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 166, + "id": 231, "repository_id": null, "commit_id": null, - "source_id": 161, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 49, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 167, + "id": 232, "repository_id": null, "commit_id": null, - "source_id": 161, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 50, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 212, + "id": 233, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 62 + "stage_id": 50, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_2-6.json b/spec/support/expected_files/remove_user_with_dependencies/job_2-6.json index 5dd3fec..cfa20f9 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_2-6.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_2-6.json @@ -5,22 +5,22 @@ "id": 2, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 20 + "stage_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 3, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 20 + "stage_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 4, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 21 + "stage_id": 2, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 5, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 21 + "stage_id": 2, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 6, "repository_id": null, "commit_id": null, - "source_id": 1, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_234-283.json b/spec/support/expected_files/remove_user_with_dependencies/job_234-283.json new file mode 100644 index 0000000..47c06f4 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_234-283.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 234, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 235, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 236, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 229, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 281, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 280, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 283, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 59, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_284-290.json b/spec/support/expected_files/remove_user_with_dependencies/job_284-290.json new file mode 100644 index 0000000..e6c01ad --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_284-290.json @@ -0,0 +1,175 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 284, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 59, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 286, + "repository_id": null, + "commit_id": null, + "source_type": "Build", + "source_id": 285, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 288, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 61, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 289, + "repository_id": null, + "commit_id": null, + "source_type": "Request", + "source_id": 61, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": null, + "owner_id": null, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + }, + { + "id": 290, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": "User", + "owner_id": 1, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_291-291.json b/spec/support/expected_files/remove_user_with_dependencies/job_291-291.json new file mode 100644 index 0000000..030a281 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_291-291.json @@ -0,0 +1,39 @@ +{ + "table_name": "jobs", + "data": [ + { + "id": 291, + "repository_id": null, + "commit_id": null, + "source_type": null, + "source_id": null, + "queue": null, + "type": null, + "state": null, + "number": null, + "log": "", + "worker": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "tags": null, + "allow_failure": false, + "owner_type": "User", + "owner_id": 1, + "result": null, + "queued_at": null, + "canceled_at": null, + "received_at": null, + "debug_options": null, + "private": null, + "stage_number": null, + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_57-64.json b/spec/support/expected_files/remove_user_with_dependencies/job_57-63.json similarity index 64% rename from spec/support/expected_files/remove_user_with_dependencies/job_57-64.json rename to spec/support/expected_files/remove_user_with_dependencies/job_57-63.json index 544ae31..4995096 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_57-64.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_57-63.json @@ -5,22 +5,22 @@ "id": 57, "repository_id": 1, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 59, - "repository_id": null, + "id": 58, + "repository_id": 1, "commit_id": null, - "source_id": 58, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 61, + "id": 60, "repository_id": null, "commit_id": null, - "source_id": 86, - "source_type": "Branch", + "source_type": "Build", + "source_id": 59, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 62, "repository_id": null, "commit_id": null, - "source_id": 86, "source_type": "Branch", + "source_id": 14, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 64, + "id": 63, "repository_id": null, "commit_id": null, - "source_id": 63, - "source_type": "Build", + "source_type": "Branch", + "source_id": 14, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_66-72.json b/spec/support/expected_files/remove_user_with_dependencies/job_65-72.json similarity index 65% rename from spec/support/expected_files/remove_user_with_dependencies/job_66-72.json rename to spec/support/expected_files/remove_user_with_dependencies/job_65-72.json index c0d7e0d..1b3c2dd 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_66-72.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_65-72.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 66, + "id": 65, "repository_id": null, - "commit_id": 217, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 64, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 67, "repository_id": null, - "commit_id": 217, - "source_id": null, + "commit_id": 7, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 69, + "id": 68, "repository_id": null, - "commit_id": null, - "source_id": 68, - "source_type": "Build", + "commit_id": 7, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 71, + "id": 70, "repository_id": null, "commit_id": null, - "source_id": 13, - "source_type": "Request", + "source_type": "Build", + "source_id": 69, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 72, "repository_id": null, "commit_id": null, - "source_id": 13, "source_type": "Request", + "source_id": 13, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_7-56.json b/spec/support/expected_files/remove_user_with_dependencies/job_7-56.json index cefdb14..a4fcd80 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_7-56.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_7-56.json @@ -5,22 +5,22 @@ "id": 7, "repository_id": null, "commit_id": null, - "source_id": 1, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 52, + "id": 8, "repository_id": null, "commit_id": null, - "source_id": 51, "source_type": "Build", + "source_id": 1, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 54, + "id": 53, "repository_id": null, "commit_id": null, - "source_id": 11, - "source_type": "Request", + "source_type": "Build", + "source_id": 52, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 55, "repository_id": null, "commit_id": null, - "source_id": 11, "source_type": "Request", + "source_id": 11, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 56, - "repository_id": 1, + "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 11, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/job_74-81.json b/spec/support/expected_files/remove_user_with_dependencies/job_73-80.json similarity index 65% rename from spec/support/expected_files/remove_repo_with_dependencies/job_74-81.json rename to spec/support/expected_files/remove_user_with_dependencies/job_73-80.json index bb7faf9..f494653 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/job_74-81.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_73-80.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 74, + "id": 73, "repository_id": null, "commit_id": null, - "source_id": 73, - "source_type": "Build", + "source_type": "Request", + "source_id": 13, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 76, + "id": 75, "repository_id": null, "commit_id": null, - "source_id": 15, - "source_type": "Request", + "source_type": "Build", + "source_id": 74, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 77, "repository_id": null, "commit_id": null, - "source_id": 15, "source_type": "Request", + "source_id": 15, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 79, + "id": 78, "repository_id": null, "commit_id": null, - "source_id": 78, - "source_type": "Build", + "source_type": "Request", + "source_id": 15, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 81, + "id": 80, "repository_id": null, - "commit_id": 219, - "source_id": null, - "source_type": null, + "commit_id": null, + "source_type": "Build", + "source_id": 79, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 22:05:24 UTC", - "updated_at": "2021-04-11 22:05:24 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/job_82-89.json b/spec/support/expected_files/remove_user_with_dependencies/job_82-88.json similarity index 66% rename from spec/support/expected_files/remove_org_with_dependencies/job_82-89.json rename to spec/support/expected_files/remove_user_with_dependencies/job_82-88.json index 3305b4d..06f8f25 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/job_82-89.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_82-88.json @@ -4,23 +4,23 @@ { "id": 82, "repository_id": null, - "commit_id": 219, - "source_id": null, + "commit_id": 9, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 84, + "id": 83, "repository_id": null, - "commit_id": null, - "source_id": 83, - "source_type": "Build", + "commit_id": 9, + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 86, + "id": 85, "repository_id": null, "commit_id": null, - "source_id": 17, - "source_type": "Request", + "source_type": "Build", + "source_id": 84, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 87, "repository_id": null, "commit_id": null, - "source_id": 17, "source_type": "Request", + "source_id": 17, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 89, + "id": 88, "repository_id": null, "commit_id": null, - "source_id": null, - "source_type": null, + "source_type": "Request", + "source_id": 17, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:59:33 UTC", - "updated_at": "2021-04-11 21:59:33 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 37 + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_90-94.json b/spec/support/expected_files/remove_user_with_dependencies/job_90-94.json index 69c50e6..38b05ba 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_90-94.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_90-94.json @@ -5,22 +5,22 @@ "id": 90, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 37 + "stage_id": 19, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 91, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 38 + "stage_id": 19, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 92, "repository_id": null, "commit_id": null, - "source_id": null, "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": 38 + "stage_id": 20, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 93, "repository_id": null, "commit_id": null, - "source_id": 88, - "source_type": "Build", + "source_type": null, + "source_id": null, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": 20, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { "id": 94, "repository_id": null, "commit_id": null, - "source_id": 88, "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_139-147.json b/spec/support/expected_files/remove_user_with_dependencies/job_95-144.json similarity index 66% rename from spec/support/expected_files/remove_user_with_dependencies/job_139-147.json rename to spec/support/expected_files/remove_user_with_dependencies/job_95-144.json index 0e12cb0..cc50ffa 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/job_139-147.json +++ b/spec/support/expected_files/remove_user_with_dependencies/job_95-144.json @@ -2,25 +2,25 @@ "table_name": "jobs", "data": [ { - "id": 139, + "id": 95, "repository_id": null, "commit_id": null, - "source_id": 138, "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -28,28 +28,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 141, + "id": 96, "repository_id": null, "commit_id": null, - "source_id": 29, - "source_type": "Request", + "source_type": "Build", + "source_id": 89, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -57,28 +62,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 142, + "id": 141, "repository_id": null, "commit_id": null, - "source_id": 29, - "source_type": "Request", + "source_type": "Build", + "source_id": 140, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -86,28 +96,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 144, + "id": 143, "repository_id": null, "commit_id": null, - "source_id": 143, - "source_type": "Build", + "source_type": "Request", + "source_id": 29, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -115,28 +130,33 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null }, { - "id": 147, + "id": 144, "repository_id": null, "commit_id": null, - "source_id": 146, - "source_type": "Build", + "source_type": "Request", + "source_id": 29, "queue": null, "type": null, "state": null, "number": null, - "config": null, + "log": "", "worker": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "tags": null, "allow_failure": false, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "queued_at": null, "canceled_at": null, @@ -144,7 +164,12 @@ "debug_options": null, "private": null, "stage_number": null, - "stage_id": null + "stage_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "restarted_at": null, + "priority": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/job_config_1-2.json new file mode 100644 index 0000000..381267e --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "job_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_1-19.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_1-19.json new file mode 100644 index 0000000..d1c9462 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_1-19.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 1, + "job_id": 6, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 2, + "job_id": 6, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 17, + "job_id": 55, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 18, + "job_id": 55, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 19, + "job_id": 57, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_20-24.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_20-24.json new file mode 100644 index 0000000..8c3a78e --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_20-24.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 20, + "job_id": 57, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 21, + "job_id": 62, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 22, + "job_id": 62, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 23, + "job_id": 67, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 24, + "job_id": 67, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_25-29.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_25-29.json new file mode 100644 index 0000000..f5ac692 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_25-29.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 25, + "job_id": 72, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 26, + "job_id": 72, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 27, + "job_id": 77, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 28, + "job_id": 77, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 29, + "job_id": 82, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_30-34.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_30-34.json new file mode 100644 index 0000000..740bca5 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_30-34.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 30, + "job_id": 82, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 31, + "job_id": 87, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 32, + "job_id": 87, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 33, + "job_id": 94, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 34, + "job_id": 94, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_49-53.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_49-53.json new file mode 100644 index 0000000..1eb97b0 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_49-53.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 49, + "job_id": 143, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 50, + "job_id": 143, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 51, + "job_id": 151, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 52, + "job_id": 151, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 53, + "job_id": 156, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_54-58.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_54-58.json new file mode 100644 index 0000000..468e1a1 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_54-58.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 54, + "job_id": 156, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 55, + "job_id": 161, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 56, + "job_id": 161, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 57, + "job_id": 169, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 58, + "job_id": 169, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_59-63.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_59-63.json new file mode 100644 index 0000000..4c9b16e --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_59-63.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 59, + "job_id": 171, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 60, + "job_id": 171, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 61, + "job_id": 176, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 62, + "job_id": 176, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 63, + "job_id": 183, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_64-96.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_64-96.json new file mode 100644 index 0000000..c302b62 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_64-96.json @@ -0,0 +1,65 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 64, + "job_id": 183, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 79, + "job_id": 234, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 80, + "job_id": 234, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 95, + "job_id": 283, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 96, + "job_id": 283, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/job_version_97-100.json b/spec/support/expected_files/remove_user_with_dependencies/job_version_97-100.json new file mode 100644 index 0000000..e0ade06 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/job_version_97-100.json @@ -0,0 +1,53 @@ +{ + "table_name": "job_versions", + "data": [ + { + "id": 97, + "job_id": 288, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 98, + "job_id": 288, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 99, + "job_id": 290, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + }, + { + "id": 100, + "job_id": 290, + "number": null, + "state": null, + "created_at": "2021-09-01 15:01:06 UTC", + "queued_at": null, + "received_at": null, + "started_at": null, + "finished_at": null, + "restarted_at": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_1-19.json b/spec/support/expected_files/remove_user_with_dependencies/log_1-19.json deleted file mode 100644 index 4440de1..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_1-19.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 1, - "job_id": 6, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 2, - "job_id": 6, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 17, - "job_id": 54, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 18, - "job_id": 54, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 19, - "job_id": 56, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_20-24.json b/spec/support/expected_files/remove_user_with_dependencies/log_20-24.json deleted file mode 100644 index 8f4bcbe..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_20-24.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 20, - "job_id": 56, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 21, - "job_id": 61, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 22, - "job_id": 61, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 23, - "job_id": 66, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 24, - "job_id": 66, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_25-29.json b/spec/support/expected_files/remove_user_with_dependencies/log_25-29.json deleted file mode 100644 index a6b717a..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_25-29.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 25, - "job_id": 71, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 26, - "job_id": 71, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 27, - "job_id": 76, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 28, - "job_id": 76, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 29, - "job_id": 81, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_30-34.json b/spec/support/expected_files/remove_user_with_dependencies/log_30-34.json deleted file mode 100644 index f6ab46c..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_30-34.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 30, - "job_id": 81, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 31, - "job_id": 86, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 32, - "job_id": 86, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 33, - "job_id": 93, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 34, - "job_id": 93, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_49-53.json b/spec/support/expected_files/remove_user_with_dependencies/log_49-53.json deleted file mode 100644 index b64808d..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_49-53.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 49, - "job_id": 141, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 50, - "job_id": 141, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 51, - "job_id": 149, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 52, - "job_id": 149, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 53, - "job_id": 154, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_54-58.json b/spec/support/expected_files/remove_user_with_dependencies/log_54-58.json deleted file mode 100644 index c74ef9e..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_54-58.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 54, - "job_id": 154, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 55, - "job_id": 159, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 56, - "job_id": 159, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 57, - "job_id": 166, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 58, - "job_id": 166, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_73-91.json b/spec/support/expected_files/remove_user_with_dependencies/log_73-91.json deleted file mode 100644 index d681e65..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_73-91.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 73, - "job_id": 216, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 74, - "job_id": 216, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 89, - "job_id": 264, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 90, - "job_id": 264, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 91, - "job_id": 269, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/log_92-94.json b/spec/support/expected_files/remove_user_with_dependencies/log_92-94.json deleted file mode 100644 index a377b42..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/log_92-94.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "table_name": "logs", - "data": [ - { - "id": 92, - "job_id": 269, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 93, - "job_id": 271, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - }, - { - "id": 94, - "job_id": 271, - "content": "some log content", - "removed_by": 1, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "aggregated_at": null, - "archived_at": null, - "purged_at": null, - "removed_at": null, - "archiving": false, - "archive_verified": true - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/membership_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/membership_1-2.json index a019065..d34a25a 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/membership_1-2.json +++ b/spec/support/expected_files/remove_user_with_dependencies/membership_1-2.json @@ -4,13 +4,13 @@ { "id": 1, "organization_id": null, - "user_id": 9, + "user_id": 1, "role": null }, { "id": 2, "organization_id": null, - "user_id": 9, + "user_id": 1, "role": null } ] diff --git a/spec/support/expected_files/remove_user_with_dependencies/message_14-26.json b/spec/support/expected_files/remove_user_with_dependencies/message_14-26.json index 103c456..07ed6a6 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/message_14-26.json +++ b/spec/support/expected_files/remove_user_with_dependencies/message_14-26.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 15, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 16, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 25, @@ -42,8 +51,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 26, @@ -53,8 +65,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/message_27-31.json b/spec/support/expected_files/remove_user_with_dependencies/message_27-31.json new file mode 100644 index 0000000..96b1138 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/message_27-31.json @@ -0,0 +1,75 @@ +{ + "table_name": "messages", + "data": [ + { + "id": 27, + "subject_id": 31, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 28, + "subject_id": 31, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 29, + "subject_id": 33, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 30, + "subject_id": 33, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 31, + "subject_id": 35, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/message_32-52.json b/spec/support/expected_files/remove_user_with_dependencies/message_32-52.json new file mode 100644 index 0000000..1ff34d0 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/message_32-52.json @@ -0,0 +1,75 @@ +{ + "table_name": "messages", + "data": [ + { + "id": 32, + "subject_id": 35, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 33, + "subject_id": 37, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 34, + "subject_id": 37, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 51, + "subject_id": 59, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 52, + "subject_id": 59, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/message_48-50.json b/spec/support/expected_files/remove_user_with_dependencies/message_48-50.json deleted file mode 100644 index 47cec7d..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/message_48-50.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "table_name": "messages", - "data": [ - { - "id": 48, - "subject_id": 55, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 49, - "subject_id": 57, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 50, - "subject_id": 57, - "subject_type": "Request", - "level": null, - "key": null, - "code": null, - "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/message_53-54.json b/spec/support/expected_files/remove_user_with_dependencies/message_53-54.json new file mode 100644 index 0000000..a1133bd --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/message_53-54.json @@ -0,0 +1,33 @@ +{ + "table_name": "messages", + "data": [ + { + "id": 53, + "subject_id": 61, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + }, + { + "id": 54, + "subject_id": 61, + "subject_type": "Request", + "level": null, + "key": null, + "code": null, + "args": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/message_9-13.json b/spec/support/expected_files/remove_user_with_dependencies/message_9-13.json index 69dbf15..11c54e6 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/message_9-13.json +++ b/spec/support/expected_files/remove_user_with_dependencies/message_9-13.json @@ -9,8 +9,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 10, @@ -20,8 +23,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 11, @@ -31,8 +37,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 12, @@ -42,8 +51,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null }, { "id": 13, @@ -53,8 +65,11 @@ "key": null, "code": null, "args": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "type": null, + "src": null, + "line": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_1.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_1.json index 2d2b64a..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_1.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_1.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 20 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 1, - "related_id": 21 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 18 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 19 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 1 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_10.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_10.json index 101c4f1..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_10.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_10.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 56 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 32 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 138, - "related_id": 106 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 143, - "related_id": 59 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 58 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_11.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_11.json index b3dbda1..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_11.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_11.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 34 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 143, - "related_id": 107 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 146, - "related_id": 61 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 60 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 35 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_12.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_12.json index b73dca0..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_12.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_12.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 146, - "related_id": 108 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 151, - "related_id": 63 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 62 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 36 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 151, - "related_id": 109 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_13.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_13.json index b0ab2c0..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_13.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_13.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 156, - "related_id": 65 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 64 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 37 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 156, - "related_id": 110 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 161, - "related_id": 85 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_14.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_14.json index a8b087e..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_14.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_14.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 161, - "related_id": 86 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 83 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 84 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 39 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 44 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_15.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_15.json index 90f0626..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_15.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_15.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 115 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 161, - "related_id": 120 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 211, - "related_id": 105 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 211, - "related_id": 106 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 103 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_16.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_16.json index 98a736a..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_16.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_16.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 104 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 51 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 56 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 127 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 211, - "related_id": 132 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_17.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_17.json index d2e2aa9..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_17.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_17.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 261, - "related_id": 108 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 261, - "related_id": 107 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 261, - "related_id": 63 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 261, - "related_id": 135 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 266, - "related_id": 110 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_18.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_18.json index 803d6f6..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_18.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_18.json @@ -1,23 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 266, - "related_id": 109 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 266, - "related_id": 64 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 266, - "related_id": 136 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_19.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_19.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_19.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_2.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_2.json index be7794f..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_2.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_2.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 6 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 77 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 1, - "related_id": 82 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 51, - "related_id": 23 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 22 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_20.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_20.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_20.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_21.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_21.json new file mode 100644 index 0000000..83fb8fc --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_21.json @@ -0,0 +1,3 @@ +{ + "table_name": "builds" +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_3.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_3.json index 9187a39..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_3.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_3.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 13 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 51, - "related_id": 85 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 58, - "related_id": 25 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 24 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 14 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_4.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_4.json index 0369249..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_4.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_4.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 58, - "related_id": 87 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 63, - "related_id": 27 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 26 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 15 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 63, - "related_id": 88 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_5.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_5.json index c056257..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_5.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_5.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 68, - "related_id": 29 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 28 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 16 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 68, - "related_id": 89 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 73, - "related_id": 31 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_6.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_6.json index 2b3a562..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_6.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_6.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 30 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 17 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 73, - "related_id": 90 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 78, - "related_id": 33 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 32 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_7.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_7.json index dda4205..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_7.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_7.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 18 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 78, - "related_id": 92 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 83, - "related_id": 35 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 34 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 19 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_8.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_8.json index 33d14e6..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_8.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_8.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 83, - "related_id": 93 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 88, - "related_id": 54 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 88, - "related_id": 55 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 52 - }, - { - "related_table": "repositories", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 53 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_9.json b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_9.json index 2cff1ec..83fb8fc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_9.json +++ b/spec/support/expected_files/remove_user_with_dependencies/nullified_relationships/build_9.json @@ -1,35 +1,3 @@ { - "table_name": "builds", - "nullified_relationships": [ - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 20 - }, - { - "related_table": "tags", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 25 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 98 - }, - { - "related_table": "branches", - "foreign_key": "last_build_id", - "parent_id": 88, - "related_id": 103 - }, - { - "related_table": "repositories", - "foreign_key": "current_build_id", - "parent_id": 138, - "related_id": 57 - } - ] + "table_name": "builds" } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/owner_group_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/owner_group_1-2.json index e7f19a7..86209de 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/owner_group_1-2.json +++ b/spec/support/expected_files/remove_user_with_dependencies/owner_group_1-2.json @@ -4,18 +4,18 @@ { "id": 1, "uuid": null, - "owner_id": 9, "owner_type": "User", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "owner_id": 1, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 2, "uuid": null, - "owner_id": 9, "owner_type": "User", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "owner_id": 1, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/permission_1-6.json b/spec/support/expected_files/remove_user_with_dependencies/permission_1-6.json index f0fb06f..b357157 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/permission_1-6.json +++ b/spec/support/expected_files/remove_user_with_dependencies/permission_1-6.json @@ -3,19 +3,23 @@ "data": [ { "id": 1, - "user_id": 9, + "user_id": 1, "repository_id": null, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null }, { "id": 2, - "user_id": 9, + "user_id": 1, "repository_id": null, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null }, { "id": 5, @@ -23,7 +27,9 @@ "repository_id": 1, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null }, { "id": 6, @@ -31,7 +37,9 @@ "repository_id": 1, "admin": false, "push": false, - "pull": false + "pull": false, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/pull_request_3-6.json b/spec/support/expected_files/remove_user_with_dependencies/pull_request_3-6.json index b6bae33..7244930 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/pull_request_3-6.json +++ b/spec/support/expected_files/remove_user_with_dependencies/pull_request_3-6.json @@ -10,8 +10,15 @@ "head_repo_github_id": null, "head_repo_slug": null, "head_ref": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null }, { "id": 6, @@ -22,8 +29,15 @@ "head_repo_github_id": null, "head_repo_slug": null, "head_ref": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null, + "mergeable_state": null, + "head_repo_vcs_id": null, + "base_repo_slug": null, + "base_repo_vcs_id": null, + "base_ref": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_1-19.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_1-19.json index 858cbb5..4e7316c 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_1-19.json +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_1-19.json @@ -11,15 +11,15 @@ }, { "id": 17, - "job_id": 54 + "job_id": 55 }, { "id": 18, - "job_id": 54 + "job_id": 55 }, { "id": 19, - "job_id": 56 + "job_id": 57 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_20-24.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_20-24.json index 5274e58..ed9d9e2 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_20-24.json +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_20-24.json @@ -3,23 +3,23 @@ "data": [ { "id": 20, - "job_id": 56 + "job_id": 57 }, { "id": 21, - "job_id": 61 + "job_id": 62 }, { "id": 22, - "job_id": 61 + "job_id": 62 }, { "id": 23, - "job_id": 66 + "job_id": 67 }, { "id": 24, - "job_id": 66 + "job_id": 67 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_25-29.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_25-29.json index 1fc2d88..af6eea8 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_25-29.json +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_25-29.json @@ -3,23 +3,23 @@ "data": [ { "id": 25, - "job_id": 71 + "job_id": 72 }, { "id": 26, - "job_id": 71 + "job_id": 72 }, { "id": 27, - "job_id": 76 + "job_id": 77 }, { "id": 28, - "job_id": 76 + "job_id": 77 }, { "id": 29, - "job_id": 81 + "job_id": 82 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_30-34.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_30-34.json index 38ef88d..a73a124 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_30-34.json +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_30-34.json @@ -3,23 +3,23 @@ "data": [ { "id": 30, - "job_id": 81 + "job_id": 82 }, { "id": 31, - "job_id": 86 + "job_id": 87 }, { "id": 32, - "job_id": 86 + "job_id": 87 }, { "id": 33, - "job_id": 93 + "job_id": 94 }, { "id": 34, - "job_id": 93 + "job_id": 94 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_49-53.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_49-53.json index 98c6643..2a5b437 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_49-53.json +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_49-53.json @@ -3,23 +3,23 @@ "data": [ { "id": 49, - "job_id": 141 + "job_id": 143 }, { "id": 50, - "job_id": 141 + "job_id": 143 }, { "id": 51, - "job_id": 149 + "job_id": 151 }, { "id": 52, - "job_id": 149 + "job_id": 151 }, { "id": 53, - "job_id": 154 + "job_id": 156 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_54-58.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_54-58.json index fdf0f32..318b4b8 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_54-58.json +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_54-58.json @@ -3,23 +3,23 @@ "data": [ { "id": 54, - "job_id": 154 + "job_id": 156 }, { "id": 55, - "job_id": 159 + "job_id": 161 }, { "id": 56, - "job_id": 159 + "job_id": 161 }, { "id": 57, - "job_id": 166 + "job_id": 169 }, { "id": 58, - "job_id": 166 + "job_id": 169 } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_59-63.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_59-63.json new file mode 100644 index 0000000..b19fdd8 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_59-63.json @@ -0,0 +1,25 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 59, + "job_id": 171 + }, + { + "id": 60, + "job_id": 171 + }, + { + "id": 61, + "job_id": 176 + }, + { + "id": 62, + "job_id": 176 + }, + { + "id": 63, + "job_id": 183 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_64-96.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_64-96.json new file mode 100644 index 0000000..e3634b3 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_64-96.json @@ -0,0 +1,25 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 64, + "job_id": 183 + }, + { + "id": 79, + "job_id": 234 + }, + { + "id": 80, + "job_id": 234 + }, + { + "id": 95, + "job_id": 283 + }, + { + "id": 96, + "job_id": 283 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_73-91.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_73-91.json deleted file mode 100644 index ff4127a..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_73-91.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "table_name": "queueable_jobs", - "data": [ - { - "id": 73, - "job_id": 216 - }, - { - "id": 74, - "job_id": 216 - }, - { - "id": 89, - "job_id": 264 - }, - { - "id": 90, - "job_id": 264 - }, - { - "id": 91, - "job_id": 269 - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_92-94.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_92-94.json deleted file mode 100644 index 52bcc99..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_92-94.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "table_name": "queueable_jobs", - "data": [ - { - "id": 92, - "job_id": 269 - }, - { - "id": 93, - "job_id": 271 - }, - { - "id": 94, - "job_id": 271 - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/queueable_job_97-100.json b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_97-100.json new file mode 100644 index 0000000..4c9512f --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/queueable_job_97-100.json @@ -0,0 +1,21 @@ +{ + "table_name": "queueable_jobs", + "data": [ + { + "id": 97, + "job_id": 288 + }, + { + "id": 98, + "job_id": 288 + }, + { + "id": 99, + "job_id": 290 + }, + { + "id": 100, + "job_id": 290 + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/repo_count_1-1.json b/spec/support/expected_files/remove_user_with_dependencies/repo_count_1-1.json new file mode 100644 index 0000000..31fee31 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/repo_count_1-1.json @@ -0,0 +1,17 @@ +{ + "table_name": "repo_counts", + "data": [ + { + "repository_id": 1, + "requests": null, + "commits": null, + "branches": null, + "pull_requests": null, + "tags": null, + "builds": null, + "stages": null, + "jobs": null, + "range": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/repository_1-66.json b/spec/support/expected_files/remove_user_with_dependencies/repository_1-72.json similarity index 52% rename from spec/support/expected_files/remove_user_with_dependencies/repository_1-66.json rename to spec/support/expected_files/remove_user_with_dependencies/repository_1-72.json index 7f8739e..0ff7a57 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/repository_1-66.json +++ b/spec/support/expected_files/remove_user_with_dependencies/repository_1-72.json @@ -5,9 +5,9 @@ "id": 1, "name": null, "url": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", - "last_build_id": 260, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "last_build_id": 279, "last_build_number": null, "last_build_started_at": null, "last_build_finished_at": null, @@ -16,8 +16,8 @@ "active": null, "description": null, "last_build_duration": null, - "owner_id": 9, "owner_type": "User", + "owner_id": 1, "private": false, "last_build_state": null, "github_id": null, @@ -26,14 +26,27 @@ "settings": null, "next_build_number": null, "invalidated_at": null, - "current_build_id": 210 + "current_build_id": 228, + "org_id": null, + "com_id": null, + "migrating": null, + "migrated_at": null, + "active_on_org": null, + "managed_by_installation_at": null, + "migration_status": null, + "history_migration_status": null, + "vcs_type": "GithubRepository", + "vcs_id": null, + "fork": null, + "vcs_slug": null, + "vcs_source_host": null }, { - "id": 66, + "id": 72, "name": null, "url": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "last_build_id": null, "last_build_number": null, "last_build_started_at": null, @@ -43,8 +56,8 @@ "active": null, "description": null, "last_build_duration": null, - "owner_id": 9, "owner_type": "User", + "owner_id": 1, "private": false, "last_build_state": null, "github_id": null, @@ -53,7 +66,20 @@ "settings": null, "next_build_number": null, "invalidated_at": null, - "current_build_id": null + "current_build_id": null, + "org_id": null, + "com_id": null, + "migrating": null, + "migrated_at": null, + "active_on_org": null, + "managed_by_installation_at": null, + "migration_status": null, + "history_migration_status": null, + "vcs_type": "GithubRepository", + "vcs_id": null, + "fork": null, + "vcs_slug": null, + "vcs_source_host": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_11-15.json b/spec/support/expected_files/remove_user_with_dependencies/request_11-15.json index 551583b..14d1208 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/request_11-15.json +++ b/spec/support/expected_files/remove_user_with_dependencies/request_11-15.json @@ -7,27 +7,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 12, @@ -35,83 +39,95 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 13, "repository_id": null, - "commit_id": 217, + "commit_id": 7, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 14, "repository_id": null, - "commit_id": 217, + "commit_id": 7, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 15, @@ -119,27 +135,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_16-30.json b/spec/support/expected_files/remove_user_with_dependencies/request_16-30.json index 4eeb8c5..ccec710 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/request_16-30.json +++ b/spec/support/expected_files/remove_user_with_dependencies/request_16-30.json @@ -7,83 +7,95 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, - "branch_id": 86, + "branch_id": 14, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 17, "repository_id": null, - "commit_id": 219, + "commit_id": 9, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 18, "repository_id": null, - "commit_id": 219, + "commit_id": 9, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": null, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 29, @@ -91,27 +103,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null }, { "id": 30, @@ -119,27 +135,31 @@ "commit_id": null, "state": null, "source": null, - "payload": null, "token": null, - "config": null, "started_at": null, "finished_at": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "event_type": null, "comments_url": null, "base_commit": null, "head_commit": null, - "owner_id": null, "owner_type": null, + "owner_id": null, "result": null, "message": null, "private": null, "pull_request_id": 3, "branch_id": null, "tag_id": null, + "sender_type": null, "sender_id": null, - "sender_type": null + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_31-35.json b/spec/support/expected_files/remove_user_with_dependencies/request_31-35.json new file mode 100644 index 0000000..600f8cc --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_31-35.json @@ -0,0 +1,165 @@ +{ + "table_name": "requests", + "data": [ + { + "id": 31, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 32, + "repository_id": null, + "commit_id": 17, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 33, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 34, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": 33, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 35, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_36-60.json b/spec/support/expected_files/remove_user_with_dependencies/request_36-60.json new file mode 100644 index 0000000..1bde38d --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_36-60.json @@ -0,0 +1,165 @@ +{ + "table_name": "requests", + "data": [ + { + "id": 36, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": 1, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 37, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 38, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": 1, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 59, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": "User", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 60, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": null, + "owner_id": null, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": "User", + "sender_id": 1, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_61-62.json b/spec/support/expected_files/remove_user_with_dependencies/request_61-62.json new file mode 100644 index 0000000..61b76ee --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_61-62.json @@ -0,0 +1,69 @@ +{ + "table_name": "requests", + "data": [ + { + "id": 61, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": "User", + "owner_id": 1, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + }, + { + "id": 62, + "repository_id": null, + "commit_id": null, + "state": null, + "source": null, + "token": null, + "started_at": null, + "finished_at": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "event_type": null, + "comments_url": null, + "base_commit": null, + "head_commit": null, + "owner_type": "User", + "owner_id": 1, + "result": null, + "message": null, + "private": null, + "pull_request_id": null, + "branch_id": null, + "tag_id": null, + "sender_type": null, + "sender_id": null, + "org_id": null, + "com_id": null, + "config_id": null, + "yaml_config_id": null, + "github_guid": null, + "pull_request_mergeable": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/request_config_1-2.json new file mode 100644 index 0000000..3721f6a --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_configs", + "data": [ + { + "id": 1, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + }, + { + "id": 2, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null, + "config": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_payload_14-26.json b/spec/support/expected_files/remove_user_with_dependencies/request_payload_14-26.json new file mode 100644 index 0000000..878eac6 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_payload_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 14, + "request_id": 15, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 15, + "request_id": 17, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 16, + "request_id": 17, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 25, + "request_id": 29, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 26, + "request_id": 29, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_payload_27-31.json b/spec/support/expected_files/remove_user_with_dependencies/request_payload_27-31.json new file mode 100644 index 0000000..826590f --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_payload_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 27, + "request_id": 31, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 28, + "request_id": 31, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 29, + "request_id": 33, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 30, + "request_id": 33, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 31, + "request_id": 35, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_payload_32-52.json b/spec/support/expected_files/remove_user_with_dependencies/request_payload_32-52.json new file mode 100644 index 0000000..f2b7e7b --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_payload_32-52.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 32, + "request_id": 35, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 33, + "request_id": 37, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 34, + "request_id": 37, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 51, + "request_id": 59, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 52, + "request_id": 59, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_payload_53-54.json b/spec/support/expected_files/remove_user_with_dependencies/request_payload_53-54.json new file mode 100644 index 0000000..144e65c --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_payload_53-54.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 53, + "request_id": 61, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 54, + "request_id": 61, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_payload_9-13.json b/spec/support/expected_files/remove_user_with_dependencies/request_payload_9-13.json new file mode 100644 index 0000000..f8bcdb7 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_payload_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_payloads", + "data": [ + { + "id": 9, + "request_id": 11, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 10, + "request_id": 11, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 11, + "request_id": 13, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 12, + "request_id": 13, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + }, + { + "id": 13, + "request_id": 15, + "payload": null, + "archived": false, + "created_at": "2021-09-01 15:01:06 UTC", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_raw_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/request_raw_config_1-2.json new file mode 100644 index 0000000..c72323d --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_raw_config_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "request_raw_configs", + "data": [ + { + "id": 1, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + }, + { + "id": 2, + "config": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_14-26.json b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_14-26.json new file mode 100644 index 0000000..9590ef0 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_14-26.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 14, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 15, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 16, + "request_id": 17, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 25, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 26, + "request_id": 29, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_27-31.json b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_27-31.json new file mode 100644 index 0000000..46d82ef --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_27-31.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 27, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 28, + "request_id": 31, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 29, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 30, + "request_id": 33, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 31, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_32-36.json b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_32-36.json new file mode 100644 index 0000000..fe9accd --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_32-36.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 32, + "request_id": 35, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 33, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 34, + "request_id": null, + "request_raw_config_id": 1, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 35, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 36, + "request_id": 37, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_53-56.json b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_53-56.json new file mode 100644 index 0000000..4de4d62 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_53-56.json @@ -0,0 +1,37 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 53, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 54, + "request_id": 59, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 55, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 56, + "request_id": 61, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_9-13.json b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_9-13.json new file mode 100644 index 0000000..613d490 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_raw_configuration_9-13.json @@ -0,0 +1,45 @@ +{ + "table_name": "request_raw_configurations", + "data": [ + { + "id": 9, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 10, + "request_id": 11, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 11, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 12, + "request_id": 13, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + }, + { + "id": 13, + "request_id": 15, + "request_raw_config_id": null, + "source": null, + "org_id": null, + "merge_mode": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/request_yaml_config_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/request_yaml_config_1-2.json new file mode 100644 index 0000000..568e31b --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/request_yaml_config_1-2.json @@ -0,0 +1,21 @@ +{ + "table_name": "request_yaml_configs", + "data": [ + { + "id": 1, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + }, + { + "id": 2, + "yaml": null, + "repository_id": 1, + "key": "some_test_key", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/ssl_key_3-4.json b/spec/support/expected_files/remove_user_with_dependencies/ssl_key_3-4.json new file mode 100644 index 0000000..cfcbb81 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/ssl_key_3-4.json @@ -0,0 +1,25 @@ +{ + "table_name": "ssl_keys", + "data": [ + { + "id": 3, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + }, + { + "id": 4, + "repository_id": 1, + "public_key": null, + "private_key": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/ssl_key_33-34.json b/spec/support/expected_files/remove_user_with_dependencies/ssl_key_33-34.json deleted file mode 100644 index 21cb89f..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/ssl_key_33-34.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "table_name": "ssl_keys", - "data": [ - { - "id": 33, - "repository_id": 1, - "public_key": null, - "private_key": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 34, - "repository_id": 1, - "public_key": null, - "private_key": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/stage_20-32.json b/spec/support/expected_files/remove_user_with_dependencies/stage_1-13.json similarity index 58% rename from spec/support/expected_files/remove_org_with_dependencies/stage_20-32.json rename to spec/support/expected_files/remove_user_with_dependencies/stage_1-13.json index 91fcb2e..ccba356 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/stage_20-32.json +++ b/spec/support/expected_files/remove_user_with_dependencies/stage_1-13.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 20, + "id": 1, "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 21, + "id": 2, "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 30, - "build_id": 51, + "id": 3, + "build_id": 1, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 31, - "build_id": 58, + "id": 12, + "build_id": 52, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 32, - "build_id": 63, + "id": 13, + "build_id": 59, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/stage_14-18.json b/spec/support/expected_files/remove_user_with_dependencies/stage_14-18.json new file mode 100644 index 0000000..56d9de4 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/stage_14-18.json @@ -0,0 +1,60 @@ +{ + "table_name": "stages", + "data": [ + { + "id": 14, + "build_id": 64, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 15, + "build_id": 69, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 16, + "build_id": 74, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 17, + "build_id": 79, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 18, + "build_id": 84, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/stage_19-31.json b/spec/support/expected_files/remove_user_with_dependencies/stage_19-31.json new file mode 100644 index 0000000..1983714 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/stage_19-31.json @@ -0,0 +1,60 @@ +{ + "table_name": "stages", + "data": [ + { + "id": 19, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 20, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 21, + "build_id": 89, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 30, + "build_id": 140, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + }, + { + "id": 31, + "build_id": 145, + "number": null, + "name": null, + "state": null, + "started_at": null, + "finished_at": null, + "org_id": null, + "com_id": null + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/stage_33-37.json b/spec/support/expected_files/remove_user_with_dependencies/stage_32-36.json similarity index 56% rename from spec/support/expected_files/remove_org_with_dependencies/stage_33-37.json rename to spec/support/expected_files/remove_user_with_dependencies/stage_32-36.json index 4b99471..f6c6757 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/stage_33-37.json +++ b/spec/support/expected_files/remove_user_with_dependencies/stage_32-36.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 33, - "build_id": 68, + "id": 32, + "build_id": 148, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 34, - "build_id": 73, + "id": 33, + "build_id": 153, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 35, - "build_id": 78, + "id": 34, + "build_id": 158, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 36, - "build_id": 83, + "id": 35, + "build_id": 163, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 37, - "build_id": 88, + "id": 36, + "build_id": 166, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_org_with_dependencies/stage_38-50.json b/spec/support/expected_files/remove_user_with_dependencies/stage_37-49.json similarity index 53% rename from spec/support/expected_files/remove_org_with_dependencies/stage_38-50.json rename to spec/support/expected_files/remove_user_with_dependencies/stage_37-49.json index 40a0031..0de26d1 100644 --- a/spec/support/expected_files/remove_org_with_dependencies/stage_38-50.json +++ b/spec/support/expected_files/remove_user_with_dependencies/stage_37-49.json @@ -2,49 +2,59 @@ "table_name": "stages", "data": [ { - "id": 38, - "build_id": 88, + "id": 37, + "build_id": 173, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 47, - "build_id": 138, + "id": 38, + "build_id": 178, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 48, - "build_id": 143, + "id": 39, + "build_id": 178, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 49, - "build_id": 146, + "id": 40, + "build_id": 178, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 50, - "build_id": 151, + "id": 49, + "build_id": 229, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_repo_with_dependencies/stage_38-50.json b/spec/support/expected_files/remove_user_with_dependencies/stage_50-61.json similarity index 52% rename from spec/support/expected_files/remove_repo_with_dependencies/stage_38-50.json rename to spec/support/expected_files/remove_user_with_dependencies/stage_50-61.json index 40a0031..6043e7d 100644 --- a/spec/support/expected_files/remove_repo_with_dependencies/stage_38-50.json +++ b/spec/support/expected_files/remove_user_with_dependencies/stage_50-61.json @@ -2,49 +2,48 @@ "table_name": "stages", "data": [ { - "id": 38, - "build_id": 88, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 47, - "build_id": 138, + "id": 50, + "build_id": 229, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 48, - "build_id": 143, + "id": 51, + "build_id": 229, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 49, - "build_id": 146, + "id": 60, + "build_id": 280, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null }, { - "id": 50, - "build_id": 151, + "id": 61, + "build_id": 285, "number": null, "name": null, "state": null, "started_at": null, - "finished_at": null + "finished_at": null, + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/stage_51-63.json b/spec/support/expected_files/remove_user_with_dependencies/stage_51-63.json deleted file mode 100644 index 944cb8b..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/stage_51-63.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "table_name": "stages", - "data": [ - { - "id": 51, - "build_id": 156, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 52, - "build_id": 161, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 53, - "build_id": 161, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 62, - "build_id": 211, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 63, - "build_id": 211, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/stage_72-73.json b/spec/support/expected_files/remove_user_with_dependencies/stage_72-73.json deleted file mode 100644 index 5fe27f1..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/stage_72-73.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "table_name": "stages", - "data": [ - { - "id": 72, - "build_id": 261, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - }, - { - "id": 73, - "build_id": 266, - "number": null, - "name": null, - "state": null, - "started_at": null, - "finished_at": null - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/star_1-6.json b/spec/support/expected_files/remove_user_with_dependencies/star_1-6.json index f6a459b..9117877 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/star_1-6.json +++ b/spec/support/expected_files/remove_user_with_dependencies/star_1-6.json @@ -4,30 +4,30 @@ { "id": 1, "repository_id": null, - "user_id": 9, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "user_id": 1, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 2, "repository_id": null, - "user_id": 9, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "user_id": 1, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 5, "repository_id": 1, "user_id": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 6, "repository_id": 1, "user_id": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/subscription_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/subscription_1-2.json index 30761cb..5c844c6 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/subscription_1-2.json +++ b/spec/support/expected_files/remove_user_with_dependencies/subscription_1-2.json @@ -5,8 +5,8 @@ "id": 1, "cc_token": null, "valid_to": null, - "owner_id": 9, "owner_type": "User", + "owner_id": 1, "first_name": null, "last_name": null, "company": null, @@ -18,8 +18,8 @@ "country": null, "vat_id": null, "customer_id": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "cc_owner": null, "cc_last_digits": null, "cc_expiration_date": null, @@ -37,8 +37,8 @@ "id": 2, "cc_token": null, "valid_to": null, - "owner_id": 9, "owner_type": "User", + "owner_id": 1, "first_name": null, "last_name": null, "company": null, @@ -50,8 +50,8 @@ "country": null, "vat_id": null, "customer_id": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "cc_owner": null, "cc_last_digits": null, "cc_expiration_date": null, diff --git a/spec/support/expected_files/remove_user_with_dependencies/tag_33-38.json b/spec/support/expected_files/remove_user_with_dependencies/tag_33-38.json index e95f550..bc4a887 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/tag_33-38.json +++ b/spec/support/expected_files/remove_user_with_dependencies/tag_33-38.json @@ -7,8 +7,10 @@ "name": null, "last_build_id": null, "exists_on_github": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null }, { "id": 38, @@ -16,8 +18,10 @@ "name": null, "last_build_id": null, "exists_on_github": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", + "org_id": null, + "com_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/token_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/token_1-2.json new file mode 100644 index 0000000..c421489 --- /dev/null +++ b/spec/support/expected_files/remove_user_with_dependencies/token_1-2.json @@ -0,0 +1,19 @@ +{ + "table_name": "tokens", + "data": [ + { + "id": 1, + "user_id": 1, + "token": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + }, + { + "id": 2, + "user_id": 1, + "token": null, + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" + } + ] +} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/token_9-10.json b/spec/support/expected_files/remove_user_with_dependencies/token_9-10.json deleted file mode 100644 index 479096a..0000000 --- a/spec/support/expected_files/remove_user_with_dependencies/token_9-10.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "table_name": "tokens", - "data": [ - { - "id": 9, - "user_id": 9, - "token": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - }, - { - "id": 10, - "user_id": 9, - "token": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" - } - ] -} \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/trial_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/trial_1-2.json index 1bb0e18..45bbf14 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/trial_1-2.json +++ b/spec/support/expected_files/remove_user_with_dependencies/trial_1-2.json @@ -3,25 +3,25 @@ "data": [ { "id": 1, - "owner_id": 9, "owner_type": "User", + "owner_id": 1, "chartmogul_customer_uuids": [ ], "status": "new", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 2, - "owner_id": 9, "owner_type": "User", + "owner_id": 1, "chartmogul_customer_uuids": [ ], "status": "new", - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_1-5.json b/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_1-5.json index b9a12bd..1014932 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_1-5.json +++ b/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_1-5.json @@ -8,8 +8,8 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 2, @@ -18,8 +18,8 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 3, @@ -28,8 +28,8 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 4, @@ -38,18 +38,18 @@ "creator_type": null, "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" }, { "id": 5, "trial_id": null, - "creator_id": 9, + "creator_id": 1, "creator_type": "User", "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_6-6.json b/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_6-6.json index 6c5e7cd..00ea9c1 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_6-6.json +++ b/spec/support/expected_files/remove_user_with_dependencies/trial_allowance_6-6.json @@ -4,12 +4,12 @@ { "id": 6, "trial_id": null, - "creator_id": 9, + "creator_id": 1, "creator_type": "User", "builds_allowed": null, "builds_remaining": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC" + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC" } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/user_9-9.json b/spec/support/expected_files/remove_user_with_dependencies/user_1-1.json similarity index 56% rename from spec/support/expected_files/remove_user_with_dependencies/user_9-9.json rename to spec/support/expected_files/remove_user_with_dependencies/user_1-1.json index afbb7b4..f568d12 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/user_9-9.json +++ b/spec/support/expected_files/remove_user_with_dependencies/user_1-1.json @@ -2,12 +2,12 @@ "table_name": "users", "data": [ { - "id": 9, + "id": 1, "name": null, "login": null, "email": null, - "created_at": "2021-04-11 21:55:03 UTC", - "updated_at": "2021-04-11 21:55:03 UTC", + "created_at": "2021-09-01 15:01:06 UTC", + "updated_at": "2021-09-01 15:01:06 UTC", "is_admin": false, "github_id": null, "github_oauth_token": null, @@ -20,7 +20,16 @@ "first_logged_in_at": null, "avatar_url": null, "suspended": false, - "suspended_at": null + "suspended_at": null, + "org_id": null, + "com_id": null, + "migrating": null, + "migrated_at": null, + "redacted_at": null, + "preferences": { + }, + "vcs_type": "GithubUser", + "vcs_id": null } ] } \ No newline at end of file diff --git a/spec/support/expected_files/remove_user_with_dependencies/user_beta_feature_1-2.json b/spec/support/expected_files/remove_user_with_dependencies/user_beta_feature_1-2.json index f137909..51283dc 100644 --- a/spec/support/expected_files/remove_user_with_dependencies/user_beta_feature_1-2.json +++ b/spec/support/expected_files/remove_user_with_dependencies/user_beta_feature_1-2.json @@ -3,7 +3,7 @@ "data": [ { "id": 1, - "user_id": 9, + "user_id": 1, "beta_feature_id": null, "enabled": null, "last_deactivated_at": null, @@ -11,7 +11,7 @@ }, { "id": 2, - "user_id": 9, + "user_id": 1, "beta_feature_id": null, "enabled": null, "last_deactivated_at": null, diff --git a/spec/support/factories/build_config.rb b/spec/support/factories/build_config.rb index f2369bf..4b1c135 100644 --- a/spec/support/factories/build_config.rb +++ b/spec/support/factories/build_config.rb @@ -8,14 +8,23 @@ key { 'some_test_key' } factory :build_config_with_all_dependencies do - after(:create) do |build_config| + transient do + created_at { nil } + updated_at { nil } + end + + after(:create) do |build_config, evaluator| create( :build_with_safe_dependencies_and_sibling, - config_id: build_config.id + config_id: build_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) create_list( :deleted_build, 2, - config_id: build_config.id + config_id: build_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) end @@ -23,7 +32,7 @@ after(:create) do |build_config| create(:build_config, build_config.attributes_without_id.symbolize_keys) end - end + end end end end \ No newline at end of file diff --git a/spec/support/factories/deleted_tag.rb b/spec/support/factories/deleted_tag.rb index 11e9558..094a1b9 100644 --- a/spec/support/factories/deleted_tag.rb +++ b/spec/support/factories/deleted_tag.rb @@ -5,12 +5,6 @@ FactoryBot.define do factory :deleted_tag do - # repository_id { 1 } - # name { 'abc' } - # last_build_id { 1 } - # exists_on_github { false } - # org_id { 1 } - # com_id { 1 } sequence(:id) { |n| n } end end \ No newline at end of file diff --git a/spec/support/factories/job_config.rb b/spec/support/factories/job_config.rb index d1e7b84..45fc761 100644 --- a/spec/support/factories/job_config.rb +++ b/spec/support/factories/job_config.rb @@ -8,17 +8,26 @@ key { 'some_test_key' } factory :job_config_with_all_dependencies do - after(:create) do |job_config| + transient do + created_at { nil } + updated_at { nil } + end + + after(:create) do |job_config, evaluator| create( :job_with_all_dependencies_and_sibling, - config_id: job_config.id + config_id: job_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) create_list( :deleted_job, 2, - config_id: job_config.id + config_id: job_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) end - + factory :job_config_with_all_dependencies_and_sibling do after(:create) do |job_config| create(:job_config, job_config.attributes_without_id.symbolize_keys) diff --git a/spec/support/factories/repository.rb b/spec/support/factories/repository.rb index c9ed55b..762defa 100644 --- a/spec/support/factories/repository.rb +++ b/spec/support/factories/repository.rb @@ -88,13 +88,13 @@ def create_for_repo(repository, what, how_many = 1) create_for_repo(repository, :pull_request_with_all_dependencies_and_sibling) create_for_repo(repository, :tag_with_all_dependencies_and_sibling) - create(:build_config_with_all_dependencies_and_sibling, repository_id: repository.id) + create_for_repo(repository, :build_config_with_all_dependencies_and_sibling) create_for_repo(repository, :email_unsubscribe, 2) - create(:request_config_with_all_dependencies_and_sibling, repository_id: repository.id) - create(:job_config_with_all_dependencies_and_sibling, repository_id: repository.id) + create_for_repo(repository, :request_config_with_all_dependencies_and_sibling) + create_for_repo(repository, :job_config_with_all_dependencies_and_sibling) create(:request_raw_config_with_all_dependencies_and_sibling, repository_id: repository.id) create_list(:repo_count, 2, repository_id: repository.id) - create(:request_yaml_config_with_all_dependencies_and_sibling, repository_id: repository.id) + create_for_repo(repository, :request_yaml_config_with_all_dependencies_and_sibling) create_for_repo(repository, :deleted_build, 2) create_for_repo(repository, :deleted_request, 2) diff --git a/spec/support/factories/request_config.rb b/spec/support/factories/request_config.rb index 6a7e8f0..5767407 100644 --- a/spec/support/factories/request_config.rb +++ b/spec/support/factories/request_config.rb @@ -8,14 +8,23 @@ key { 'some_test_key' } factory :request_config_with_all_dependencies do - after(:create) do |request_config| + transient do + created_at { nil } + updated_at { nil } + end + + after(:create) do |request_config, evaluator| create( :request_with_all_dependencies_and_sibling, - config_id: request_config.id + config_id: request_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) create_list( :deleted_request, 2, - config_id: request_config.id + config_id: request_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) end diff --git a/spec/support/factories/request_yaml_config.rb b/spec/support/factories/request_yaml_config.rb index 236674d..2bc4009 100644 --- a/spec/support/factories/request_yaml_config.rb +++ b/spec/support/factories/request_yaml_config.rb @@ -8,14 +8,23 @@ key { 'some_test_key' } factory :request_yaml_config_with_all_dependencies do - after(:create) do |request_yaml_config| + transient do + created_at { nil } + updated_at { nil } + end + + after(:create) do |request_yaml_config, evaluator| create( :request_with_all_dependencies_and_sibling, - yaml_config_id: request_yaml_config.id + yaml_config_id: request_yaml_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) create_list( :deleted_request, 2, - yaml_config_id: request_yaml_config.id + yaml_config_id: request_yaml_config.id, + created_at: evaluator.created_at, + updated_at: evaluator.updated_at ) end diff --git a/workspace.code-workspace b/workspace.code-workspace deleted file mode 100644 index 876a149..0000000 --- a/workspace.code-workspace +++ /dev/null @@ -1,8 +0,0 @@ -{ - "folders": [ - { - "path": "." - } - ], - "settings": {} -} \ No newline at end of file