Skip to content

Commit

Permalink
CI: Experiment with GraphQL Inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Aug 27, 2020
1 parent a93593b commit 4aed947
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 19 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/graphql-inspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: GraphQL Inspector

on: [push]

env:
TZ: UTC
CI: true
NODE_ENV: ci

jobs:
graphql-inspector:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: GraphQL Inspector (V1)
uses: kamilkisiela/graphql-inspector@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
schema: 'master:server/graphql/schemaV1.graphql'
fail-on-breaking: false
annotations: false
- name: GraphQL Inspector (V2)
uses: kamilkisiela/graphql-inspector@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
schema: 'master:server/graphql/schemaV2.graphql'
fail-on-breaking: false
annotations: false
31 changes: 19 additions & 12 deletions server/graphql/schemaV1.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ type Collective implements CollectiveInterface {
Get all child collectives (with type=COLLECTIVE, doesn't return events)
"""
childCollectives: [Collective]
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
paymentMethods(
service: String
limit: Int
Expand Down Expand Up @@ -530,7 +530,7 @@ interface CollectiveInterface {
Get all child collectives (with type=COLLECTIVE, doesn't return events)
"""
childCollectives: [Collective]
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
paymentMethods(
service: String
limit: Int
Expand Down Expand Up @@ -1168,7 +1168,7 @@ type Event implements CollectiveInterface {
Get all child collectives (with type=COLLECTIVE, doesn't return events)
"""
childCollectives: [Collective]
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
paymentMethods(
service: String
limit: Int
Expand Down Expand Up @@ -1399,7 +1399,7 @@ type ExpenseType {
PayoutMethod: PayoutMethod
privateMessage: String
attachment: String
@deprecated(reason: "2020-01-13 - Expenses now support multiple attachments. Please use attachments instead.")
@deprecated(reason: "2020-01-13 - Expenses now support multiple attachments. Please use attachments instead.")
attachments: [ExpenseItem] @deprecated(reason: "2020-04-09 - Please use items")
items: [ExpenseItem]
attachedFiles: [ExpenseAttachedFile!]
Expand Down Expand Up @@ -1600,7 +1600,7 @@ type Fund implements CollectiveInterface {
Get all child collectives (with type=COLLECTIVE, doesn't return events)
"""
childCollectives: [Collective]
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
paymentMethods(
service: String
limit: Int
Expand Down Expand Up @@ -1946,6 +1946,11 @@ type Mutation {
Force expense with paypal method to be paid manually
"""
forceManual: Boolean

"""
2FA code for if the host account has it turned on and the transaction is large.
"""
twoFactorAuthenticatorCode: String
): ExpenseType
markOrderAsPaid(id: Int!): OrderType
markPendingOrderAsExpired(id: Int!): OrderType
Expand Down Expand Up @@ -2391,13 +2396,15 @@ input OrderInputType {
Possible statuses for an Order
"""
enum OrderStatus {
PENDING
NEW
REQUIRE_CLIENT_CONFIRMATION
PAID
ERROR
ACTIVE
CANCELLED
REJECTED
ERROR
PENDING
EXPIRED
PLEDGED
}

"""
Expand Down Expand Up @@ -2683,7 +2690,7 @@ type Organization implements CollectiveInterface {
Get all child collectives (with type=COLLECTIVE, doesn't return events)
"""
childCollectives: [Collective]
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
paymentMethods(
service: String
limit: Int
Expand Down Expand Up @@ -3096,7 +3103,7 @@ type Project implements CollectiveInterface {
Get all child collectives (with type=COLLECTIVE, doesn't return events)
"""
childCollectives: [Collective]
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
paymentMethods(
service: String
limit: Int
Expand Down Expand Up @@ -3824,7 +3831,7 @@ type UpdateType {
collective: CollectiveInterface
tier: Tier
comments(limit: Int, offset: Int): CommentListType
@deprecated(reason: "Deprecated since 2020-03-18: This field has never been active and will be removed soon.")
@deprecated(reason: "Deprecated since 2020-03-18: This field has never been active and will be removed soon.")
}

"""
Expand Down Expand Up @@ -4008,7 +4015,7 @@ type User implements CollectiveInterface {
Get all child collectives (with type=COLLECTIVE, doesn't return events)
"""
childCollectives: [Collective]
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
@deprecated(reason: "2020/01/08 - Connected-collectives are now handled through members")
paymentMethods(
service: String
limit: Int
Expand Down
Loading

0 comments on commit 4aed947

Please sign in to comment.