-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14216 from hmac/hmac-graphql-enum
Ruby: Restrict GraphQL remote flow sources
- Loading branch information
Showing
11 changed files
with
315 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
category: minorAnalysis | ||
--- | ||
* GraphQL enums are no longer considered remote flow sources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
ruby/ql/test/library-tests/frameworks/graphql/app/graphql/types/base_enum.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Types::BaseEnum < GraphQL::Schema::Enum | ||
end |
6 changes: 6 additions & 0 deletions
6
ruby/ql/test/library-tests/frameworks/graphql/app/graphql/types/direction.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Types | ||
class Direction < Types::BaseEnum | ||
value "asc", "Ascending order", value: "asc" | ||
value "desc", "Descending order", value: "desc" | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
ruby/ql/test/library-tests/frameworks/graphql/app/graphql/types/media_category.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Types | ||
class MediaCategory < Types::BaseEnum | ||
value "AUDIO", "An audio file, such as music or spoken word" | ||
value "IMAGE", "A still image, such as a photo or graphic" | ||
value "TEXT", "Written words" | ||
value "VIDEO", "Motion picture, may have audio" | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
ruby/ql/test/library-tests/frameworks/graphql/app/graphql/types/post.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Types::Post < GraphQL::Schema::Object | ||
field :title, String | ||
field :body, String, null: false | ||
field :media_category, Types::MediaCategory, null: false | ||
field :direction, Types::Direction, null: false | ||
end | ||
end | ||
|
5 changes: 5 additions & 0 deletions
5
ruby/ql/test/library-tests/frameworks/graphql/app/graphql/types/post_order.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Types | ||
class PostOrder < Types::BaseInputObject | ||
argument :direction, Types::Direction, "The ordering direction", required: true | ||
end | ||
end |
Oops, something went wrong.