Skip to content

feat: allow global/database IDs in Comment connection where args ID inputs#2522

Merged
jasonbahl merged 9 commits intowp-graphql:developfrom
justlevine:feat/allow-global-db-ids-in-comment-where-args
Sep 19, 2022
Merged

feat: allow global/database IDs in Comment connection where args ID inputs#2522
jasonbahl merged 9 commits intowp-graphql:developfrom
justlevine:feat/allow-global-db-ids-in-comment-where-args

Conversation

@justlevine
Copy link
Copy Markdown
Collaborator

What does this implement/fix? Explain your changes.

This PR allows Comment connection where args with a type ID to accept either global IDs or database IDs.

This PR replaces #2340 , and requires #2521 to be merged as a prerequisite.

Does this close any currently open issues?

Part of #998

Any relevant logs, error output, GraphiQL screenshots, etc?

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)

Any other comments?

Where has this been tested?

Operating System: Ubuntu 20.04 (wsl2 + devilbox + php 8.0.19)

WordPress Version: 6.0.2

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 17, 2022

Coverage Status

Coverage increased (+0.09%) to 81.892% when pulling ddd7a1c on justlevine:feat/allow-global-db-ids-in-comment-where-args into a2098ea on wp-graphql:develop.

*
* @return array
*/
public function get_args() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Function get_args has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.

*
* @return array
*/
public function get_args() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Method get_args has 44 lines of code (exceeds 40 allowed). Consider refactoring.

@justlevine justlevine added type: enhancement Improvements to existing functionality status: in review Awaiting review before merging or closing component: connections Relating to GraphQL Connections object type: comment Relating to the Comment Type labels Sep 17, 2022
@justlevine justlevine marked this pull request as ready for review September 17, 2022 18:48
*
* @return array
*/
public function get_args() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Method get_args has 43 lines of code (exceeds 40 allowed). Consider refactoring.

@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit ddd7a1c and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2

View more on Code Climate.

@jasonbahl jasonbahl merged commit 8129ebb into wp-graphql:develop Sep 19, 2022
@justlevine justlevine deleted the feat/allow-global-db-ids-in-comment-where-args branch September 19, 2022 16:51
@jasonbahl jasonbahl mentioned this pull request Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: connections Relating to GraphQL Connections object type: comment Relating to the Comment Type status: in review Awaiting review before merging or closing type: enhancement Improvements to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants