Skip to content

Commit

Permalink
misc(graphql): Update dependencies (#2451)
Browse files Browse the repository at this point in the history
- Due to some CVE and old dependencies, we need to update our `graphql`
gem
- No breaking changes
- The only adaptation was around our custom `permissions`
  • Loading branch information
jdenquin authored Aug 21, 2024
1 parent 979f74f commit 7f877cf
Show file tree
Hide file tree
Showing 9 changed files with 529 additions and 236 deletions.
7 changes: 5 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ GEM
faraday-rack (1.0.0)
faraday-retry (1.0.3)
ffi (1.15.5)
fiber-storage (1.0.0)
formatador (1.1.0)
globalid (1.2.1)
activesupport (>= 6.1)
Expand Down Expand Up @@ -268,8 +269,10 @@ GEM
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
graphql (2.0.11)
graphql-pagination (2.0.1)
graphql (2.3.14)
base64
fiber-storage
graphql-pagination (2.2.0)
graphql (~> 2.0)
guard (2.18.1)
formatador (>= 0.2.4)
Expand Down
2 changes: 1 addition & 1 deletion app/graphql/types/base_input_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(arguments, ruby_kwargs:, context:, defaults_used:)
cleaned_kwargs = ruby_kwargs.dup

self.class.arguments(context).each_value do |arg_defn|
next if arg_defn.permissions.blank?
next if arg_defn.try(:permissions).blank?

if arg_defn.permissions.none? { |p| context.dig(:permissions, p) }
cleaned_arguments.delete(arg_defn.keyword)
Expand Down
Loading

0 comments on commit 7f877cf

Please sign in to comment.