Skip to content

Commit

Permalink
feat: remove feature flag for new_wip_calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Dec 6, 2021
1 parent 19ab9cd commit 972cead
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/pact_broker/pacts/pact_publication_wip_dataset_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ def join_branch_versions_excluding_branch(branch_name)
end

def successfully_verified_by_provider_tag_when_not_wip(provider_id, provider_tag)
return new_successfully_verified_by_provider_tag_when_not_wip(provider_id, provider_tag) if PactBroker.feature_enabled?(:new_wip_calculation)

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_for_tag(provider_tag)
.distinct
end

def new_successfully_verified_by_provider_tag_when_not_wip(_provider_id, provider_tag)
pact_version_provider_tag_verifications_join = {
Sequel[:sv][:pact_version_id] => Sequel[:pp][:pact_version_id],
Sequel[:sv][:provider_version_tag_name] => provider_tag,
Expand Down

0 comments on commit 972cead

Please sign in to comment.