Page MenuHomePhabricator

QRCode-Generator: Add pre-generated title, description and category while uploading
Closed, ResolvedPublic

Description

It would be helpful if we can get pre-generated title, description and category while uploading the QR codes. The pre-generated title is needed to prevent multiple uploads of the same file to Wikimedia Commons. The title, description and category can follow the below pattern.

  1. Title: File:QR Code - siteurl - Pagename.svg (For example: QR Code - meta.wikimedia.org - West Bengal Wikimedians-Bylaws.svg)
  2. Description: QR Code for pageurl (For example: QR Code for https://meta.wikimedia.org/wiki/West_Bengal_Wikimedians/Bylaws)
  3. Category: sitename QR Codes (For example: Category:Bengali Wikisource QR Codes)

Event Timeline

Before working on this request, I will need the permission of @srishakatux. It is developed as part of my GSoC Internship, not in an individual capacity. And Srishti Ji is one the owner of this tool. Also this app is part of MediaWiki-API-Demo.

Jayprakash12345 changed the task status from Open to Stalled.Jan 8 2020, 6:38 AM

@Jayprakash12345: I don't understand what you mean by "permission"... https://toolsadmin.wikimedia.org/tools/id/qrcode-generator also lists you as a maintainer? Maybe you meant "agreement" instead?

Aklapper changed the task status from Stalled to Open.Jan 11 2020, 3:52 PM
Bodhisattwa renamed this task from QRCode-Generator: Add pre-generated title and description while uploading to QRCode-Generator: Add pre-generated title, description and category while uploading.Jan 11 2020, 6:08 PM
Bodhisattwa updated the task description. (Show Details)
Bodhisattwa updated the task description. (Show Details)

@Jayprakash12345: I don't understand what you mean by "permission"... https://toolsadmin.wikimedia.org/tools/id/qrcode-generator also lists you as a maintainer? Maybe you meant "agreement" instead?

The source code of the this tool is under the mediawiki-api-demos's demo apps. See qrcode-generator. This app is intended to show how to make mediawiki-api request with OAuth. All demo app was intended to minimize as much as possible in term of code. So adding extra code apart from the demo goal will make it hard to understand. Therefore I need the permission of Srishti Ji to add extra code. The other option is to create a fork of this app on Gerrit. In both situations, I will need permission.

Change 584288 had a related patch set uploaded (by Jayprakash12345; owner: Jayprakash12345):
[labs/tools/qrcode-generator@master] Add pre-generated category while uploading

https://gerrit.wikimedia.org/r/584288

Change 584288 merged by jenkins-bot:
[labs/tools/qrcode-generator@master] Add pre-generated category while uploading

https://gerrit.wikimedia.org/r/584288

@Jayprakash12345 sorry! I'm just seeing this task. I have no issues with further changes being made to the QRcode-Generator app.

@Jayprakash12345 sorry! I'm just seeing this task. I have no issues with further changes being made to the QRcode-Generator app.

Thank you! I have moved the demo code to Gerrit with labs/tools/qrcode-generator repo name.

Mentioned in SAL (#wikimedia-cloud) [2020-03-30T06:07:48Z] <Jayprakash12345> Add pre-generated category while uploading (T242190)

Change 584293 had a related patch set uploaded (by Jayprakash12345; owner: Jayprakash12345):
[labs/tools/qrcode-generator@master] Add pre-generated description while uploading

https://gerrit.wikimedia.org/r/584293

Change 584293 merged by jenkins-bot:
[labs/tools/qrcode-generator@master] Add pre-generated description while uploading

https://gerrit.wikimedia.org/r/584293

Change 584619 had a related patch set uploaded (by Jayprakash12345; owner: Jayprakash12345):
[labs/tools/qrcode-generator@master] Add pre-generated title while uploading

https://gerrit.wikimedia.org/r/584619

Change 584619 merged by jenkins-bot:
[labs/tools/qrcode-generator@master] Add pre-generated title while uploading

https://gerrit.wikimedia.org/r/584619