Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Physical Infra Providers Menu Item #13587

Merged
merged 3 commits into from
Jan 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/aliases/ems_physical_infra.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::EmsPhysicalInfra = ::ManageIQ::Providers::PhysicalInfraManager
86 changes: 86 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6030,6 +6030,92 @@
:feature_type: view
:identifier: ems_object_storage_timeline

# EmsPhysicalInfra
- :name: Physical Infrastructure Providers
:description: Everything under Physical Infrastructure Providers
:feature_type: node
:identifier: ems_physical_infra
:children:
- :name: View
:description: View Physical Infrastructure Providers
:feature_type: view
:identifier: ems_physical_infra_view
:children:
- :name: List
:description: Display List of Physical Infrastructure Providers
:feature_type: view
:identifier: ems_physical_infra_show_list
- :name: Show
:description: Display Individual Physical Infrastructure Providers
:feature_type: view
:identifier: ems_physical_infra_show
- :name: Timeline
:description: Display Timelines for Physical Infrastructure Providers
:feature_type: view
:identifier: ems_physical_infra_timeline
- :name: Operate
:description: Perform Operations on Physical Infrastructure Providers
:feature_type: control
:identifier: ems_physical_infra_control
:children:
- :name: Edit Tags
:description: Edit Tags of Physical Infrastructure Providers
:feature_type: control
:identifier: ems_physical_infra_tag
- :name: Manage Policies
:description: Manage Policies of Physical Infrastructure Providers
:feature_type: control
:identifier: ems_physical_infra_protect
- :name: Check Compliance
:description: Check Compliance of Last Known Configuration
:feature_type: control
:identifier: ems_physical_infra_check_compliance
- :name: Refresh
:description: Refresh Physical Infrastructure Providers
:feature_type: control
:identifier: ems_physical_infra_refresh
- :name: Re-check Authentication Status
:description: Re-check Authentication Status of Physical Infrastructure Providers
:feature_type: control
:identifier: ems_physical_infra_recheck_auth_status
- :name: Modify
:description: Modify Physical Infrastructure Providers
:feature_type: admin
:identifier: ems_physical_infra_admin
:children:
- :name: Remove
:description: Remove Physical Infrastructure Providers
:feature_type: admin
:identifier: ems_physical_infra_delete
- :name: Edit
:description: Edit a Physical Infrastructure Provider
:feature_type: admin
:identifier: ems_physical_infra_edit
- :name: Add
:description: Add a Physical Infrastructure Provider
:feature_type: admin
:identifier: ems_physical_infra_new

# Physical Servers
- :name: Physical Servers
:description: Everything under Physical Infra Servers
:feature_type: node
:identifier: physical_server
:children:
- :name: View
:description: View Physical Server
:feature_type: view
:identifier: physical_server_view
:children:
- :name: List
:description: Display Lists of Physical Servers
:feature_type: view
:identifier: shosical_server_show_list
- :name: Show
:description: Display Individual Physical Server
:feature_type: view
:identifier: physical_server_show

# Monitor
- :name: Monitor
:description: Everything under Monitor
Expand Down
31 changes: 31 additions & 0 deletions db/fixtures/miq_user_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- ems_network
- ems_cluster
- ems_infra
- ems_physical_infra
- container_dashboard
- ems_container
- ems_container_deployment
Expand Down Expand Up @@ -128,6 +129,10 @@
- ems_infra_show_list
- ems_infra_tag
- ems_infra_timeline
- ems_physical_infra_show
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -236,6 +241,10 @@
- ems_infra_show_list
- ems_infra_tag
- ems_infra_timeline
- ems_physical_infra_show
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -404,6 +413,14 @@
- ems_infra_show_list
- ems_infra_tag
- ems_infra_timeline
- ems_physical_infra_new
- ems_physical_infra_delete
- ems_physical_infra_edit
- ems_physical_infra_refresh
- ems_physical_infra_show
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- host_new
- host_analyze
- host_compare
Expand Down Expand Up @@ -530,6 +547,10 @@
- ems_infra_show_list
- ems_infra_tag
- ems_infra_timeline
- ems_physical_infra_show
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -627,6 +648,10 @@
- ems_infra_show_list
- ems_infra_tag
- ems_infra_timeline
- ems_physical_infra_show
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -720,6 +745,10 @@
- ems_infra_show_list
- ems_infra_tag
- ems_infra_timeline
- ems_physical_infra_show
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -974,6 +1003,7 @@
- ems_network
- ems_cluster
- ems_infra
- ems_physical_infra
- host
- job_all_smartproxy
- job_my_smartproxy
Expand Down Expand Up @@ -1041,6 +1071,7 @@
- ems_cloud
- ems_cluster
- ems_infra
- ems_physical_infra
- host
- job_all_smartproxy
- job_my_smartproxy
Expand Down
84 changes: 84 additions & 0 deletions product/views/ManageIQ_Providers_PhysicalInfraManager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#
# This is an MIQ Report configuration file
# Single value parameters are specified as:
# single_value_parm: value
# Multiple value parameters are specified as:
# multi_value_parm:
# - value 1
# - value 2
#

# Report title
title: Physical Infrastructure Providers
# Menu name
name: EmsPhysicalInfra
# Main DB table report is based on
db: EmsPhysicalInfra
# Columns to fetch from the main table
cols:
- name
- hostname
- ipaddress
- emstype_description
- port
- total_hosts
- total_storages
- total_vms
- total_miq_templates
- region_description
# Included tables (joined, has_one, has_many) and columns
include:
zone:
columns:
- name
# Included tables and columns for query performance
include_for_find:
:zone: {}
:tags: {}
# Order of columns (from all tables)
col_order:
- name
- hostname
- ipaddress
- emstype_description
- zone.name
- total_hosts
- total_storages
- total_vms
- total_miq_templates
- region_description
# Column titles, in order
headers:
- Name
- Hostname
- Discovered IP Address
- Type
- EVM Zone
- Hosts
- Datastores
- VMs
- Templates
- Region
# Condition(s) string for the SQL query
conditions:
# Order string for the SQL query
order: Ascending
# Columns to sort the report on, in order
sortby:
- name
# Group rows (y=yes,n=no,c=count)
group: n
# Graph type
# Bar
# Column
# ColumnThreed
# ParallelThreedColumn
# Pie
# PieThreed
# StackedBar
# StackedColumn
# StackedThreedColumn
graph:
# Dimensions of graph (1 or 2)
# Note: specifying 2 for a single dimension graph may not return expected results
dims: