Skip to content

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