graphiti 1.2.13 → 1.2.14

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: 96ec0914eb0786ee691d7b4610c8d94f47a8d852682c7b44ec69167391576d3d
4
- data.tar.gz: ed446db0ab70384c1c87b079293b6c0f9ece23b25442649779c057360e4a86e0
3
+ metadata.gz: 8720882ebcf46bc06f81fff25ce09e54257e91d494828db22f086ccab19abaad
4
+ data.tar.gz: 6c8c215956bb835a6e183e96f482f4569a075e76efc9d9a487f593caabf51100
5
5
  SHA512:
6
- metadata.gz: bac579d3f12d400173eb4a3a14396e97dd7e14aa5fda6f6348679f7a8f9fd8969a373ef6201fc983b59258b73f395915a39df64d7a1c869bfea60c854c5f6459
7
- data.tar.gz: 85b01ba89239a712246f483f72c7661caf2c9bab5cc499f1e06a7c14ceb0218950a77b94e2c3492446500238315524baa8355e066f608d4770b72c91f2a45a3b
6
+ metadata.gz: e401952ac49088d393e4a838e664bc1f8e155eec6560a10c7440fc2d70a5c5249d2bea6bee90e0c660b26a3a7755e70dc130eeccb6e74ddd2d19409488cfbeb1
7
+ data.tar.gz: ac33a2a3a1b699dc454d5bf8778cf4ba080fe41c3924833bd5823a173d2e16d1cb9f3002ec5f356412191134c6b6591a39c8e4351414ccacab3d15f8571885bc
@@ -28,7 +28,10 @@ module Graphiti
28
28
  params[:filter][:id] = id if id
29
29
 
30
30
  runner = Runner.new(self, params)
31
- runner.proxy(base_scope, single: true, raise_on_missing: true)
31
+ runner.proxy base_scope,
32
+ single: true,
33
+ raise_on_missing: true,
34
+ bypass_required_filters: true
32
35
  end
33
36
 
34
37
  def build(params, base_scope = nil)
@@ -63,7 +63,8 @@ module Graphiti
63
63
  :after_resolve,
64
64
  :sideload,
65
65
  :parent,
66
- :params
66
+ :params,
67
+ :bypass_required_filters
67
68
  scope = jsonapi_scope(base, scope_opts)
68
69
  ResourceProxy.new jsonapi_resource,
69
70
  scope,
@@ -3,7 +3,7 @@ module Graphiti
3
3
  include Scoping::Filterable
4
4
 
5
5
  def apply
6
- if missing_required_filters.any?
6
+ if missing_required_filters.any? && !@opts[:bypass_required_filters]
7
7
  raise Errors::RequiredFilter.new(resource, missing_required_filters)
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.2.13"
2
+ VERSION = "1.2.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.13
4
+ version: 1.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-08 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable