Skip to content

Conversation

@kean
Copy link
Contributor

@kean kean commented Nov 26, 2025

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

Before / After
Screenshot 2025-11-26 at 2 20 13 PM Screenshot 2025-11-26 at 3 24 22 PM

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

Before / After
Screenshot 2025-11-26 at 2 17 43 PM Screenshot 2025-11-26 at 2 20 17 PM

@kean kean added the Reader label Nov 26, 2025
@kean kean added this to the 26.5 ❄️ milestone Nov 26, 2025
@kean kean changed the title Task/improve reader search Fix an issue with Reader failing to parse some search results Nov 26, 2025
@dangermattic
Copy link
Collaborator

dangermattic commented Nov 26, 2025

1 Warning
⚠️ This PR is assigned to the milestone 26.5 ❄️. The due date for this milestone has already passed.
Please assign it to a milestone with a later deadline or check whether the release for this milestone has already been finished.
1 Message
📖 This PR contains changes to RELEASE-NOTES.txt.
Note that these changes won't affect the final version of the release notes as this version is in code freeze.
Please, get in touch with a release manager if you want to update the final release notes.

Generated by 🚫 Danger


// Fixes CMM-1002: in some cases, the backend fails to embed certain fields
// directly in the feed object
if feedURL == nil {
Copy link
Contributor Author

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?
Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably fine 🤷

@kean kean requested review from crazytonyli and jkmassel November 26, 2025 20:39
@kean kean enabled auto-merge (squash) November 26, 2025 20:40
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Nov 26, 2025

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number29949
VersionPR #25022
Bundle IDcom.jetpack.alpha
Commit2c8a7c5
Installation URL0hmr21g5metjo
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Nov 26, 2025

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number29949
VersionPR #25022
Bundle IDorg.wordpress.alpha
Commit2c8a7c5
Installation URL0kidpd01thg0o
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@kean kean force-pushed the task/improve-reader-search branch from 03ff902 to 1283911 Compare November 26, 2025 21:37
@sonarqubecloud
Copy link

@kean kean merged commit 74ac023 into release/26.5 Nov 26, 2025
26 of 32 checks passed
@kean kean deleted the task/improve-reader-search branch November 26, 2025 21:54
jkmassel pushed a commit that referenced this pull request Nov 27, 2025
* Remove loading state title

* More resilient Reader Search response parsing

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants