hyrax-v2_graph_indexer 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/lib/hyrax/v2_graph_indexer/railtie.rb +5 -1
- data/lib/hyrax/v2_graph_indexer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cca457bd629bcba3bce0111385c8d9d190ae30cb0838752121fd788317f296f5
|
4
|
+
data.tar.gz: 316a4a4b1e316a1b162e51d6eb5eedd66b26bed7c1bec38cd7bfe55daf8cd1b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e2392eec1553c79defa57468eef098736479b6259501d5ecc857a5eb007dd0843004d8a30f1b4f936ee144578076976af996a55ea682850a843c698d2a34c0
|
7
|
+
data.tar.gz: 33ec04a10ef80b64decb773f5e2c2caabed39121abbf218946f4e7360c62fe68a0ab21a761d5c2817531f7a7c9f04e40f9b35c935436a9f6eb3743e4b013d85d
|
data/README.md
CHANGED
@@ -26,6 +26,18 @@ Or install it yourself as:
|
|
26
26
|
$ gem install hyrax-v2_graph_indexer
|
27
27
|
```
|
28
28
|
|
29
|
+
### Prior to v0.5.0
|
30
|
+
|
31
|
+
For this to work, you'll need to add the following to your application's `./config/initializers/hyrax.rb`:
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
Hyrax.config do |config|
|
35
|
+
config.nested_relationship_reindexer = ->(id:, extent:) {}
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
With the upcoming v0.5.0, the above will be automatically added via the [Hyrax::V2GraphIndexer::Railtie](./lib/hyrax/v2_graph_indexer/railtie.rb).
|
40
|
+
|
29
41
|
## Contributing
|
30
42
|
|
31
43
|
## Discussion
|
@@ -2,7 +2,7 @@ module Hyrax
|
|
2
2
|
module V2GraphIndexer
|
3
3
|
class Railtie < ::Rails::Railtie
|
4
4
|
|
5
|
-
config.
|
5
|
+
config.after_initialize do
|
6
6
|
Hyrax::Collections::NestedCollectionPersistenceService.singleton_class.prepend(
|
7
7
|
Hyrax::V2GraphIndexer::NestedCollectionPersistenceServiceDecorator::ClassMethods
|
8
8
|
)
|
@@ -25,6 +25,10 @@ module Hyrax
|
|
25
25
|
Hyrax::Dashboard::NestedCollectionsSearchBuilder.prepend(
|
26
26
|
Hyrax::V2GraphIndexer::NestedCollectionsSearchBuilderDecorator
|
27
27
|
)
|
28
|
+
|
29
|
+
Hyrax.config do |c|
|
30
|
+
c.nested_relationship_reindexer = ->(id:, extent:) {}
|
31
|
+
end
|
28
32
|
end
|
29
33
|
end
|
30
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyrax-v2_graph_indexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hyrax
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.1.
|
79
|
+
rubygems_version: 3.1.6
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: A quasi-backport of the Hyrax 3+ Graph Indexing.
|