Bug 1792185 - Import Tags for VM using a CSV file gives an error
Summary: Import Tags for VM using a CSV file gives an error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.12.0
Assignee: Hilda Stastna
QA Contact: PJ Richardson
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1806554
TreeView+ depends on / blocked
 
Reported: 2020-01-17 08:56 UTC by Khushbu Borole
Modified: 2023-09-07 21:30 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1806554 (view as bug list)
Environment:
Last Closed: 2020-06-10 13:12:22 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:
mfeifer: mirror+


Attachments (Terms of Use)
Error to Update the CSV file (37.72 KB, image/png)
2020-01-17 08:57 UTC, Khushbu Borole
no flags Details

Description Khushbu Borole 2020-01-17 08:56:53 UTC
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

Comment 2 Khushbu Borole 2020-01-17 08:57:44 UTC
Created attachment 1652983 [details]
Error to Update the CSV file

Comment 5 CFME Bot 2020-01-24 10:47:10 UTC
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(-)


Note You need to log in before you can comment on or make changes to this bug.