[BE] Provide script to run on console for bulk assignment
All threads resolved!
All threads resolved!
Compare changes
Files
5+ 34
− 27
@@ -5,6 +5,7 @@
@@ -5,6 +5,7 @@
# add_on_purchase = GitlabSubscriptions::AddOnPurchase.find_by(add_on: GitlabSubscriptions::AddOn.code_suggestions.last)
@@ -17,7 +18,8 @@
@@ -17,7 +18,8 @@
@@ -28,10 +30,19 @@ def initialize(usernames, add_on_purchase)
@@ -28,10 +30,19 @@ def initialize(usernames, add_on_purchase)
@@ -40,25 +51,13 @@ def execute!
@@ -40,25 +51,13 @@ def execute!
failed_assignments << "##No seats are left; users starting from @#{username} onwards were not assigned.##"
@@ -67,20 +66,28 @@ def assign!(user)
@@ -67,20 +66,28 @@ def assign!(user)