-
-
Notifications
You must be signed in to change notification settings - Fork 721
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
Picture Of The day bug fixes #4836
Conversation
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.
@spatel Sorry for the delay on this review. Excellent investigative work, as always. 🙂
I found a couple of bugs, but overall I'm good with your approach in this method. Let us know if these fixes give you trouble and we can discuss alternatives. Thanks!
@tonisevener - thank you SO much for all the helpful comments, I knew there'd be subtleties like that which I'd missed! I have addressed all your comments (but it's probably hard to see exactly what I've done as But just to summarise what I've done: (1) I've tidied up all of the "save" logic so it now does what you suggested (i.e. it's now checking against the (2) The issue with the Chinese "variant" language code deeplinks not opening, seemed to be due to the |
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.
Working great, thanks for fixing!
Phabricator:
https://phabricator.wikimedia.org/T356255
Test Steps
Expected behaviour: the app should launch and open the POTD image gallery view
Notes
I split this into 2 commits (one of which is just clang-format changes), so you only really need to review this commit
Possible root cause
I think this could be due to the fact the POTD image only gets saved once in the data store against the app's initial site URL (i.e. initial primary language). After that, the same record gets continually modified. This is deliberate (to avoid duplicate images from appearing across each language feed) and there was a comment in the code to explain why this was originally done. However, I think you may be running into issues with content URL deep-links from widgets etc because they appear to be querying data against site URL (even for POTD).
Worked example
This is based on the test steps mentioned above:
wikipedia://content/picture-of-the-day/wikipedia.org/es/2024/05/01
[WMFAppViewController processUserActivity:animated:completion]
)Other observations
?forceReloadWidget=<widget.id>
query parameter with the widget URL) - but this seems to be quite "edge-casey" anyway.Screenshots/Videos
As described above, here is the Explore feed's POTD image description (see bottom part of the image) flipping languages:
PictureOfTheDay-language-flip.mp4