Miq_product_features


#1

Following guidelines in this article:

I created a new folder:

/var/www/miq/vmdb/db/fixtures/miq_product_features/

And added a yml file which included the definition of a custom feature.

This feature gets correctly seeded into the database (confirmed by looking at log file and postgresql database) however it does not appear in the product features tree in the UI.

I thought perhaps a new role would need to be created which explicitly has access to this custom feature before it would appear.

Added this role to:

/var/www/miq/vmdb/db/fixtures/miq_user_roles/

This role was added just fine, but still the custom features do not appear in the UI.

I know this has been asked about elsewhere, but I haven’t found a solution that works for me.

Thanks for your help!


#2

There is a new article on the same topic, did you try that?


#3

That seems to have done it! Thanks!


#4

What is the difference between “feature” and “rbac/feature” here:

type: item
name: Access
id: external_access
feature: external_access
rbac:
  feature: external_access
parent: external_menu
href: https://access.redhat.com/
item_type: big_iframe

Also, must there be a 1:1 relationship between items that appear in “menubar” and the permissions defined in miq_product_features? It seems as though the features defined in miq_product_features do not appear in the UI when editing a role unless they correspond to a menu item.