-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix issue where Wikidata edits were not happening #1682
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
|
@nicolas-raoul @VojtechDostal Wikidata edits should hopefully work on this branch. :) Let me know if you guys need an APK for testing on this build. |
Codecov Report
@@ Coverage Diff @@
## 2.8-release #1682 +/- ##
==============================================
- Coverage 3.86% 3.85% -0.01%
==============================================
Files 150 151 +1
Lines 7576 7591 +15
Branches 711 712 +1
==============================================
Hits 293 293
- Misses 7266 7281 +15
Partials 17 17
Continue to review full report at Codecov.
|
|
Just tested this on prodDebug, Android 8.0, Misaochan2 account, Samsung Galaxy S7 device. The Wikidata edit for https://www.wikidata.org/wiki/Q21904082 failed with the toast "Failed to update corresponding Wikidata entity", but the upload succeeded. Logs, taken from debug level, filtered for 'fr.free' (I started from a couple minutes before the failure toast, since I don't know how far back you need them). Sorry for the verbosity, I don't really know how else to filter more specifically with a real device. If it's too difficult to process the logs, I can re-test with an emulator which will have simpler logs: |
|
@misaochan Can you retry with a fresh installation. I got the same error when I installed prodDebug over betaDebug(without uninstalling betaDebug). On uninstalling and reinstalling the app, the edit was successful for me. I suspect the account info is not cleared properly on logout/upgrade. |
|
@maskaravivek It does work with a fresh install. :) Should we catch that exception and prompt user to re-login though? I mean, users won't be using beta of course, but the same issue can happen when their app updates to a new version. |
|
@misaochan I don't think it will happen while updating the app (I will validate this once). The problem is when the user switches from Moreover, currently as we have different package names for beta(fr.free.nrw.commons.debug) and prod(fr.free.nrw.commons) both apps should coexist. Right now if you install the In nutshell, the issue is in how the accounts and app variants are being handled. I would like to fix this is a separate PR. :) |
|
@maskaravivek Thanks for the clarification! I agree, best to fix that in a separate PR. :) |
|
Can this branch be deleted now? |
|
I think so. Please confirm @maskaravivek |
|
Yes it can be deleted. :) |
Title (required)
Fixes #1637
Description (required)
Fixes #1637
I was unable to make Wikidata edits both from
masterand2.8-releasebranch. This PR adds a lot of logs so that debugging in future is easier and it also fixes the issue.Now, Wikidata edits are happening properly.
Tests performed (required)
Tested on ProdDebug