Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Search all posts and group results into sections #10837
This is to handle an enhancement to the current search in the Posts section of the App. Today the app only searches the published posts, where the goal will be to add the other types of posts to the results and mirror the look and feel of the Pages section of the app.
To do this in
Searching with results
Searching with results and scroll
Searching with no results (Unchanged behavior)
PR submission checklist:
- Modified PostListType to have the SEARCH type inclide all post statuses - Modified PostListViewModel to to limit the number of posts per fetch because I was getting frequent 500 errors from the API when requesting 60 items per request
When searching after a page is fetched from the API the results are now grouped into sections. Also reverted the change to ask for smaller page sizes as it appears that including "meta" in the "fields" parameter is the item that periodically causes a 500 from the server.
…t is already available postListType which is already provided gives the needed information on if this is a search or not