Page MenuHomePhabricator

After login, files are listed in a random order
Closed, ResolvedPublic

Description

The google drive to commons uploader tool has been tested thoroughly on several operating systems (Windows 10, Ubuntu 18.04 and mac OS and Android 10 (Mobile web browser))
After we sign in with our google account and when we need to select the images, files are being shown randomly and the original google drive user interface (I mean the UI which we see when we originally use google drive) is not being shown. This increases the difficulty of choosing a particular image which the user might have stored in a particular folder according to himself.

Here is the screenshot where we can only see random images(files only) only and no folders are shown.

image.png (731×1 px, 492 KB)

Event Timeline

Expected solution:
The original google drive interface can be shown to the user while they select the images to upload to the commons, that is, the folders and files should be shown to the user as they are in the google drive originally so that it would be easy for the user to locate the image.

The original google drive interface can be shown to the user

Hi @Rishikabhatia17, as you assigned this task to yourself: How? :) Does that mean you want to reimplement a UI as close as possible to Google's UI, and then maintain that? Or use an <iframe>? Or something else? Note that likely do not want to expose the IP address of a user directly to Google servers, because Privacy.

Aklapper renamed this task from Google Drive user interface problem to After login, files are listed in a random order.Mar 10 2020, 6:46 PM

Hi @Aklapper,
I have assigned this task to myself just to say that I'm working on this issue. If it's wrong I'm sorry, I don't know about that. And the second thing is I'm not yet sure about how I'll be solving the issue because I'm looking into several methods to solve the issue and working on it now and I'll also make sure that there won't be any privacy issue.
Thanks!

Not sure why this task got reassigned just because I asked a question - setting assignee again. :)

I think we would be limited by Google https://developers.google.com/picker/docs and feel free to see if there is a way to make it allow us to see folders. Thank you for the report again.

In the tool, after selecting the "choose photos from google drive" button, images are displayed in a random order and the pull request#52 in github solves https://phabricator.wikimedia.org/T247338 task and github issue#33.
Folders are first displayed after selecting "choose photos from google drive" button as shown below.

image.png (972×1 px, 303 KB)

Then we can navigate through folders and view files and sub folders as shown below

image.png (973×1 px, 531 KB)

To view only images after navigating to a folder, select file type as images from advanced search options as shown below

image.png (970×1 px, 521 KB)

image.png (904×1 px, 395 KB)

Then select the images to upload to Wikimedia commons. We can select multiple images randomly by selecting the images while pressing the CTRL button as shown below. This solves https://phabricator.wikimedia.org/T247367 task and issue#34 on github

image.png (964×1 px, 407 KB)

After this we can upload the images to Wikimedia commons.

The pull request#52 in GitHub has been updated and now the user can only view images and folders containing images and cannot view any other documents and need not select file type as images from advanced search options and can directly view only images as shown below.

image.png (956×1 px, 403 KB)

@Rishikabhatia17: Hi, the patch has been merged. Can this task be resolved (via Add Action...Change Status in the dropdown menu), or is there more to do in this task? Asking as you are set as task assignee. Thanks in advance!

@Rishikabhatia17: No reply, assuming this can be resolved. If not, please reopen via Add Action...Change Status in the dropdown menu. Thanks!

01tonythomas moved this task from Backlog to Outreachy 12 (goals) on the Google-Drive-to-Commons board.Mar 14 2020, 13:05
01tonythomas removed a project: Outreachy (Round 20).

@01tonythomas: "Outreachy 12" looks... wrong? :)

Oopise. You are right. Renamed our column. Thanks @Aklapper !