Skip to content

Commit

Permalink
Remove datawarehouse views
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooli Tayer committed Dec 24, 2017
1 parent 86b535f commit b0731a4
Show file tree
Hide file tree
Showing 29 changed files with 11 additions and 752 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ ManageIQ.angular.app.controller('emsCommonFormController', ['$http', '$scope', '
$scope.emsCommonModel.metrics_password != '' && $scope.angularForm.metrics_password.$valid)) {
return true;
} else if($scope.currentTab == "default" &&
["ems_container", "ems_middleware", "ems_datawarehouse", "ems_physical_infra"].indexOf($scope.emsCommonModel.ems_controller) >= 0 &&
["ems_container", "ems_middleware", "ems_physical_infra"].indexOf($scope.emsCommonModel.ems_controller) >= 0 &&
($scope.emsCommonModel.emstype) &&
($scope.emsCommonModel.default_hostname != '' && $scope.emsCommonModel.default_api_port) &&
($scope.emsCommonModel.default_password != '' && $scope.angularForm.default_password.$valid)) {
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1669,8 +1669,6 @@ def render_or_redirect_partial(pfx)
javascript_redirect edit_ems_container_path(params[:id])
elsif params[:pressed] == "ems_middleware_edit" && params[:id]
javascript_redirect edit_ems_middleware_path(params[:id])
elsif params[:pressed] == "ems_datawarehouse_edit" && params[:id]
javascript_redirect edit_ems_datawarehouse_path(params[:id])
elsif params[:pressed] == "ems_network_edit" && params[:id]
javascript_redirect edit_ems_network_path(params[:id])
elsif params[:pressed] == "ems_physical_infra_edit" && params[:id]
Expand Down
47 changes: 0 additions & 47 deletions app/controllers/ems_datawarehouse_controller.rb

This file was deleted.

20 changes: 0 additions & 20 deletions app/controllers/mixins/ems_common_angular.rb
Original file line number Diff line number Diff line change
Expand Up @@ -436,17 +436,6 @@ def ems_form_fields
:ems_controller => controller_name,
:default_auth_status => default_auth_status}
end

render :json => {:name => @ems.name,
:emstype => @ems.emstype,
:zone => zone,
:default_hostname => @ems.connection_configurations.default.endpoint.hostname,
:default_api_port => @ems.connection_configurations.default.endpoint.port,
:service_account => service_account.to_s,
:bearer_token_exists => @ems.authentication_token(:bearer).nil? ? false : true,
:ems_controller => controller_name,
:default_auth_status => default_auth_status,
} if controller_name == "ems_datawarehouse"
end

private ############################
Expand Down Expand Up @@ -589,11 +578,6 @@ def set_ems_record_vars(ems, mode = nil)
default_endpoint.merge!(endpoint_security_options(ems.security_protocol, default_tls_ca_certs))
end

if ems.kind_of?(ManageIQ::Providers::Hawkular::DatawarehouseManager)
params[:cred_type] = ems.default_authentication_type
default_endpoint = {:role => :default, :hostname => hostname, :port => port}
end

if ems.kind_of?(ManageIQ::Providers::Nuage::NetworkManager)
default_endpoint = {:role => :default, :hostname => hostname, :port => port, :security_protocol => ems.security_protocol}
amqp_endpoint = {:role => :amqp, :hostname => amqp_hostname, :port => amqp_port, :security_protocol => amqp_security_protocol}
Expand Down Expand Up @@ -725,10 +709,6 @@ def build_credentials(ems, mode)
creds[:bearer] = {:auth_key => default_key, :save => (mode != :validate)}
creds.delete(:default)
end
if ems.kind_of?(ManageIQ::Providers::DatawarehouseManager)
default_key = params[:default_password] ? params[:default_password] : ems.authentication_key
creds[:default] = {:auth_key => default_key, :userid => "_", :save => (mode != :validate)}
end
creds
end

Expand Down
5 changes: 0 additions & 5 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,6 @@ def view_to_url(view, parent = nil)
if controller == "ems_middleware" && action == "show"
return ems_middlewares_path
end
if controller == "ems_datawarehouse" && action == "show"
return ems_datawarehouses_path
end
if controller == "ems_network" && action == "show"
return ems_networks_path
end
Expand Down Expand Up @@ -1431,7 +1428,6 @@ def render_listnav_filename
ems_cloud
ems_cluster
ems_container
ems_datawarehouse
ems_infra
ems_middleware
ems_network
Expand Down Expand Up @@ -1502,7 +1498,6 @@ def render_listnav_filename
ems_cloud
ems_cluster
ems_container
ems_datawarehouse
ems_infra
ems_middleware
ems_network
Expand Down
80 changes: 0 additions & 80 deletions app/helpers/application_helper/toolbar/ems_datawarehouse_center.rb

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion app/helpers/application_helper/toolbar_chooser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ def center_toolbar_filename_classic
ems_cloud
ems_cluster
ems_container
ems_datawarehouse
ems_middleware
container_project
container_route
Expand Down
11 changes: 0 additions & 11 deletions app/helpers/datawarehouse_summary_helper.rb

This file was deleted.

4 changes: 0 additions & 4 deletions app/helpers/ems_datawarehouse_helper.rb

This file was deleted.

38 changes: 0 additions & 38 deletions app/helpers/ems_datawarehouse_helper/textual_summary.rb

This file was deleted.

11 changes: 1 addition & 10 deletions app/presenters/menu/default_menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,6 @@ def container_menu_section
])
end

def datawarehouse_menu_section
if ::Settings.product.datawarehouse_manager
Menu::Section.new(:dwh, N_("Datawarehouse"), 'pficon pficon-enterprise', [
Menu::Item.new('ems_datawarehouse', N_('Providers'), 'ems_datawarehouse',
{:feature => 'ems_datawarehouse_show_list'}, '/ems_datawarehouse')
])
end
end

def middleware_menu_section
Menu::Section.new(:mdl, N_("Middleware"), 'pficon pficon-middleware', [
Menu::Item.new('ems_middleware', N_('Providers'), 'ems_middleware', {:feature => 'ems_middleware_show_list'}, '/ems_middleware'),
Expand Down Expand Up @@ -303,7 +294,7 @@ def help_menu_section

def default_menu
[cloud_inteligence_menu_section, services_menu_section, compute_menu_section, configuration_menu_section,
network_menu_section, middleware_menu_section, datawarehouse_menu_section, storage_menu_section,
network_menu_section, middleware_menu_section, storage_menu_section,
control_menu_section, automation_menu_section, optimize_menu_section, monitor_menu_section,
settings_menu_section, help_menu_section].compact
end
Expand Down
Loading

0 comments on commit b0731a4

Please sign in to comment.