mno-enterprise-api 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7e106e124a8c96884a2b7ac9c9542ab67460442
4
- data.tar.gz: c127898de52fae7ee5a694698b222cfbdc1cca5c
3
+ metadata.gz: 9b7f765aeb7708de39104d59eef308498181ff2d
4
+ data.tar.gz: da48081e860c0f1f86b557b5fabb47c9659ff99a
5
5
  SHA512:
6
- metadata.gz: c8809f71f724734c1e723dcd7e8081eb159b0ef821fd17c70e70c281a1709b7aed178ffd0191e36bfcb5d12c346864b49a1975b6c7c630817ef45143ef85d4f3
7
- data.tar.gz: ebdb4218b0d0f97aeac0c89d760eb68db8ab6f2ae390b1f2f67c8f4dc7bd5dbfb70b1f3785a0508f16ef0b4f1bf3f633bb42f44047a5860d9b84847e42dc9175
6
+ metadata.gz: bbdd7771efd00f32a1346fba4aba5fd47592b0bd88c7eb0ad7c6a358648a8d3d0f0abdb1a7b1cee8dc4036638a800cfcefd83321248720a1edc521c50ab00530
7
+ data.tar.gz: f85edcefb7eebbb968b853f149b04302e842b6c6a8cac788ee29862d09a85ca7a31c5c799173ae72f3b6fef4664da243556f404226e20afddc69eefc49e9cb85
@@ -1,6 +1,6 @@
1
1
  module MnoEnterprise
2
2
  class Jpi::V1::Admin::AuditEventsController < Jpi::V1::Admin::BaseResourceController
3
-
3
+
4
4
  # GET /mnoe/jpi/v1/admin/audit_events
5
5
  def index
6
6
  @audit_events = MnoEnterprise::AuditEvent
@@ -8,7 +8,7 @@ module MnoEnterprise
8
8
  @audit_events = @audit_events.skip(params[:offset]) if params[:offset]
9
9
  @audit_events = @audit_events.order_by(params[:order_by]) if params[:order_by]
10
10
  @audit_events = @audit_events.where(params[:where]) if params[:where]
11
- @audit_events = @audit_events.all
11
+ @audit_events = @audit_events.all.fetch
12
12
 
13
13
  response.headers['X-Total-Count'] = @audit_events.metadata[:pagination][:count]
14
14
  end
@@ -15,7 +15,7 @@ module MnoEnterprise
15
15
  @organizations = @organizations.skip(params[:offset]) if params[:offset]
16
16
  @organizations = @organizations.order_by(params[:order_by]) if params[:order_by]
17
17
  @organizations = @organizations.where(params[:where]) if params[:where]
18
- @organizations = @organizations.all
18
+ @organizations = @organizations.all.fetch
19
19
  response.headers['X-Total-Count'] = @organizations.metadata[:pagination][:count]
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module MnoEnterprise
15
15
  @users = @users.skip(params[:offset]) if params[:offset]
16
16
  @users = @users.order_by(params[:order_by]) if params[:order_by]
17
17
  @users = @users.where(params[:where]) if params[:where]
18
- @users = @users.all
18
+ @users = @users.all.fetch
19
19
  response.headers['X-Total-Count'] = @users.metadata[:pagination][:count]
20
20
  end
21
21
  end
@@ -0,0 +1,10 @@
1
+ = form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
2
+ = devise_error_messages!
3
+ %div
4
+ = f.email_field :email, :placeholder => "Email", :required => true, 'ng-model' => 'email', :class => 'form-control'
5
+ %br
6
+ %br/
7
+ %div
8
+ %button{ :class => "btn btn-warning btn-login", :type => "submit", 'ng-click' => 'hasClicked = true', 'ng-hide' => 'hasClicked' }
9
+ = t('mno_enterprise.auth.unlocks.new.unlock')
10
+ %img.ng-hide{ 'ng-src' => asset_path('mno_enterprise/loader-32x32-bg-inverse.gif'), 'ng-show' => 'hasClicked' }
@@ -1,11 +1,11 @@
1
- %h2= t('.title')
2
- = form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
3
- = devise_error_messages!
4
- .field
5
- = f.label :email
6
- %br/
7
- = f.email_field :email, autofocus: true
8
- .actions
9
- = f.submit t('.unlock')
10
-
11
- = render "devise/shared/links"
1
+ .registration
2
+ .container
3
+ .row
4
+ .login-box-wrapper
5
+ .login-box-title
6
+ %h2= t('.title')
7
+ .login-box
8
+ .brand-logo
9
+ = render "mno_enterprise/auth/unlocks/form"
10
+ %hr
11
+ = render "mno_enterprise/auth/shared/links"
@@ -1,7 +1,6 @@
1
- HealthCheck::Engine.routes_manually_defined = true
1
+ HealthCheck::Engine.routes_explicitly_defined = true
2
2
 
3
3
  HealthCheck.setup do |config|
4
-
5
4
  # Text output upon success
6
5
  config.success = 'success'
7
6
 
@@ -21,15 +20,14 @@ HealthCheck.setup do |config|
21
20
  config.http_status_for_error_object = 500
22
21
 
23
22
  # You can customize which checks happen on a standard health check
24
- config.standard_checks = [ 'database', 'migrations', 'custom' ]
23
+ config.standard_checks = %w(site cache redis-if-present)
25
24
 
26
25
  # You can set what tests are run with the 'full' or 'all' parameter
27
- config.full_checks = ['database', 'migrations', 'cache', 'custom']
26
+ config.full_checks = %w(site cache custom redis-if-present sidekiq-redis-if-present)
28
27
 
29
28
  # Add one or more custom checks that return a blank string if ok, or an error message if there is an error
30
29
  config.add_custom_check do
31
30
  # any code that returns blank on success and non blank string upon failure
32
31
  MnoEnterprise::HealthCheck.perform_mno_hub_check
33
32
  end
34
-
35
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mno-enterprise-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-30 00:00:00.000000000 Z
12
+ date: 2016-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mno-enterprise-core
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.0.5
20
+ version: 3.0.6
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.0.5
27
+ version: 3.0.6
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: jbuilder
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -73,14 +73,14 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '1.5'
76
+ version: '2.4'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '1.5'
83
+ version: '2.4'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: httparty
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +173,7 @@ files:
173
173
  - app/views/mno_enterprise/auth/sessions/_form.html.haml
174
174
  - app/views/mno_enterprise/auth/sessions/new.html.haml
175
175
  - app/views/mno_enterprise/auth/shared/_links.html.haml
176
+ - app/views/mno_enterprise/auth/unlocks/_form.html.haml
176
177
  - app/views/mno_enterprise/auth/unlocks/new.html.haml
177
178
  - app/views/mno_enterprise/deletion_requests/show.html.haml
178
179
  - app/views/mno_enterprise/jpi/v1/admin/audit_events/_audit_event.json.jbuilder