Skip to content

Commit bd9961d

Browse files
committed
Revert "Merge branch 'master' into 1.9-dev"
This reverts commit 5d71dc2, reversing changes made to e6b4695.
1 parent 5d71dc2 commit bd9961d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1007
-1328
lines changed

CHANGELOG-pro.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@
88

99
### Bug Fix
1010

11-
## 1.7.12 (29 Aug 2018)
12-
13-
### New Features
14-
15-
- Add `GraphQL::Pro::CanCanIntegration` which leverages GraphQL-Ruby's built-in auth
16-
17-
## 1.7.11 (21 Aug 2018)
18-
19-
### Bug Fix
20-
21-
- `PunditIntegration`: Don't try to authorize loaded objects when they're `nil`
22-
2311
## 1.7.10 (10 Aug 2018)
2412

2513
### New Features

CHANGELOG.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@
88

99
### Bug fixes
1010

11-
## 1.8.8 (27 Aug 2018)
12-
13-
### Bug fixes
14-
15-
- When using `RelayClassicMutation`, `client_mutation_id` will no longer be passed to `authorized?` method #1771
16-
- Fix issue in schema upgrader script which would cause `.to_non_null_type` calls in type definition to be ignored #1783
17-
- Ensure enum values respond to `graphql_name` #1792
18-
- Fix infinite resolution bug that could occur when an exception not inheriting from `StandardError` is thrown #1804
19-
20-
### New features
21-
22-
- Add `#path` method to schema members #1766
23-
- Add `as:` argument to allow overriding the name of the argument when using `loads:` #1773
24-
- Add support for list of IDs when using `loads:` in an argument definition #1797
25-
2611
## 1.8.7 (9 Aug 2018)
2712

2813
### Breaking changes

guides/authorization/can_can_integration.md

Lines changed: 0 additions & 312 deletions
This file was deleted.

guides/authorization/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ To accomplish these, you can use GraphQL-Ruby's authorization framework. The fra
135135
- {% internal_link "Accessibility", "/authorization/accessibility" %} prevents running queries which access parts of the GraphQL schema, unless users have the required permission.
136136
- {% internal_link "Authorization", "/authorization/authorization" %} checks application objects during execution to be sure the user has permission to access them.
137137

138-
Also, [GraphQL::Pro](http://graphql.pro) has integrations for {% internal_link "CanCan", "/authorization/can_can_integration" %} and {% internal_link "Pundit", "/authorization/pundit_integration" %}.
138+
Also, [GraphQL::Pro](http://graphql.pro) has integrations for CanCan and {% internal_link "Pundit", "/authorization/pundit_integration" %}.

guides/authorization/pundit_integration.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Then, make sure your base argument is hooked up to your base field and base inpu
197197
```ruby
198198
class Types::BaseField < GraphQL::Schema::Field
199199
argument_class Types::BaseArgument
200-
# PS: see "Authorizing Fields" to make sure your base field is hooked up to objects, interfaces and mutations
200+
# PS: see "Authorizing Fields" to make sure your base field is hooked up to objects, intefaces and mutations
201201
end
202202

203203
class Types::BaseInputObject < GraphQL::Schema::InputObject
@@ -232,11 +232,8 @@ Also, you can configure [unauthorized object handling](#unauthorized-mutations)
232232
Add `MutationIntegration` to your base mutation, for example:
233233

234234
```ruby
235-
class Mutations::BaseMutation < GraphQL::Schema::Mutation
236-
include GraphQL::Pro::PunditIntegration::MutationIntegration
237-
238-
# Also, to use argument-level authorization:
239-
argument_class Types::BaseArgument
235+
class Mutations::BaseMutation < GraphQL::Schema::RelayClassicMutation
236+
include GraphQL::Pro::PunditIntegration
240237
end
241238
```
242239

0 commit comments

Comments
 (0)