Commit Graph

3 Commits

Author SHA1 Message Date
Cameron Matheson 0327f446f3 make graphql pg timeouts work for mutations
Test plan:
  * set a short timeout in the rails console:
      Setting.set('graphql_statement_timeout', 1)
  * graphql queries and mutations should fail (500 error)
  * set a long timeout:
      Setting.set('graphql_statement_timeout', 60_000)
  * queries/mutations should succeed
  * a failure in one mutation should not affect the success/failure of
    other mutations sent in the same request

closes GQL-35

Change-Id: I3f4db8e951139b06372ab7bb69867efe6acf2283
Reviewed-on: https://gerrit.instructure.com/179545
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-03-02 18:04:44 +00:00
Cameron Matheson ceeed5f1d2 use apollo's instrospection matcher
Since Canvas's schema makes frequent use of interfaces and unions, we
need to provide some extra information to apollo to avoid warnings/cache
errors.

Test plan:
  pages that use graphql should still work

closes GQL-17

Change-Id: I95a7b343a1726abf02bf3da6e65337cc20583cd7
Reviewed-on: https://gerrit.instructure.com/172937
Tested-by: Jenkins
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
2018-12-03 06:44:24 +00:00
Cameron Matheson 7562615671 add rake task to generate graphql schema
refs CNVS-39078

Test plan:
  - run the graphql:schema rake task
  - review the graphql.schema file

Change-Id: I0e4ec5ef0c6e36a58c42529865936ee4c321f927
Reviewed-on: https://gerrit.instructure.com/127246
Reviewed-by: Michael Jasper <mjasper@instructure.com>
QA-Review: Michael Jasper <mjasper@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
Tested-by: Jenkins
2017-09-25 22:06:53 +00:00