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

Jetpack: Investigate why we display Post/Page filters when there are no items available #8684

Closed
gwwar opened this issue Oct 12, 2016 · 3 comments

Comments

@gwwar
Copy link
Contributor

gwwar commented Oct 12, 2016

(Published/draft/scheduled) all show for a Jetpack site, even when it has none of each type of post. On WP.com sites, we only show those filters if there are sites to show under that view. We should do the same for Jetpack sites. This is related to lack of functional post_counts endpoint for Jetpack sites.

On a WP.com site we only see filters when there > 0 items:
screen shot 2016-10-12 at 10 57 56 am

For a Jetpack site this is untrue:
screen shot 2016-10-12 at 10 58 06 am

Let's do an investigation spike to see why this is happening. If the steps involved to fix this are very large, please report back and we can create more issues.

@beaulebens
Copy link
Member

This may (hopefully) be fixable now that we are more thorough with the data that we sync (we didn't previously sync drafts etc, which meant this was impossible).

@mtias
Copy link
Member

mtias commented Oct 14, 2016

@beaulebens the post_counts endpoint is a separate one, we need to make sure that is properly synced and updated.

@beaulebens
Copy link
Member

Right, what I mean is that even if we don't have the endpoint in Jetpack (yet), we might be able to handle it locally, from synced data.

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

No branches or pull requests

4 participants