Skip to content

Commit

Permalink
Merge pull request #13587 from juliancheal/ph_infra_pages
Browse files Browse the repository at this point in the history
[WIP] Adding Physical Infra Providers Menu Item
  • Loading branch information
blomquisg committed Jan 31, 2017
2 parents 848e68b + 7a25ba8 commit 98394e9
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 0 deletions.
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 @@ -6116,6 +6116,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 @@ -33,6 +33,7 @@
- ems_network
- ems_cluster
- ems_infra
- ems_physical_infra
- container_dashboard
- ems_container
- ems_container_deployment
Expand Down Expand Up @@ -129,6 +130,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 @@ -238,6 +243,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 @@ -408,6 +417,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 @@ -534,6 +551,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 @@ -631,6 +652,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 @@ -724,6 +749,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 @@ -981,6 +1010,7 @@
- ems_network
- ems_cluster
- ems_infra
- ems_physical_infra
- host
- job_all_smartproxy
- job_my_smartproxy
Expand Down Expand Up @@ -1049,6 +1079,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:

0 comments on commit 98394e9

Please sign in to comment.