Skip to content

Commit 4e68993

Browse files
committed
Sat 6.1 candidate upstream
1 parent d9e6ef6 commit 4e68993

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

redhat-access/README.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ This plugin extends the Foreman UI ( https://github.com/theforeman/foreman ) wit
44
This includes ability to search the Red Hat Knowledge Base, Support Case Management
55
and Log Diagnostics.
66

7-
This plugin depends on the Red Hat Access Angular library https://github.com/redhataccess/redhat_access_angular_ui/releases/tag/v0.0.1
7+
This plugin depends on the Red Hat Access Angular library https://github.com/redhataccess/redhat_access_angular_ui/ version 0.9.56

redhat-access/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ Rake::TestTask.new(:test) do |t|
3737
end
3838

3939
desc 'Compile stand alone engine assets'
40+
41+
task 'a:c' do
42+
#Alias for commandline execution
43+
Rake::Task['assets:precompile:engine'].invoke
44+
end
45+
4046
task 'assets:precompile:engine' do
4147
require 'sprockets'
4248
require 'sprockets/railtie'

redhat-access/app/assets/javascripts/redhat_access/redhat_access.module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ angular.module('RedhatAccess', [
5555
TITLE_VIEW_CONFIG.show = true;
5656
hideMachinesDropdown.value = true;
5757
NEW_DEFAULTS.product = "Red Hat Satellite or Proxy"; //TODO read from server config
58-
NEW_DEFAULTS.version = "6.0 Beta"; //TODO read from server config
58+
NEW_DEFAULTS.version = "6.0"; //TODO read from server config
5959
gettextCatalog.currentLanguage = currentLocale;
60-
console.log('Setting language to ' + currentLocale);
60+
//console.log('Setting language to ' + currentLocale);
6161
// $http({
6262
// method: 'GET',
6363
// url: 'configuration'

redhat-access/app/controllers/redhat_access/telemetry_api_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class TelemetryApiController < ApplicationController
99
skip_before_filter :authorize, :require_login, :session_expiry, :verify_authenticity_token
1010
before_filter :telemetry_auth
1111

12-
# TODO change this to be set from config
1312
STRATA_URL="https://#{REDHAT_ACCESS_CONFIG[:strata_host]}"
1413

1514
YAML_URL="#{STRATA_URL}/rs/telemetry/api/static/uploader.yaml"
@@ -20,7 +19,7 @@ def get_creds
2019
end
2120

2221
def telemetry_auth
23-
authorize_client
22+
authenticate_client
2423
unless User.current.is_a? RedhatAccess::Authentication::CertUser
2524
authorize
2625
end

redhat-access/app/services/redhat_access/authentication/client_authentication.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@
88
module RedhatAccess
99
module Authentication
1010
module ClientAuthentication
11+
1112
def authenticate_client
1213
set_client_user
13-
User.current.present?
14-
end
15-
16-
def authorize_client
17-
authenticate_client
1814
require_login unless User.current
15+
User.current.present?
1916
end
2017

21-
22-
2318
def deny_access
2419
render json: { :message => "Permission Denied." }, :status => 403
2520
end

redhat-access/rubygem-foreman-redhat_access.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ cp -pa .%{rubygem_redhat_access_dir}/config/config.yml.example %{buildroot}/etc/
116116
%changelog
117117
* Mon Dec 12 2014 Lindani Phiri <[email protected]> - 0.0.7-1
118118
- Add proactive support
119+
- Resolves: bz1131538
120+
- Resolves: bz1145742
121+
119122
* Wed May 14 2014 Rex White <[email protected]> - 0.0.4-1
120123
- Resolves: bz1084590
121124
- Updated for UX comments

0 commit comments

Comments
 (0)