workarea-core 3.4.43 → 3.4.44

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: 30d5b2273f510412bf81387ac4d229e05ef322219dba42166dffd16c2a30d458
4
- data.tar.gz: 0163e5cd44474ad11c119debb3dd116a0637be8f514b8d920cab4e093f3f4578
3
+ metadata.gz: f641c286644da5814fc1100ad784ff282d5603ced4f5c0f799d5254654a3787f
4
+ data.tar.gz: 44459b17e343dfafcf686531c397e9aafd96c53466600cf920d556d7bfd821bb
5
5
  SHA512:
6
- metadata.gz: 00d52ab3b83bb7057218e4b70d668a98e85b1c953f2607b15826599d75d6970fdd681eea595b1270533889f90e75be3db8a539f4a16016578acd6c285fffb4aa
7
- data.tar.gz: d73e489b510f361b0a75cbd705c1731ae6bea3693fd25ed3ee76d502ff4802724ba744442bade25b99171d444c0ec0f805591650a852fe74f8f7a5bfef83d5df
6
+ metadata.gz: a9aa81651f0ccbec509e884fd732cb936557b529817201b3afe6272700a94aabf6b860e35455818c8f48e7a73c97a4025ebc19dc82dc8b56321e5c75e9ac7c98
7
+ data.tar.gz: 731d4fe4eee3eab2b30c8246aae068719762f265c4bb012d4c942f6d9aacc536e544d0e1d615af609addd51474921b4b5afde1a6ceda7b51a5e1ae3b42c6273a
@@ -11,7 +11,10 @@ module Workarea
11
11
  belongs_to :release, class_name: 'Workarea::Release', index: true
12
12
  belongs_to :releasable, polymorphic: true, index: true, optional: true
13
13
 
14
- index({ 'document_path.type' => 1, 'document_path.document_id' => 1})
14
+ index(
15
+ { 'document_path.type' => 1, 'document_path.document_id' => 1 },
16
+ { name: 'document_path' }
17
+ )
15
18
 
16
19
  # Whether these value changes to this field should be included when
17
20
  # saving a changeset. Used in building changeset hashes.
@@ -38,7 +38,7 @@ module Workarea
38
38
  aggregation = search(query)['aggregations']['grouped_by_type']['type']
39
39
  aggregation['buckets']
40
40
  .reduce([]) { |m, b| m + b['top']['hits']['hits'] }
41
- .sort_by { |r| [r['_source']['jump_to_position'], r['_score']] }
41
+ .sort_by { |r| [r['_source']['jump_to_position'] || 999, r['_score'] || 0] }
42
42
  .map do |result|
43
43
  {
44
44
  label: result['_source']['jump_to_text'],
@@ -2,7 +2,7 @@ module Workarea
2
2
  module VERSION
3
3
  MAJOR = 3
4
4
  MINOR = 4
5
- PATCH = 43
5
+ PATCH = 44
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
@@ -58,7 +58,7 @@ Gem::Specification.new do |s|
58
58
  s.add_dependency 'i18n-js', '~> 3.2.1'
59
59
  s.add_dependency 'local_time', '~> 1.0.3'
60
60
  s.add_dependency 'lodash-rails', '~> 4.17.4'
61
- s.add_dependency 'jquery-rails', '~> 4.3.1'
61
+ s.add_dependency 'jquery-rails', '~> 4.4.0'
62
62
  s.add_dependency 'jquery-ui-rails', '~> 6.0.1'
63
63
  s.add_dependency 'tooltipster-rails', '~> 4.1.2'
64
64
  s.add_dependency 'chart-js-rails', '~> 0.0.9' # TODO remove v4
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.43
4
+ version: 3.4.44
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-11-03 00:00:00.000000000 Z
11
+ date: 2020-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -632,14 +632,14 @@ dependencies:
632
632
  requirements:
633
633
  - - "~>"
634
634
  - !ruby/object:Gem::Version
635
- version: 4.3.1
635
+ version: 4.4.0
636
636
  type: :runtime
637
637
  prerelease: false
638
638
  version_requirements: !ruby/object:Gem::Requirement
639
639
  requirements:
640
640
  - - "~>"
641
641
  - !ruby/object:Gem::Version
642
- version: 4.3.1
642
+ version: 4.4.0
643
643
  - !ruby/object:Gem::Dependency
644
644
  name: jquery-ui-rails
645
645
  requirement: !ruby/object:Gem::Requirement