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

fix: support empty nodes #15

Merged
merged 8 commits into from
Nov 7, 2023

Conversation

mrexox
Copy link
Member

@mrexox mrexox commented Nov 2, 2023

Fixes #12

Context

GraphQL::Connections::Stable fails when empty relation is passed. This PR fixes it.

Related tickets

#12

What's inside

  • Simply return false if nodes are empty
  • Fix some versions of gems and Docker containers to do local development with dip
  • Drop support for Ruby 2.6

Checklist:

  • I have added tests
  • I have made corresponding changes to the documentation

@mrexox mrexox force-pushed the fix/support-empty-nodes branch from 987b3db to 306bbef Compare November 3, 2023 08:09
@mrexox mrexox marked this pull request as ready for review November 3, 2023 08:09
@mrexox mrexox requested a review from prog-supdex November 3, 2023 08:22
@mrexox
Copy link
Member Author

mrexox commented Nov 3, 2023

@prog-supdex , hey! Could you take a look at this change? Does it feel OK?

@DmitryTsepelev DmitryTsepelev self-requested a review November 3, 2023 09:59
@mrexox mrexox requested a review from bibendi November 7, 2023 10:37
Copy link
Collaborator

@DmitryTsepelev DmitryTsepelev left a comment

Choose a reason for hiding this comment

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

LGTM 🙂

@@ -12,12 +12,12 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0' ]
ruby: [ '2.7', '3.0', '3.1', '3.2' ]
Copy link
Collaborator

Choose a reason for hiding this comment

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

ruby 2.7 is not supported anymore, so I guess we can drop it as well

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree. Can you disable the status check for the PR for 2.6 and 2.7 and add 3.1 and 3.2?

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like I do not have a proper role 🙂

@mrexox
Copy link
Member Author

mrexox commented Nov 7, 2023

@bibendi, hey! Could you please take a look at this PR?

Copy link
Collaborator

@bibendi bibendi left a comment

Choose a reason for hiding this comment

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

Hey! Looks great!

@palkan palkan merged commit 63f321a into evilmartians:master Nov 7, 2023
3 checks passed
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.

Handling empty nodes in has_next_page
4 participants