Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): add to readme a link to contributing #239

Merged
merged 2 commits into from
Nov 18, 2016

Conversation

valoricDe
Copy link
Contributor

@valoricDe valoricDe commented Nov 18, 2016

@benjie
Copy link
Member

benjie commented Nov 18, 2016

@Valorize Thanks 👍 have tweaked and will merge.

In future, I'd advise that you create a branch for each pull request - pulling from your master means any changes you make to your master before the PR is merged will be added to the PR which may not be what you intend.

Also have a look at the commit naming in contributing.md :)

@benjie benjie changed the title Added link to contributing file feat(docs): add to readme a link to contributing Nov 18, 2016
Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

@benjie benjie merged commit ea3c94d into graphile:master Nov 18, 2016
@benjie
Copy link
Member

benjie commented Nov 18, 2016

@calebmer Just wanted to check you're okay with this change.

@valoricDe
Copy link
Contributor Author

When I run the tests, should all tests pass in the moment (commit: 7f1a21b)? Because two of 2 of 498 failed.

@valoricDe
Copy link
Contributor Author

Summary of all failing tests
 FAIL  src/graphql/schema/__tests__/createMutationGqlField-test.js
  ● will add `outputFields` in payload type and skip falsies

    expect(received).toEqual(expected)

    Expected value to equal:
      {"args": [{"defaultValue": undefined, "description": null, "name": "arg", "type": {"_scalarConfig": {"description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String", "parseLiteral": [Function parseLiteral], "parseValue": [Function String], "serialize": [Function String]}, "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String"}}], "deprecationReason": Symbol(deprecationReason), "description": Symbol(description), "isDeprecated": true, "name": "c", "resolve": [Function anonymous], "type": {"_scalarConfig": {"description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String", "parseLiteral": [Function parseLiteral], "parseValue": [Function String], "serialize": [Function String]}, "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String"}}
    Received:
      {"args": [{"defaultValue": null, "description": null, "name": "arg", "type": {"_scalarConfig": {"description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String", "parseLiteral": [Function parseLiteral], "parseValue": [Function String], "serialize": [Function String]}, "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String"}}], "deprecationReason": Symbol(deprecationReason), "description": Symbol(description), "isDeprecated": true, "name": "c", "resolve": [Function anonymous], "type": {"_scalarConfig": {"description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String", "parseLiteral": [Function parseLiteral], "parseValue": [Function String], "serialize": [Function String]}, "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", "name": "String"}}

    Difference:

    - Expected
    + Received

      Object {
        "args": Array [
          Object {
    -       "defaultValue": undefined,
    +       "defaultValue": null,
            "description": null,
            "name": "arg",
            "type": GraphQLScalarType {
              "_scalarConfig": Object {
                "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
                "name": "String",
                "parseLiteral": [Function parseLiteral],
                "parseValue": [Function String],
                "serialize": [Function String],
              },
              "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
              "name": "String",
            },
          },
        ],
        "deprecationReason": Symbol(deprecationReason),
        "description": Symbol(description),
        "isDeprecated": true,
        "name": "c",
        "resolve": [Function anonymous],
        "type": GraphQLScalarType {
          "_scalarConfig": Object {
            "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
            "name": "String",
            "parseLiteral": [Function parseLiteral],
            "parseValue": [Function String],
            "serialize": [Function String],
          },
          "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
          "name": "String",
        },
      }


 FAIL  src/postgraphql/__tests__/postgraphqlIntegrationOperations-test.js (58.01s)
  ● operation dynamic-json.graphql

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot 1.

    - Snapshot
    + Received

      Object {
    -   "data": Object {
    -     "a": true,
    -     "allTypes": Object {
    -       "nodes": Array [
    -         Object {
    -           "json": Object {
    -             "a": 1,
    -             "b": 2,
    -             "c": 3,
    -             "d": Object {
    -               "e": 4,
    -               "f": 5,
    -               "g": Array [
    -                 6,
    -                 7,
    -                 8,
    -                 "x",
    -                 false,
    -                 null,
    -               ],
    -             },
    -           },
    -           "jsonb": Object {
    -             "1": "a",
    -             "2": "b",
    -             "3": "c",
    -             "4": Object {
    -               "5": "d",
    -               "6": "e",
    -               "7": Array [
    -                 "f",
    -                 "g",
    -                 "h",
    -                 42,
    -                 true,
    -                 null,
    -               ],
    -             },
    -           },
    -         },
    -       ],
    -     },
    -     "b": false,
    -     "c": 42,
    -     "d": 3.1415,
    -     "e": "hello, world!",
    -     "f": Object {
    -       "a": 1,
    -       "b": 2,
    -       "c": 3,
    -     },
    -     "g": Array [
    -       1,
    -       2,
    -       3,
    -       4,
    -     ],
    -     "h": Object {
    -       "array": Array [
    -         1,
    -         2,
    -         3,
    -         4,
    -       ],
    -       "boolean": true,
    -       "float": 3.1415,
    -       "integer": 42,
    -       "object": Object {
    -         "a": 1,
    -         "b": 2,
    -         "c": 3,
    -       },
    -     },
    -     "i": Array [
    -       true,
    -       42,
    -       3.1415,
    -       Object {
    -         "a": 1,
    -         "b": 2,
    -         "c": 3,
    -       },
    -       Array [
    -         1,
    -         2,
    -         3,
    -         4,
    -       ],
    -     ],
    -     "j": Array [
    -       true,
    -       null,
    -       42,
    -       3.1415,
    -       Object {
    -         "a": 1,
    -         "b": null,
    -         "c": 3,
    -       },
    -       Array [
    -         1,
    -         2,
    -         null,
    -         3,
    -         4,
    -       ],
    -     ],
    -   },
    +   "errors": Array [
    +     [GraphQLError: Syntax Error GraphQL request (14:32) Unexpected Name "null"
    + 
    + 13:   i: jsonIdentity(json: [true, 42, 3.1415, { a: 1, b: 2, c: 3 }, [1, 2, 3, 4]])
    + 14:   j: jsonIdentity(json: [true, null, 42, 3.1415, { a: 1, b: null, c: 3 }, [1, 2, null, 3, 4]])
    +                                    ^
    + 15:   allTypes {
    + ],
    +   ],
      }

      at next (native)
      at process._tickCallback (internal/process/next_tick.js:103:7)

@benjie
Copy link
Member

benjie commented Nov 18, 2016

As it happens that's exactly the same reason #212 is failing.

@calebmer 🚨 I think we should change the ts-node dependency from "ts-node": "^1.6.1" to "ts-node": "^1.6.1 <1.7" (or whatever the semver spec is) if we don't have time to fix whatever's broken. (It's still beyond me, I'm afraid.)

@Valorize Try: npm install [email protected] and try again.

@calebmer
Copy link
Collaborator

What this failure looks like to me is a GraphQL version less then 0.8.2 which adds support for null literals. My theory on why Travis is failing is I believed they recently moved to Yarn over npm, so the resolution algorithm/cache may be pulling in the wrong GraphQL version. I’m going to experiment 👍

@calebmer
Copy link
Collaborator

Yeah, anyway thanks so much for this change @Valorize 🎉

I can confirm that the failing tests are caused by a GraphQL-js version less then 0.8.x. I just merged a PR which hopefully will enforce version 0.8.x in development. We support any version of GraphQL-js in production, but the tests depend on version 0.8.x 😊

@valoricDe
Copy link
Contributor Author

Cool with the latest npm update all tests went green.

Belline pushed a commit to Belline/postgraphql that referenced this pull request Dec 18, 2017
* Added link to contributing file

* Move contributing paragraph to its own section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants