Page MenuHomePhabricator

Identically named articles lost during reading list export in the Android app
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce

  1. Add two articles to a reading list (e.g. the default Saved list) that have the same title (but are in different languages). E.g. https://hu.wikipedia.org/wiki/George_Armstrong_Custer and https://en.wikipedia.org/wiki/George_Armstrong_Custer.
  2. Export the reading list to JSON.
  3. Delete the articles from the reading list.
  4. Import the list from JSON.

Actual result

  1. Notice that one of the articles disappeared. (Looking at the export file, it disappeared during the export, not the import.)

Expected result

  1. Notice that both articles were successfully roundtripped.

Software version

Android app 2.7.50429-alpha-2023-02-14, logged out

Event Timeline

Dbrant triaged this task as High priority.Feb 16 2023, 4:03 PM
Dbrant subscribed.

Excellent catch; this will need to be addressed before we roll this out to production.

Thanks, works for me as well. In what commit/PR did you fix it? There’s no automatic comment from @gerritbot, as you’re not on Gerrit, but it’s still useful to connect tasks with code changes.

Sure, here are the relevant pull requests:
https://github.com/wikimedia/apps-android-wikipedia/pull/3836
https://github.com/wikimedia/apps-android-wikipedia/pull/3837

And it may be worth looking into a GitHub action that automatically posts on a Phab task upon a successful merge, as gerritbot does.

Thanks!

And it may be worth looking into a GitHub action that automatically posts on a Phab task upon a successful merge, as gerritbot does.

Or into moving to GitLab? GitLab certainly has, or is going to have, notifications, as everything will move there. GitLab is much more similar to GitHub than Gerrit, so it may be sufficient for you.