Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
dbe939a
Refactoring towards webonyx/graphql-php.
fubhy Feb 16, 2018
ff29897
Reorganizing scalars.
fubhy Feb 16, 2018
86a1fe1
Switch to webonyx server for handling batch and persisted queries.
fubhy Feb 16, 2018
e00a6ac
Fixing access check.
fubhy Feb 16, 2018
36f7048
Allow setting a context.
fubhy Feb 16, 2018
23b317f
Refactor request controller.
fubhy Feb 16, 2018
a2b7921
Fixed result assertion trait.
pmelab Feb 16, 2018
bce19f3
Fixed result retrieval and disabled cache assertions for now.
pmelab Feb 16, 2018
2903471
Adding caching for plugin definitions.
fubhy Feb 16, 2018
57bbb2f
Fixed serializaton error in test runs.
pmelab Feb 17, 2018
f9402bc
Don't throw on error.
pmelab Feb 17, 2018
4813e16
Test system fixes.
pmelab Feb 17, 2018
511b6ac
Mutations fix.
pmelab Feb 18, 2018
02c2f49
Mutations fix.
pmelab Feb 18, 2018
166e81e
Inject mock plugins without requiring multiple managers per type.
pmelab Feb 18, 2018
d3158f5
Add missing method to MockTypeSystemPluginManager.
pmelab Feb 18, 2018
517c059
Cleanup.
fubhy Feb 17, 2018
9b267fe
Adding comment.
fubhy Feb 18, 2018
338e22a
Adding caching of schema builder.
fubhy Feb 18, 2018
e51508e
Adding all types to the schema.
fubhy Feb 18, 2018
b8954a5
Statically cache plugin instances.
fubhy Feb 18, 2018
ba6e47e
Override query processing logic.
fubhy Feb 19, 2018
7f76a0d
Refactored plugin mock system.
pmelab Feb 19, 2018
76e5d4a
Fixing cache lookup.
fubhy Feb 20, 2018
9376fbf
Better batch handling and starting to implement cache collector.
fubhy Feb 20, 2018
490b191
Better batch handling and starting to implement cache collector.
fubhy Feb 20, 2018
23adc86
Fixed mutation cache.
pmelab Feb 20, 2018
99c34d6
Adjusted to enum breaking change.
pmelab Feb 20, 2018
f816993
Fixed mutation resolve invocation.
pmelab Feb 20, 2018
04cba7f
Fixed enum test.
pmelab Feb 20, 2018
e590057
Implemented interface and union type resolving.
pmelab Feb 20, 2018
7f5a876
Simplifying type lookup.
fubhy Feb 20, 2018
d416a1d
Fixing tests.
fubhy Feb 20, 2018
5a2ab23
Fixing tests.
fubhy Feb 20, 2018
c43be1d
Fixing tests.
fubhy Feb 21, 2018
fb03457
Fixing tests.
fubhy Feb 21, 2018
79de52c
Inherit interface fields.
fubhy Feb 21, 2018
0555b71
Fixing mutations.
fubhy Feb 21, 2018
ff1e393
Re-adding file uploads.
fubhy Feb 21, 2018
6bf42b2
Inherit interfaces.
fubhy Feb 21, 2018
04b50b5
Fixing mutation tests.
fubhy Feb 21, 2018
1e847e1
Fixing interfaces.
fubhy Feb 21, 2018
a6a2618
Fixing test.
fubhy Feb 21, 2018
9510afb
Introspection based schema cache tests.
pmelab Feb 21, 2018
e1c9b6e
I am the queen of refactoring.
fubhy Feb 21, 2018
704ba7f
Use operation name in context.
fubhy Feb 21, 2018
c5d34f9
Cast rendered output.
fubhy Feb 21, 2018
ef69fc5
Post refactoring.
fubhy Feb 21, 2018
98db0f7
Refactoring processor.
fubhy Feb 21, 2018
a79b059
Adapted field mocks to latest changes.
pmelab Feb 22, 2018
e8561df
Improved error assertions. Output internal errors and search for rege…
pmelab Feb 22, 2018
6eef7ca
Fixed batched query and file upload tests.
pmelab Feb 22, 2018
5e1d207
Fixed batched permissions test.
pmelab Feb 22, 2018
d9d315e
Respect permission to bypass field security.
pmelab Feb 22, 2018
ad36872
Respect type weights in association map.
pmelab Feb 22, 2018
badcacf
Fixes for various core components.
pmelab Feb 22, 2018
8d1fb0e
Entity field fixes.
pmelab Feb 22, 2018
d58577a
Entity field fixes.
pmelab Feb 22, 2018
8f2a128
Re-enabling cache assertions.
pmelab Feb 22, 2018
0ff603f
Improved node schema tests.
pmelab Feb 23, 2018
ae3d655
Working on cache metadata collection pattern.
fubhy Feb 24, 2018
2475246
Fixing tests.
fubhy Feb 24, 2018
fc107dc
Fixing tests.
fubhy Feb 24, 2018
431d93d
Produce query hash.
fubhy Feb 25, 2018
f76cc8e
Fixing hashing.
fubhy Feb 25, 2018
db578b0
Adding cache context collection.
fubhy Mar 2, 2018
2a25aec
Fixing tests.
fubhy Mar 2, 2018
b96bc99
Add response cache tags and max age.
fubhy Mar 2, 2018
3472bc5
Adding missing contexts to error message.
fubhy Mar 2, 2018
41f0f35
Fixing cache dependencies.
fubhy Mar 2, 2018
7c26290
Attempting to fix serialization.
fubhy Mar 2, 2018
02ad9b5
Adding graphql_response cache tag.
fubhy Mar 2, 2018
8468466
Adding derived cache metadata.
fubhy Mar 2, 2018
e9a0611
Adding variables.
fubhy Mar 2, 2018
e6de743
Mark queries ans uncachable.
fubhy Mar 2, 2018
7c43af0
Do not cache in development.
fubhy Mar 2, 2018
6e18a75
Move schema builder into plugin.
fubhy Mar 3, 2018
911a229
Fixing tests.
fubhy Mar 3, 2018
1a3fa6e
Fixing tests.
fubhy Mar 3, 2018
32a3662
Fixing tests.
fubhy Mar 3, 2018
c6a63a7
Remove test for caching in batched queries because batched queries ru…
fubhy Mar 3, 2018
b11fd8f
Use deriver for collecting schema definitions.
fubhy Mar 3, 2018
013a0af
Refactored mocking framework.
pmelab Mar 6, 2018
1372fa0
Avoid double-decoration of plugins during mocking.
pmelab Mar 6, 2018
b636843
Don't serialize result errors, since they may contain closures.
pmelab Mar 6, 2018
7617b3d
Fixed result cache test.
pmelab Mar 6, 2018
c96a03d
Fixed entity mutation tests.
pmelab Mar 6, 2018
7c55573
Adding cache tag and max age collection in plugin managers.
fubhy Mar 7, 2018
4b3468f
Fixing expected cache contexts.
pmelab Mar 7, 2018
2934bb5
Fixed schema cache tests.
pmelab Mar 8, 2018
1117622
Adding docblocks.
fubhy Mar 8, 2018
e803d2c
Removing redundant cache tags.
fubhy Mar 8, 2018
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ install:

