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 = {