mno-enterprise-api 3.1.2 → 3.1.3

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: 4634cd921bb1ad61aa2d22d2f87ec8f8f743a6eb
4
- data.tar.gz: 5c9e5f8551ad2c50d31a8f97b36a4636b9612076
3
+ metadata.gz: 3d818ac83f5c1edcd4922dbce717a4120888c100
4
+ data.tar.gz: 156f2605295d07e5139db922c4e2b7e486fef7cb
5
5
  SHA512:
6
- metadata.gz: 049b8bca7b97ba5ecbdf7f33744bb36a76a50de88c85340123c58b0f7838b8e32d9b01760a9d68f5a8ec4f102fbb609715f99d152abecad462f8fc49a7a7f395
7
- data.tar.gz: 9c9487907c76667e0ad38df08a9ac4a51f488f3ce8b06719a2708badde5a0e4866f8e9d44081df083458114413fc5eb5d88536a4bc8e6f27842053f91450da11
6
+ metadata.gz: e7fd434751d41e4d38b0bafdda15fc5523f85f78aa3bacf138ff4bbf1d65a74f5ac722d96f410ef54b00fa3ce4ae1ceea7db7bd11847cc25ca7cb09528eb003c
7
+ data.tar.gz: 0285c46aaf0d3bae34a5a1c3b69dc7e87b99070dfd139108cc8deee634fa4ab66c3fb7dbd1c710add2f61d24a6ee8aa091cfa8b3bd77bc4a47a3bdc62f474905
@@ -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.1.2
4
+ version: 3.1.3
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.1.2
20
+ version: 3.1.3
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.1.2
27
+ version: 3.1.3
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
@@ -174,6 +174,7 @@ files:
174
174
  - app/views/mno_enterprise/auth/sessions/_form.html.haml
175
175
  - app/views/mno_enterprise/auth/sessions/new.html.haml
176
176
  - app/views/mno_enterprise/auth/shared/_links.html.haml
177
+ - app/views/mno_enterprise/auth/unlocks/_form.html.haml
177
178
  - app/views/mno_enterprise/auth/unlocks/new.html.haml
178
179
  - app/views/mno_enterprise/deletion_requests/show.html.haml
179
180
  - app/views/mno_enterprise/jpi/v1/admin/audit_events/_audit_event.json.jbuilder