Skip to content
Snippets Groups Projects

Add Duo Enterprise product interaction for seat assignment lead

Merged Doug Stull requested to merge 495116-add-duo-enterprise-activation into master
Files
4
@@ -52,6 +52,8 @@ class AddOnPurchase < ApplicationRecord
.limit(limit)
end
delegate :name, to: :add_on, prefix: true, allow_nil: true
def self.find_by_namespace_and_add_on(namespace, add_on)
find_by(namespace: namespace, add_on: add_on)
end
@@ -110,10 +112,6 @@ def delete_ineligible_user_assignments_in_batches!(batch_size: 50)
deleted_assignments_count
end
def add_on_type
add_on.name.to_sym
end
private
def filter_ineligible_assigned_user_ids(assigned_user_ids)
@@ -128,7 +126,7 @@ def saas_eligible_user_ids
def self_managed_eligible_users_relation
@self_managed_eligible_users_relation ||= GitlabSubscriptions::SelfManaged::AddOnEligibleUsersFinder.new(
add_on_type: add_on_type
add_on_type: add_on_name.to_sym
).execute
end
Loading