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 show_related_resources and top_level_meta_include_page_count #1392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bliof
Copy link

@bliof bliof commented Jun 21, 2022

problem:

When the paginator is :none and top_level_meta_include_page_count is true
The show_related_resources was crashing as the paginator is nil

solution:

Just fixing the immediate problem but the code still leaves page_count
as nil in the meta

Reviewer Checklist:

  • Maintains compliance with JSON:API
  • Adequate test coverage exists to prevent regressions

problem:

When the paginator is :none and top_level_meta_include_page_count is true
The show_related_resources was crashing as the paginator is nil

solution:

Just fixing the immediate problem but the code still leaves page_count
as nil in the meta
@bliof bliof force-pushed the fix-relationships-without-paginations branch from 35ed838 to 4840292 Compare June 21, 2022 20:12
@bliof bliof changed the title Fix show_related_resources to work with global config Fix show_related_resources and top_level_meta_include_page_count Jun 21, 2022
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.

1 participant