workarea-core 3.5.22 → 3.5.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/workarea/release/changeset.rb +4 -1
- data/app/models/workarea/search/admin.rb +1 -1
- data/lib/workarea/version.rb +1 -1
- data/workarea-core.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edc99891d1b58bf06d070ed152b77852db6ebb0bd9e3b023faafaf93079c1626
|
4
|
+
data.tar.gz: b7095d6fecc6996d72eb680c6a4a7baa8d10769aad48204c0afe7080cd425c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d6fc54dbd4f849840c8cfeff3c97061539e99e124898df794e2ea7ac8ef36bc532c92209e99acbfb669dcfff70932dd3bf49b8cbdf70cce88eebda9f8ca45a1
|
7
|
+
data.tar.gz: 1bb8092da0dfb2fb9c8f774b90a9be3a352d55e4261550471dffb0dd761d2d75e713544bfd96cd8836b448cbee382bfc7234e5a724bd5dc8ae9cbdb2adfb5702
|
@@ -15,7 +15,10 @@ module Workarea
|
|
15
15
|
belongs_to :release, class_name: 'Workarea::Release', index: true
|
16
16
|
belongs_to :releasable, polymorphic: true, index: true, optional: true
|
17
17
|
|
18
|
-
index(
|
18
|
+
index(
|
19
|
+
{ 'document_path.type' => 1, 'document_path.document_id' => 1 },
|
20
|
+
{ name: 'document_path' }
|
21
|
+
)
|
19
22
|
index('changeset.product_ids' => 1)
|
20
23
|
index('original.product_ids' => 1)
|
21
24
|
index('releasable_type' => 1, 'releasable_id' => 1)
|
@@ -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'],
|
data/lib/workarea/version.rb
CHANGED
data/workarea-core.gemspec
CHANGED
@@ -59,7 +59,7 @@ Gem::Specification.new do |s|
|
|
59
59
|
s.add_dependency 'i18n-js', '~> 3.2.1'
|
60
60
|
s.add_dependency 'local_time', '~> 1.0.3'
|
61
61
|
s.add_dependency 'lodash-rails', '~> 4.17.4'
|
62
|
-
s.add_dependency 'jquery-rails', '~> 4.
|
62
|
+
s.add_dependency 'jquery-rails', '~> 4.4.0'
|
63
63
|
s.add_dependency 'jquery-ui-rails', '~> 6.0.1'
|
64
64
|
s.add_dependency 'tooltipster-rails', '~> 4.1.2'
|
65
65
|
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.5.
|
4
|
+
version: 3.5.23
|
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-
|
11
|
+
date: 2020-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -646,14 +646,14 @@ dependencies:
|
|
646
646
|
requirements:
|
647
647
|
- - "~>"
|
648
648
|
- !ruby/object:Gem::Version
|
649
|
-
version: 4.
|
649
|
+
version: 4.4.0
|
650
650
|
type: :runtime
|
651
651
|
prerelease: false
|
652
652
|
version_requirements: !ruby/object:Gem::Requirement
|
653
653
|
requirements:
|
654
654
|
- - "~>"
|
655
655
|
- !ruby/object:Gem::Version
|
656
|
-
version: 4.
|
656
|
+
version: 4.4.0
|
657
657
|
- !ruby/object:Gem::Dependency
|
658
658
|
name: jquery-ui-rails
|
659
659
|
requirement: !ruby/object:Gem::Requirement
|