Skip to content

Fetch all terms linked to a post, rather than just first 100 - #11524

Merged
danielbachhuber merged 1 commit into
WordPress:masterfrom
dd32:fix-10873
Nov 6, 2018
Merged

danielbachhuber merged 1 commit into
WordPress:masterfrom
dd32:fix-10873

Conversation

@dd32

@dd32 dd32 commented Nov 6, 2018

Copy link
Copy Markdown
Member

Description

Fetches all terms linked to a post, rather than just the first 100 per taxonomy.
This relies upon the fetch-all middleware.

This is part of #10873

How has this been tested?

By adding 240 tags to a post, verifying that they're limited to 100 prior, shows 240 afterwards.

@danielbachhuber
danielbachhuber self-requested a review November 6, 2018 12:05
@danielbachhuber danielbachhuber added REST API Interaction Related to REST API [Type] Bug An existing feature does not function as intended labels Nov 6, 2018
@danielbachhuber

Copy link
Copy Markdown
Member

This relies upon the fetch-all middleware.

Great find! I wish I had thought of that :)

Locally, I get a 502 Bad Gateway with this branch when I have 201 terms assigned to my post:

image

My hunch is that it has to do with the total length of the include query argument. When I switch back to the master branch, I have the same problem.

@danielbachhuber

danielbachhuber commented Nov 6, 2018 •

Copy link
Copy Markdown
Member

Another imprecise behavior I noticed: even though the request for terms failed, the Tag Post Setting appears like this:

image

I would've expected the Tag Post Setting to better communicate it's incomplete / failed state. I'll note on #6723

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

REST API Interaction Related to REST API [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants