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

Introduce extended schema plugin. #792

Merged
merged 4 commits into from
Jun 2, 2019

Conversation

rthideaway
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented May 28, 2019

Codecov Report

Merging #792 into 8.x-4.x will decrease coverage by 0.59%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##             8.x-4.x    #792     +/-   ##
===========================================
- Coverage      79.89%   79.3%   -0.6%     
- Complexity       535     540      +5     
===========================================
  Files             74      75      +1     
  Lines           1194    1203      +9     
===========================================
  Hits             954     954             
- Misses           240     249      +9
Impacted Files Coverage Δ Complexity Δ
src/Plugin/GraphQL/Schema/SdlSchemaPluginBase.php 94.44% <ø> (ø) 22 <0> (ø) ⬇️
...gin/GraphQL/Schema/SdlExtendedSchemaPluginBase.php 0% <0%> (ø) 5 <5> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22609f0...756019c. Read the comment docs.

use GraphQL\Language\Parser;
use GraphQL\Utils\SchemaExtender;

abstract class SdlExtendedSchemaPluginBase extends SdlSchemaPluginBase {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should have a class comment why we need this and what it does.

* The parsed extended schema document.
*/
protected function getExtendedSchemaDocument() {
// Only use caching of the parsed document if aren't in development mode.
Copy link
Contributor

Choose a reason for hiding this comment

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

"if we aren't in development mode"

@joaogarin joaogarin added the 4.x label May 28, 2019
@fubhy fubhy merged commit cedb1d2 into drupal-graphql:8.x-4.x Jun 2, 2019
@fubhy
Copy link
Contributor

fubhy commented Jun 2, 2019

Sweet, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants