Issue: Import Tags for VM using a CSV file gives an error Error: `undefined method `each_value' for #<ActiveModel::Errors:0x000000000b1a8848> Did you mean? each_slice [ops/upload_csv]` CSV File: name,category,entry kborole-CaseTest,rack,s1102_rz4 Steps to reproduce: 1. Create a Tag Category eg. rack 2. Create entry in the tag category eg. s1102_rz4 3. Create a CSV File as above 4. Navigate to Tags -> Import tags and upload the CSV file The Error is seen on the screen, I have attached a screenshot with the BZ This error is seen whenever the import is tried regardless of CSV file have/don't have errors. Logs: [----] I, [2020-01-17T06:52:54.591487 #21093:4d8be00] INFO -- : MIQ(MiqBulkImport.upload) Uploading CSV file [----] I, [2020-01-17T06:52:54.591912 #21093:4d8be00] INFO -- : MIQ(MiqBulkImport.upload) The following columns are verified in the csv file: category and entry [----] I, [2020-01-17T06:52:54.601174 #21093:4d8be00] INFO -- : MIQ(ClassificationImport#verify) Number of valid entries: 1, number of invalid entries: 0 Info: No errors are logged in the log files
Created attachment 1652983 [details] Error to Update the CSV file
https://github.com/ManageIQ/manageiq-ui-classic/pull/6633
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/7a8d709c00f3b00d56e08ef72962416ca062400c commit 7a8d709c00f3b00d56e08ef72962416ca062400c Author: Hilda Stastna <hstastna> AuthorDate: Wed Jan 22 12:37:13 2020 -0500 Commit: Hilda Stastna <hstastna> CommitDate: Wed Jan 22 12:37:13 2020 -0500 Allow importing Tags for VM using a CSV file Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1792185 app/controllers/ops_controller/settings/upload.rb | 2 +- spec/controllers/ops_controller/settings/upload_spec.rb | 17 + 2 files changed, 18 insertions(+), 1 deletion(-)