lib/karafka/web/ui/models/status.rb in karafka-web-0.2.3 vs lib/karafka/web/ui/models/status.rb in karafka-web-0.2.4
- old
+ new
@@ -116,9 +116,25 @@
status,
nil
)
end
+ # @return [Status::Step] is Pro enabled with all of its features.
+ # @note It's not an error not to have it but we want to warn, that some of the features
+ # may not work without Pro.
+ def pro_subscription
+ status = if state_calculation.success?
+ ::Karafka.pro? ? :success : :warning
+ else
+ :halted
+ end
+
+ Step.new(
+ status,
+ nil
+ )
+ end
+
private
# @return [String] consumers states topic name
def topics_consumers_states
::Karafka::Web.config.topics.consumers.states.to_s