Skip to content

Commit

Permalink
always enable web for actions (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
mensfeld authored Feb 1, 2024
1 parent 9608a33 commit 146b148
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/karafka/web/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Installer
#
# @param replication_factor [Integer] replication factor we want to use (1 by default)
def install(replication_factor: 1)
enable!
puts
puts 'Installing Karafka Web UI...'
puts
Expand All @@ -21,7 +22,6 @@ def install(replication_factor: 1)
puts
Management::Actions::CreateTopics.new.call(replication_factor)
wait_for_topics
enable!
Management::Actions::CreateInitialStates.new.call
puts
puts 'Running data migrations...'
Expand All @@ -36,6 +36,7 @@ def install(replication_factor: 1)
#
# @param replication_factor [Integer] replication factor we want to use (1 by default)
def migrate(replication_factor: 1)
enable!
puts
puts 'Creating necessary topics and populating state data...'
puts
Expand All @@ -53,6 +54,7 @@ def migrate(replication_factor: 1)
# Removes all the Karafka topics and creates them again with the same replication factor
# @param replication_factor [Integer] replication factor we want to use (1 by default)
def reset(replication_factor: 1)
enable!
puts
puts 'Resetting Karafka Web UI...'
puts
Expand All @@ -71,6 +73,7 @@ def reset(replication_factor: 1)

# Removes all the Karafka Web topics and cleans after itself.
def uninstall
enable!
puts
puts 'Uninstalling Karafka Web UI...'
puts
Expand Down

0 comments on commit 146b148

Please sign in to comment.