Skip to content

Commit

Permalink
Added support for args in the resolver
Browse files Browse the repository at this point in the history
Related to PR RedHatInsights/insights-api-common-rails#177
The Gemfile has been modified to point to my branch
  • Loading branch information
mkanoor committed Apr 8, 2020
1 parent 77a579d commit 65dcc7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end

gem 'dhasher'
gem 'discard', :git => 'https://github.com/jhawthorn/discard', :branch => 'master'
gem 'insights-api-common', '~> 3.8'
gem 'insights-api-common', :git => "https://github.com/mkanoor/manageiq-api-common", :branch => "support_args"
gem 'jbuilder', '~> 2.0'
gem 'manageiq-loggers', '~> 0.2'
gem 'manageiq-messaging', '~> 0.1.2', :require => false
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/v1x0/graphql_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class GraphqlController < ApplicationController
def overlay
{
"^.*$" => {
"base_query" => lambda do |model_class, _ctx|
"base_query" => lambda do |model_class, _args, _ctx|
Insights::API::Common::RBAC::Access.enabled? ? rbac_scope(model_class.all) : model_class
end
}
Expand Down

0 comments on commit 65dcc7c

Please sign in to comment.