Skip to content

Commit

Permalink
feat: remove new_wip_calculation feature toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 12, 2022
1 parent 6b0474f commit add6cb0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit add6cb0

Please sign in to comment.