# Bring in the module depe ndencies without requiring a merge plugin. The
# require also triggers a full 'composer install'.
- composer --working-dir=$DRUPAL_BUILD_DIR require youshido/graphql:~1.5
- composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.11.5

script:
# Run the unit tests using phpdbg if the environment variable is 'true'.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This module lets you craft and expose a [GraphQL] schema for [Drupal 8].

It is is built around https://github.com/Youshido/GraphQL. As such, it supports
It is is built around https://github.com/webonyx/graphql-php. As such, it supports
the full official GraphQL specification with all its features.

You can use this module as a foundation for building your own schema through
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "http://drupal.org/project/graphql",
"license": "GPL-2.0+",
"require": {
"youshido/graphql": "1.5.3"
"webonyx/graphql-php": "^0.11.5"
},
"minimum-stability": "dev"
}
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This module lets you craft and expose a [GraphQL] schema for [Drupal 8].

It is is built around https://github.com/Youshido/GraphQL. As such, it supports
It is is built around https://github.com/webonyx/graphql-php. As such, it supports
the full official GraphQL specification with all its features.

You can use this module as a foundation for building your own schema through
Expand Down
19 changes: 5 additions & 14 deletions graphql.install
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
<?php

/**
* @file
* Installer for the GraphQL module.
*/

/**
* Implements hook_requirements().
*/
function graphql_requirements($phase) {
// This is the first reference into the library performed by the module.
$youshidoAvailable = class_exists('\Youshido\GraphQL\Validator\ConfigValidator\ConfigValidator');
$libraryAvailable = class_exists('\GraphQL\GraphQL');

$libraryArg = [
'@library' => 'youshido/graphql',
'@library' => 'webonyx/graphql-php',
];

$ret = [
return [
'graphql' => [
'title' => 'GraphQL',
'description' => $youshidoAvailable
? t('@library component available', $libraryArg)
: t('@library component not found', $libraryArg),
'severity' => $youshidoAvailable ? REQUIREMENT_OK : REQUIREMENT_ERROR,
'description' => !empty($libraryAvailable) ? t('@library component available', $libraryArg) : t('@library component not found', $libraryArg),
'severity' => !empty($libraryAvailable) ? REQUIREMENT_OK : REQUIREMENT_ERROR,
],
];

return $ret;
}
5 changes: 0 additions & 5 deletions graphql.module
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* The GraphQL module.
*/

use Drupal\Core\Url;
use Drupal\graphql\Utility\StringHelper;

Expand Down
Loading