Skip to content

make pagination metadata more robust for offset based pagination#320

Merged
zachdaniel merged 1 commit intoash-project:mainfrom
xantrac:pagination
May 29, 2025
Merged

make pagination metadata more robust for offset based pagination#320
zachdaniel merged 1 commit intoash-project:mainfrom
xantrac:pagination

Conversation

@xantrac
Copy link
Copy Markdown
Contributor

@xantrac xantrac commented May 28, 2025

Contributor checklist

  • Bug fixes include regression tests
  • Features include unit/acceptance tests

}
}
},
%Absinthe.Blueprint.Schema.FieldDefinition{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed this field definition since it doesn't see be used anywhere

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When you say its not used anywhere, wouldn't it have been used by the current type?

It remaps more? to has_next_page. Your current code handles that though so it should be fine to remove.

     %Absinthe.Blueprint.Schema.FieldDefinition{


         description: "Whether or not there is a next page",
         identifier: :has_next_page,
         module: schema,
         name: "has_next_page",
         __reference__: ref(__ENV__),
         type: %Absinthe.Blueprint.TypeReference.NonNull{of_type: :boolean}
       },

@zachdaniel
Copy link
Copy Markdown
Contributor

The compile error here is from a change made to support OTP 28, requires Ash to be upgraded. Does mix check pass for you locally? If so I'll merge and confirm

@xantrac
Copy link
Copy Markdown
Contributor Author

xantrac commented May 29, 2025

mix check
is green for me

image

@zachdaniel zachdaniel merged commit 14ccbd9 into ash-project:main May 29, 2025
17 of 18 checks passed
@zachdaniel
Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

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