Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix show_related_resources and top_level_meta_include_page_count#1392

Open
bliof wants to merge 1 commit into
JSONAPI-Resources:masterJSONAPI-Resources/jsonapi-resources:masterfrom
bliof:fix-relationships-without-paginationsbliof/jsonapi-resources:fix-relationships-without-paginationsCopy head branch name to clipboard
Open

Fix show_related_resources and top_level_meta_include_page_count#1392
bliof wants to merge 1 commit into
JSONAPI-Resources:masterJSONAPI-Resources/jsonapi-resources:masterfrom
bliof:fix-relationships-without-paginationsbliof/jsonapi-resources:fix-relationships-without-paginationsCopy head branch name to clipboard

Conversation

@bliof
Copy link
Copy Markdown

@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.