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

Change dependency to graphql-core-next #988

Merged
merged 27 commits into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e23184f
Changed dependencies to core-next
Jun 2, 2019
a0428d7
Converted Scalars
Jun 2, 2019
0e31eec
ResolveInfo name change
Jun 2, 2019
2986658
Ignore .venv
ekampf Jun 29, 2019
6a0afb0
Make Schema compatible with GraphQL-core-next
Cito Jun 30, 2019
ff83b72
Ignore more venv names and mypy and pytest caches
Cito Jun 30, 2019
5991c6e
Remove print statements for debugging in schema test
Cito Jun 30, 2019
d259bf6
core-next now provides out_type and out_name
Cito Jun 30, 2019
3493609
Adapt date and time scalar types to core-next
Cito Jun 30, 2019
0d9ba1c
Ignore the non-standard result.invalid flag
Cito Jun 30, 2019
8106fff
Results are named tuples in core-next (immutable)
Cito Jun 30, 2019
c8adab6
Enum values are returned as dict in core-next
Cito Jun 30, 2019
f1ae6e4
Fix mutation tests with promises
Cito Jun 30, 2019
c4a850f
Make all 345 tests pass with graphql-core-next
Cito Jun 30, 2019
a18c226
Remove the compat module which was only needed for older Py version
Cito Jun 30, 2019
029dde3
Remove object as base class (not needed in Py 3)
Cito Jun 30, 2019
5752b48
We can assume that dicts are ordered in Py 3.6+
Cito Jun 30, 2019
df0657b
Make use of the fact that dicts are iterable
Cito Jun 30, 2019
9594bc6
Use consistent style of importing from pytest
Cito Jun 30, 2019
8b07dba
Restore compatibility with graphql-relay-py v3
Cito Jul 12, 2019
a02ea47
Avoid various deprecation warnings
Cito Jul 12, 2019
b3b9b4f
Use graphql-core 3 instead of graphql-core-next
Cito Aug 1, 2019
55c7a67
Update dependencies, reformat changes with black
Cito Aug 1, 2019
4b0cac5
Update graphene/relay/connection.py
mvanlonden Aug 10, 2019
a4c16e1
Merge branch 'next/master' into next/feature/core-next
Cito Aug 11, 2019
03bf75d
Run black on setup.py
Cito Aug 11, 2019
8961b41
Remove trailing whitespace
Cito Aug 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ __pycache__/

# Distribution / packaging
.Python
env/
venv/
.venv/
build/
develop-eggs/
dist/
Expand Down Expand Up @@ -47,7 +44,8 @@ htmlcov/
.pytest_cache
nosetests.xml
coverage.xml
*,cover
*.cover
.pytest_cache/

# Translations
*.mo
Expand All @@ -62,6 +60,14 @@ docs/_build/
# PyBuilder
target/

# VirtualEnv
.env
.venv
env/
venv/

# Typing
.mypy_cache/

/tests/django.sqlite

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ repos:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 3.7.7
rev: 3.7.8
hooks:
- id: flake8
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@

snapshots[
"test_str_schema 1"
] = """schema {
query: Query
mutation: Mutation
}

] = '''"""A faction in the Star Wars saga"""
type Faction implements Node {
"""The ID of the object"""
id: ID!

"""The name of the faction."""
name: String
ships(before: String, after: String, first: Int, last: Int): ShipConnection

"""The ships used by the faction."""
ships(before: String = null, after: String = null, first: Int = null, last: Int = null): ShipConnection
}

input IntroduceShipInput {
shipName: String!
factionId: String!
clientMutationId: String
clientMutationId: String = null
}

type IntroduceShipPayload {
Expand All @@ -57,35 +58,60 @@
introduceShip(input: IntroduceShipInput!): IntroduceShipPayload
}

"""An object with an ID"""
interface Node {
"""The ID of the object"""
id: ID!
}

"""
The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.
"""
type PageInfo {
"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!

"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!

"""When paginating backwards, the cursor to continue."""
startCursor: String

"""When paginating forwards, the cursor to continue."""
endCursor: String
}

type Query {
rebels: Faction
empire: Faction

"""The ID of the object"""
node(id: ID!): Node
}

"""A ship in the Star Wars saga"""
type Ship implements Node {
"""The ID of the object"""
id: ID!

"""The name of the ship."""
name: String
}

type ShipConnection {
"""Pagination data for this connection."""
pageInfo: PageInfo!

"""Contains the nodes in this connection."""
edges: [ShipEdge]!
}

"""A Relay edge containing a `Ship` and its cursor."""
type ShipEdge {
"""The item at the end of the edge"""
node: Ship

"""A cursor for use in pagination"""
cursor: String!
}
"""
'''
8 changes: 0 additions & 8 deletions graphene/pyutils/compat.py

This file was deleted.

Loading