Commit 1c16cdec authored by Micaël Bergeron's avatar Micaël Bergeron

fix a problem with table_to_csv caching

parent 184f612d
......@@ -5,10 +5,9 @@
.form-group.row
.offset-sm-2.col-sm-10
- is_enabled = @application_setting.pseudonymizer_enabled?
- is_available = @application_setting.pseudonymizer_available?
.form-check
= f.label :pseudonymizer_enabled do
= f.check_box :pseudonymizer_enabled, disabled: !is_available
= f.check_box :pseudonymizer_enabled
Enable Pseudonymizer Cron Job
.form-text.text-muted
- if is_enabled
......@@ -17,4 +16,3 @@
= pseudonymizer_disabled_description_text
= f.submit 'Save changes', class: "btn btn-success"
......@@ -109,7 +109,7 @@ module Pseudonymizer
end
def tables_to_csv
return @output_files if @output_files
return @output_files unless @output_files.empty?
tables = config[:tables]
FileUtils.mkdir_p(output_dir) unless File.directory?(output_dir)
......
......@@ -72,8 +72,8 @@ namespace :gitlab do
desc 'Output pseudonymity dump of selected tables'
task pseudonymizer: :environment do
# abort "The pseudonymizer is not available with this license." unless License.feature_available?(:pseudonymizer)
# abort "The pseudonymizer is disabled." unless Gitlab::CurrentSettings.pseudonymizer_enabled?
abort "The pseudonymizer is not available with this license." unless License.feature_available?(:pseudonymizer)
abort "The pseudonymizer is disabled." unless Gitlab::CurrentSettings.pseudonymizer_enabled?
options = Pseudonymizer::Options.new(
config: YAML.load_file(Gitlab.config.pseudonymizer.manifest),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment