From add6cb08023373595ae0bcce51a0b05646d573d6 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 12 May 2022 14:15:55 +1000 Subject: [PATCH] feat: remove new_wip_calculation feature toggle --- .../pacts/pact_publication_wip_dataset_module.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb b/lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb index e5cfc2ff5..eb6ade199 100644 --- a/lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb +++ b/lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb @@ -47,21 +47,6 @@ def successfully_verified_by_provider_tag_when_not_wip(provider_tag) end def successfully_verified_by_provider_another_tag_before_this_tag_first_created(provider_id, provider_tag) - return new_successfully_verified_by_provider_another_tag_before_this_tag_first_created(provider_id, provider_tag) if PactBroker.feature_enabled?(:new_wip_calculation) - - first_tag_with_name = PactBroker::Domain::Tag.where(pacticipant_id: provider_id, name: provider_tag).order(:created_at).first - from_self(alias: :pp) - .select(Sequel[:pp].*) - .where(Sequel[:pp][:provider_id] => provider_id) - .join_successful_non_wip_verifications_for_provider_id(provider_id) - .join_provider_version_tags do - Sequel.lit("provider_tags.name != ?", provider_tag) - end - .verified_before_creation_date_of(first_tag_with_name) - .distinct - end - - def new_successfully_verified_by_provider_another_tag_before_this_tag_first_created(provider_id, provider_tag) first_tag_with_name = PactBroker::Domain::Tag.where(pacticipant_id: provider_id, name: provider_tag).order(:created_at).first pact_version_provider_tag_verifications_join = {