Bug 1566888 - Items can not be tagged to new category
Summary: Items can not be tagged to new category
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yadan Pei
Depends On:
TreeView+ depends on / blocked
Reported: 2018-04-13 07:06 UTC by XiaochuanWang
Modified: 2018-04-13 17:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-04-13 17:06:10 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description XiaochuanWang 2018-04-13 07:06:55 UTC
Description of problem:
Add js to configmap in openshift-web-console project, check the tagged items. They should have be tagged into new category by js.

Version-Release number of selected component (if applicable):
openshift-master/openshift-web-console: v3.9.20 

How reproducible:

Steps to Reproduce:
1.Add the js to configmap in openshift-web-console project:
2. When the container is ready, login on web-console, check if all items from database are also classified into 'My Category'

Actual results:
Items tagged with "databse" should be also classified into 'My Category'

Expected results:
Items tagged with "databse" is not classified into 'My Category'.

Additional info:
created new IS by https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/image-streams/httpd-istag.yaml could be tagged into 'My Category'.

Comment 1 Samuel Padgett 2018-04-13 17:06:10 UTC
The problem is that your category has a `tags` array and none of the tags in the category match any of the items. You can simply remove the tags array from the category, and the subcategory should match. For example,

  {id: 'mycat', label: 'My Category', subCategories: [
    {id: 'database', label: 'Database', tags: ['database']}

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