Skip to content

fix(persisted-queries): Fix query config problems#1082

Merged
rthideaway merged 4 commits intodrupal-graphql:8.x-4.xfrom
rthideaway:fix/persisted-query-config-problems
Sep 11, 2020
Merged

fix(persisted-queries): Fix query config problems#1082
rthideaway merged 4 commits intodrupal-graphql:8.x-4.xfrom
rthideaway:fix/persisted-query-config-problems

Conversation

@rthideaway
Copy link
Copy Markdown
Contributor

Found two problems when configured first few persisted plugins. Fixing them both:

  • weight with index zero is ignore due to using !empty() instead of isset()
  • config containing persisted query plugins could not be imported as the settings is mistakenly unset too soon

@rthideaway rthideaway self-assigned this Sep 10, 2020
@rthideaway rthideaway requested a review from klausi September 10, 2020 13:41
Copy link
Copy Markdown
Contributor

@klausi klausi left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

Would be good to have some test coverage here for form and config, I guess that would be a lot of work?

@rthideaway
Copy link
Copy Markdown
Contributor Author

Would be good to have some test coverage here for form and config, I guess that would be a lot of work?

yes, that would be, let's see, if I have some spare time I might write one

@rthideaway rthideaway merged commit a32c1bc into drupal-graphql:8.x-4.x Sep 11, 2020
@rthideaway rthideaway deleted the fix/persisted-query-config-problems branch September 11, 2020 06:17
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.

2 participants