User Details
- User Since
- Mar 9 2020, 5:06 PM (317 w, 4 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- Rishikabhatia17 [ Global Accounts ]
May 4 2020
Hi @Aklapper
I'm working on this task. The categories are done and now I'm working on selecting multiple categories.
Here is the pull request for this task: https://github.com/tonythomas01/gdrive-to-commons/pull/51
Thank you!
Apr 6 2020
Hi @Abbasidaniyal ,
I have been working on this task since many days. So I would request you to leave this task for me only.
Thanks!
Mar 31 2020
Hi @01tonythomas
I have sent a PR for the above task and I request you to please review it and merge it.
Thanks!
Mar 28 2020
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.
Mar 27 2020
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.
Mar 24 2020
Hi all,
I was making changes in the code to add features and while testing the tool, I was not able to upload the photos by clicking on the upload button and was facing the following errors:
Mar 22 2020
Mar 16 2020
Hi @Abbasidaniyal
I have found that the counter is not working as expected and is displaying the count as 5 all the time (even when we are not logged into Wikimedia commons) as shown below.
Mar 15 2020
Hi @01tonythomas
I have first started setting up the local environment by following the steps given in "steps for local development" documentation After reaching step 4: setting up the local settings by modifying the values of keys I have started following "Pre-requisites for local development" documentation to get the keys.
First I got the gcp credentials and then I have got the OAuth client keys using Wikimedia:OAuth. While getting OAuth client keys I didn't know what to set MediaWiki OAuth Callback URL as. So I first set it as localhost 8000.
Then I have run the the Django standard runserver.
After logging in to Wikimedia commons account and giving OAuth permissions I was again redirected to the first introduction page. Then I understood that callback URL should be set as the page which should be coming after logging into the Wikimedia commons.
Then I have generated the OAuth client keys using Wikimedia:OAuth but this time setting the MediaWiki OAuth Callback URL as https://tools.wmflabs.org/google-drive-photos-to-commons/upload/
Then I have tested the tool locally and the tool was working perfectly and the images were being uploaded to Wikimedia commons and we're visible to the public and I was also able to upload multiple images. Also after you have suggested me to use your dev keys I have used your gcp keys (used my OAuth client keys because I have changed the callback URL) and tested the tool and then also it was working perfectly.
I felt that there was error in the callback URL because of my first try and also you have mentioned in the documentation for prerequisites that "remember that you set the right Mediawiki OAuth callback url".
Thanks!
Hi @EeshaDutta
I would like you to once check the following link https://phabricator.wikimedia.org/T247372
I have added a comment in the last about how to setup the keys and try following it.
Thanks!
Hi @EeshaDutta
Paste the secrets keys correctly in your local settings which are given here : https://phabricator.wikimedia.org/T235969
Also if you are redirected to a page which shows "Access Denied: Restricted Paste" please join the project using the following link: https://phabricator.wikimedia.org/project/members/4068/
Thanks!
I have followed the local environment setup instructions that were mentioned in the documentation. I have got all the Google Cloud Platform related keys and pasted them in the local settings.
Then, I have started the process to request for an OAuth client using Wikimedia:OAuth by filling the following form: https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose
In the 1st try, I have set the MediaWiki OAuth Callback URL as http://127.0.0.1:8000/ (Local host) and I was facing a problem while running the application
In the 2nd try, I have set the MediaWiki OAuth Callback URL as https://tools.wmflabs.org/google-drive-photos-to-commons/upload/? (Choose Photos from Google Drive button page) and I have got both the keys.
Then I have pasted the keys in local_settings.py file and then I have Run the Django standard runserver. Now I'm able to upload the file to Wikimedia commons from google drive successfully as shown below.
Also, I have used the dev keys as given in the https://phabricator.wikimedia.org/P10014
The only keys I have changed are the OAuth client using Wikimedia:OAuth because I felt there was a mistake in the callback URL.
I'm also able to upload images multiple times.
Hence I would request you to generate new OAuth client using Wikimedia:OAuth by setting the MediaWiki OAuth Callback URL as https://tools.wmflabs.org/google-drive-photos-to-commons/upload/? (Choose Photos from Google Drive button page) and paste both the newly generated keys in local settings.py and run the tool and test it.
So, I feel that the solution for the primary bug is found out now and it would be a great help if you can test this method and let me know.
Mar 14 2020
Mar 11 2020
Mar 10 2020
Expected solution:
The user should be informed that they can edit the details of the image by giving user interface instructions and the important metadata fields can also be added.
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!
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.


