2021-05-14 18:10:34 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Projects::Analytics::CycleAnalytics::ValueStreamsController < Projects::ApplicationController
|
|
|
|
respond_to :json
|
|
|
|
|
|
|
|
feature_category :planning_analytics
|
2022-05-13 15:07:43 +00:00
|
|
|
urgency :low
|
2021-05-14 18:10:34 +00:00
|
|
|
|
|
|
|
before_action :authorize_read_cycle_analytics!
|
|
|
|
|
|
|
|
def index
|
|
|
|
# FOSS users can only see the default value stream
|
|
|
|
value_streams = [Analytics::CycleAnalytics::ProjectValueStream.build_default_value_stream(@project)]
|
|
|
|
|
|
|
|
render json: Analytics::CycleAnalytics::ValueStreamSerializer.new.represent(value_streams)
|
|
|
|
end
|
|
|
|
end
|