workarea-core 3.4.29 → 3.4.30

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
  SHA256:
3
- metadata.gz: 293a8eac548e651d077a238236f6e127e2bd136ec50139fbe8ad18dcda7adfb7
4
- data.tar.gz: f8173cfae95ed2e11933669e4c4aedd086edc1dff489e18ed69c2bf0aeddcede
3
+ metadata.gz: 2a0f1a32a380e8018ce48fa9c609e9cb820ccc1292c053101b4954caca8ae458
4
+ data.tar.gz: e6f464bf2b5c443ba95403493f520e09fb8fda6457526486cf1084eabf2d6c7e
5
5
  SHA512:
6
- metadata.gz: 2cb7c1571e058e31fef6d5cce6d65e3e3afe1f3830175bb086c735eabf54e70f71399a757c5312196cfe9321b0cad0b1241dca1745d2ad99a21601079353e8ff
7
- data.tar.gz: 72164a859e0a2cf841ecb12fac24ea670b0057209d1fab1e31d45d91399729727ad9eb06212a21f5adc3c917b2d1df33c6a1518d23b4a0c8bf9f7dd33d19887a
6
+ metadata.gz: 7959dc6060731296d8234a2d056955443f035f89b0d22ee61484bcba7751ec1198c0c040d4f30ab6f5359620f8b91e31523605a3ab0e7b13e12d48d5cbe32408
7
+ data.tar.gz: 9cd1dea7985c3c5893deea11f9d913b2457837d0f609ca3ae4d94db0af39840ea214625bf2b1f9747e60336f09fd4e0dc8960e5eee7dddaf544e2bd0adeb7339
@@ -18,7 +18,17 @@ module Workarea
18
18
  aggs: {
19
19
  type: {
20
20
  terms: { field: 'facets.type', size: Workarea.config.jump_to_type_limit },
21
- aggs: { top: { top_hits: { size: Workarea.config.jump_to_results_per_type } } }
21
+ aggs: {
22
+ top: {
23
+ top_hits: {
24
+ size: Workarea.config.jump_to_results_per_type,
25
+ sort: [
26
+ { _score: { order: 'desc' } },
27
+ { updated_at: { order: 'desc' } }
28
+ ]
29
+ }
30
+ }
31
+ }
22
32
  }
23
33
  }
24
34
  }
@@ -3,7 +3,8 @@
3
3
  #
4
4
  Easymon::Repository.add(
5
5
  'mongodb',
6
- Workarea::Monitoring::MongoidCheck.new
6
+ Workarea::Monitoring::MongoidCheck.new,
7
+ :critical
7
8
  )
8
9
 
9
10
  #
@@ -11,7 +12,8 @@ Easymon::Repository.add(
11
12
  #
12
13
  Easymon::Repository.add(
13
14
  'elasticsearch',
14
- Workarea::Monitoring::ElasticsearchCheck.new
15
+ Workarea::Monitoring::ElasticsearchCheck.new,
16
+ :critical
15
17
  )
16
18
 
17
19
  #
@@ -21,7 +23,8 @@ Easymon::Repository.add(
21
23
  "redis",
22
24
  Easymon::RedisCheck.new(
23
25
  Workarea::Configuration::Redis.persistent.to_h
24
- )
26
+ ),
27
+ :critical
25
28
  )
26
29
 
27
30
  #
@@ -2,7 +2,7 @@ module Workarea
2
2
  module VERSION
3
3
  MAJOR = 3
4
4
  MINOR = 4
5
- PATCH = 29
5
+ PATCH = 30
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
@@ -3,27 +3,32 @@ require 'test_helper'
3
3
  module Workarea
4
4
  class MonitoringIntegrationTest < Workarea::IntegrationTest
5
5
  def test_monitors_the_mongodb_status
6
- get workarea.easymon_path('mongodb')
6
+ get workarea.easymon_path + '/mongodb'
7
7
  assert_includes(response.body, 'Up')
8
8
  end
9
9
 
10
10
  def test_monitors_the_redis_status
11
- get workarea.easymon_path('redis')
11
+ get workarea.easymon_path + '/redis'
12
12
  assert_includes(response.body, 'Up')
13
13
  end
14
14
 
15
15
  def test_monitors_the_elasticsearch_status
16
- get workarea.easymon_path('elasticsearch')
16
+ get workarea.easymon_path + '/elasticsearch'
17
17
  assert_includes(response.body, 'Up')
18
18
  end
19
19
 
20
20
  def test_monitors_the_sidekiq_queue_status
21
- get workarea.easymon_path('sidekiq-queue')
21
+ get workarea.easymon_path + '/sidekiq-queue'
22
22
  assert_includes(response.body, 'Low')
23
23
  end
24
24
 
25
25
  def test_monitors_for_load_balancing
26
- get workarea.easymon_path('load-balancing')
26
+ get workarea.easymon_path + '/load-balancing'
27
+ assert_includes(response.body, 'Up')
28
+ end
29
+
30
+ def test_critical_endpoint
31
+ get workarea.easymon_path + "/critical"
27
32
  assert_includes(response.body, 'Up')
28
33
  end
29
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.29
4
+ version: 3.4.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-17 00:00:00.000000000 Z
11
+ date: 2020-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -2609,7 +2609,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2609
2609
  - !ruby/object:Gem::Version
2610
2610
  version: '0'
2611
2611
  requirements: []
2612
- rubygems_version: 3.0.6
2612
+ rubygems_version: 3.0.3
2613
2613
  signing_key:
2614
2614
  specification_version: 4
2615
2615
  summary: Core of the Workarea Commerce Platform