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

Adds support for physical server timeline #16084

Merged
merged 2 commits into from
Oct 10, 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
7 changes: 7 additions & 0 deletions app/models/physical_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ class PhysicalServer < ApplicationRecord
include NewWithTypeStiMixin
include MiqPolicyMixin
include TenantIdentityMixin
include SupportsFeatureMixin
include EventMixin

include_concern 'Operations'

acts_as_miq_taggable
Expand Down Expand Up @@ -62,4 +65,8 @@ def my_zone
ems = ext_management_system
ems ? ems.my_zone : MiqServer.my_zone
end

def event_where_clause(assoc = :ems_events)
["#{events_table_name(assoc)}.physical_server_id = ?", id]
end
end
4 changes: 4 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6298,6 +6298,10 @@
:description: Display Individual Physical Server
:feature_type: view
:identifier: physical_server_show
:name: Timeline
:description: Display Timelines for Physical Servers
:feature_type: view
:identifier: physical_server_timeline
- :name: Modify
:description: Modify Physical Servers
:feature_type: admin
Expand Down
6 changes: 6 additions & 0 deletions db/fixtures/miq_user_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- physical_server_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -200,6 +201,7 @@
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- physical_server_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -353,6 +355,7 @@
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- physical_server_timeline
- host_new
- host_analyze
- host_compare
Expand Down Expand Up @@ -459,6 +462,7 @@
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- physical_server_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -541,6 +545,7 @@
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- physical_server_timeline
- host_show
- host_show_list
- host_perf
Expand Down Expand Up @@ -622,6 +627,7 @@
- ems_physical_infra_show_list
- ems_physical_infra_tag
- ems_physical_infra_timeline
- physical_server_timeline
- host_show
- host_show_list
- host_perf
Expand Down