-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix an issue with Reader failing to parse some search results #25022
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
Conversation
Generated by 🚫 Danger |
|
|
||
| // Fixes CMM-1002: in some cases, the backend fails to embed certain fields | ||
| // directly in the feed object | ||
| if feedURL == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not very elegant, but matches the rest of the code and gets the job done.
Both title and url fields are now optional. Hopefully, for each response, there will be a combination of at least some of these fields. The UI displays what's available.
| struct ReaderFeedEnvelope: Decodable { | ||
| let feeds: [ReaderFeed] | ||
| let total: Int | ||
| let total: Int? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not ideal, but it was another missing field. The service assumes that if total is nil, then there is no paging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably fine 🤷
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 29949 | |
| Version | PR #25022 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 2c8a7c5 | |
| Installation URL | 0hmr21g5metjo |
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 29949 | |
| Version | PR #25022 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 2c8a7c5 | |
| Installation URL | 0kidpd01thg0o |
03ff902 to
1283911
Compare
|
* Remove loading state title * More resilient Reader Search response parsing * Update release notes





Fixes https://linear.app/a8c/issue/CMM-1002/search-in-reader-app-fails-to-decode-some-responses (see ticket for RCA)
Before / After

I also made a small UI change to remove the title from the loading state to match the rest of the app.
Before / After
