Change domain block CSV parsing to be more robust and handle more lists (#21470)
* Change domain block CSV parsing to be more robust and handle more lists * Add some tests * Improve domain block import validation and reporting
Showing
- app/controllers/admin/export_domain_allows_controller.rb 1 addition, 3 deletionsapp/controllers/admin/export_domain_allows_controller.rb
- app/controllers/admin/export_domain_blocks_controller.rb 15 additions, 9 deletionsapp/controllers/admin/export_domain_blocks_controller.rb
- app/controllers/concerns/admin_export_controller_concern.rb 0 additions, 10 deletionsapp/controllers/concerns/admin_export_controller_concern.rb
- app/models/admin/import.rb 37 additions, 6 deletionsapp/models/admin/import.rb
- config/locales/en.yml 1 addition, 0 deletionsconfig/locales/en.yml
- spec/controllers/admin/export_domain_blocks_controller_spec.rb 28 additions, 6 deletions...controllers/admin/export_domain_blocks_controller_spec.rb
- spec/fixtures/files/domain_blocks.csv 3 additions, 3 deletionsspec/fixtures/files/domain_blocks.csv
- spec/fixtures/files/domain_blocks_list.txt 3 additions, 0 deletionsspec/fixtures/files/domain_blocks_list.txt
Loading
Please register or sign in to comment