Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug]: Commons app not showing pictures uploaded via web #5689

Closed
Tracked by #5715
mnalis opened this issue Apr 13, 2024 · 11 comments
Closed
Tracked by #5715

[Bug]: Commons app not showing pictures uploaded via web #5689

mnalis opened this issue Apr 13, 2024 · 11 comments
Labels
Milestone

Comments

@mnalis
Copy link
Contributor

mnalis commented Apr 13, 2024

Summary

I mostly upload images via Commons app, but sometimes I do it via web interface on my desktop via this webpage: https://commons.wikimedia.org/wiki/Special:UploadWizard

However, Commons app does not seem to show those uploads (on main page, or via Hamburger menu / Username / Contributions), instead of only showing the pictures uploaded via Commons app. Even when I try to "swipe down" to try to refresh the list of pictures, or enable/disable limited connection mode in attempt to get list of contributions to "sync".

That is, needless to say, highly confusing, as then I imagine I did not upload that pictures at all...

Note: I'm lately also experiencing:

if that might be related? I'm note 100% sure, but I think that it updated automatically correctly few months back (at least I still seem to see some older pictures in the Commons app that were uploaded e.g. in November 2023 via web interface. But the new ones in last week or two do not seem to get into the app)

Steps to reproduce

  1. Be logged in the Commons app
  2. Have some pics uploaded via Commons app
  3. note the list of Contributions on main screen in Commons app
  4. upload some pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard
  5. open Commons app again and check list of contributions -- it didn't change; i.e. it does not show new contributions even if app is restarted or one tries to refresh...

Expected behaviour

after I upload some pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard, they should be visible in Commons app too (at least after app restart / refresh).

Actual behaviour

pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard are not visible in Commons app.

Device name

Samsung Galaxy S23+

Android version

Android 14

Commons app version

4.2.1~14b6c455b (latest F-droid)

Device logs

CommonsAppLogs2.zip

Screen-shots

note that that yellow circle pic (Turning marker on Jarun.jpg) is missing in Commons app display, while it is visible on my commons web page.

small_Screen_Recording_20240414_001607_Commons.mp4

Would you like to work on the issue?

Prefer not

@mnalis mnalis added the bug label Apr 13, 2024
@RitikaPahwa4444
Copy link
Collaborator

RitikaPahwa4444 commented Apr 14, 2024

I'm not sure if this has started happening recently, I remember seeing some requests in the Play Store reviews as well. For instance, this is from March 2023 (this was for tablets, but we use the same logic I believe):

When I upload a file from computer, I can't see the updated file from here.

@RitikaPahwa4444
Copy link
Collaborator

Also, does some sort of workaround like the one suggested here work? Some observations like the ones shared here might help in fixing this bug too.

@mnalis
Copy link
Contributor Author

mnalis commented Apr 14, 2024

Also, does some sort of workaround like the one suggested #5131 (comment) work?

Yes: logging out, and then logging back in makes the web contributions appear in the Commons app.

@mnalis
Copy link
Contributor Author

mnalis commented May 4, 2024

I can confirm that bug is still present in latest f-droid release (5.0.1~af028cbdd) on Android 14 (OneUI 6.1), Samsung Galaxy S23+

@RitikaPahwa4444
Copy link
Collaborator

While signing out and then signing in again helps load the images from web, interestingly, Commons treats the images uploaded via web and app wizard differently. Even though I'd uploaded this picture via web, I didn't get any warning that the picture exists already while uploading from the app (it shows up in my contributions list on the app because of the workaround I'd followed). The picture got uploaded again, and is still not showing as a duplicate.

@mnalis
Copy link
Contributor Author

mnalis commented Jun 22, 2024

I didn't get any warning that the picture exists already while uploading from the app

@RitikaPahwa4444 you should probably best open that as a separate issue (mentioning this one) as it seems a different problem entirely. Without looking at the source, I'd guess that either:

@rohit9625
Copy link
Contributor

rohit9625 commented Sep 18, 2024

I tried uploading a picture from Web Upload Wizard and the images updated successfully on the app. However, I uploaded it from the mobile browser rather than my computer. Are you still facing the same issue @mnalis?

@sivaraam sivaraam modified the milestones: 5.1.0, 5.2.0 Dec 1, 2024
@chrisdebian
Copy link

I tried uploading a picture from Web Upload Wizard and the images updated successfully on the app. However, I uploaded it from the mobile browser rather than my computer. Are you still facing the same issue @mnalis?

This is encouraging; can anyone confirm whether the functionality is now working correctly?

Thanks,

Chris.

@savsch
Copy link
Contributor

savsch commented Dec 19, 2024

it does not show new contributions even if app is restarted...

For me, on the latest F-Droid release (5.1.0), the contributions made on the web upload wizard appear after the app is restarted (by first removing it from the recents screen).

or one tries to refresh

There doesn't seem to be any pull-to-refresh gesture (as attempted in the attached screen recording). Implementing one is fairly straightforward. If it isn't seen as introducing unnecessary complexity, I can take it on.

@nicolas-raoul
Copy link
Member

I just merged #6041 which fixes this. 🙂

@mnalis
Copy link
Contributor Author

mnalis commented Jan 28, 2025

I can confirm that with with 5.1.2 from F-droid this works, although with slight delay (which does not show that anything is happening):

  • open commons app and look at a list of pictures
  • upload new picture to common on different device (laptop) using Special:Uploadwizard web page
  • look at the commons app; nothing seems to change (i.e. only old picture list is displayed)
  • wait a few seconds, and then do a "drag down" gesture in hopes of refresh; nothing seems to change
  • wait a few seconds, and then do a "drag down" gesture in hopes of refresh; nothing seems to change
  • wait a few seconds, and then do a "drag down" gesture in hopes of refresh; nothing seems to change
  • wait a dozen more seconds
  • image uploaded via other device appears automagically in Commons app on mobile!

So, it works now. It is not very intuitive as there is no indicator that anything is happening in the background; but that is not really important, as I usually won't even be searching for other pictures uploaded via other device so soon (it more often happens after days or weeks when I'm searching for something I've uploaded before)

(also ref: #6084)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants