Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unleash_gitlab_user_list_strategy.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5617f8002d96d075c0f41d5f1f753d990e5d857c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    class UnleashGitlabUserListStrategy < Grape::Entity
      expose :name do |_strategy|
        ::Operations::FeatureFlags::Strategy::STRATEGY_USERWITHID
      end
      expose :parameters do |strategy|
        { userIds: strategy.user_list.user_xids }
      end
    end
  end
end