Skip to content

(bugfix): #2381 register field to setting group not working#2382

Merged
jasonbahl merged 4 commits intowp-graphql:developfrom
jasonbahl:bugfix/#2381-register-field-to-setting-group-not-working
May 16, 2022
Merged

(bugfix): #2381 register field to setting group not working#2382
jasonbahl merged 4 commits intowp-graphql:developfrom
jasonbahl:bugfix/#2381-register-field-to-setting-group-not-working

Conversation

@jasonbahl
Copy link
Copy Markdown
Collaborator

@jasonbahl jasonbahl commented May 16, 2022

What does this implement/fix? Explain your changes.

This fixes a bug where fields could not be registered to GraphQL Types that are added to the Schema from the register_settings API.

Does this close any currently open issues?

closes #2381

Pushed it up with a failing test: https://github.com/wp-graphql/wp-graphql/runs/6459066904?check_suite_focus=true#step:9:463

Then the code that gets the tests to all pass: https://github.com/wp-graphql/wp-graphql/runs/6459071170?check_suite_focus=true#step:9:462

jasonbahl added 3 commits May 16, 2022 12:10
…otQuery type properly adds the field to the schema, but breaks when registering a field to a SettingGroup type
…ered.

- update setting group to use register_graphql_object_type instead of $type_registry->register_object_type
@jasonbahl jasonbahl added the object type: settings Relating to the Settings Types label May 16, 2022
@jasonbahl jasonbahl self-assigned this May 16, 2022
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit 1e060c2 and detected 0 issues on this pull request.

View more on Code Climate.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 79.543% when pulling 1e060c2 on jasonbahl:bugfix/#2381-register-field-to-setting-group-not-working into 18c5aab on wp-graphql:develop.

@jasonbahl jasonbahl changed the title Bugfix/#2381 register field to setting group not working (bugfix): #2381 register field to setting group not working May 16, 2022
@jasonbahl jasonbahl merged commit a8e8e17 into wp-graphql:develop May 16, 2022
@jasonbahl jasonbahl mentioned this pull request May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

object type: settings Relating to the Settings Types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Registering a field to a Setting Group no longer works

2 participants