Make sure the post list is fetched and displayed in the same order#25085
Merged
crazytonyli merged 4 commits intotrunkfrom Jan 5, 2026
Merged
Make sure the post list is fetched and displayed in the same order#25085crazytonyli merged 4 commits intotrunkfrom
crazytonyli merged 4 commits intotrunkfrom
Conversation
The property values can be 0, which fails the if check. However, that does not mean we should not set their corresponding API parameters.
This property was added 9 years, and I don't think it applies to how the posts are currently fetched and displayed anymore. The current code fetched posts that is created after the `oldestPostDate` (when set). However, the post list does not always sort by the "creation date". Draft posts are sorted using modified date. So, the predicate created based on `oldestPostDate` does not apply here. There is also a related `fetchLimit` property. I'm not sure why we need that. We should be displaying a full post list. There is no need to set a limit here.
Fixes https://linear.app/a8c/issue/CMM-1070 The posts list's display order is set in `PostListFilter`, but is fetched in a different order in `PostRepository`. This change makes sure the orders now are the same.
Contributor
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 30253 | |
| Version | PR #25085 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | cb0131f | |
| Installation URL | 5e9lq9d913md8 |
Contributor
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 30253 | |
| Version | PR #25085 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | cb0131f | |
| Installation URL | 1iabtrl5oiqk8 |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Description
Fixes https://linear.app/a8c/issue/CMM-1070.
I suggest reviewing this PR commit by commit, as each commit contains detailed messages.
Testing instructions
See the Linear issue.