Page MenuHomePhabricator

GSoC 2022 Proposal: Rewrite the Wikidata Infobox on Commons in Lua
Closed, DuplicatePublic

Description

Profile Information

Name :Prince

Email :kushwahaprince418@gmail.com

University :Krishna engineering college, Ghaziabad, Uttar Pradesh

Github Link :https://github.com/Prince-kushwaha

Github Username :Prince-kushwaha

Linkedin :https://www.linkedin.com/in/prince-kushwaha-bb80a8198/

Zulip username :prince

Location during GSoC: Gurugram, Harayana, India

Typical working hours (include your timezone) : Between 9 pm to 1 am UTC +5:30

Possible Mentor(s)

@Mike_Peel

Synopsis

Almost 4 million category pages on Wikimedia Commons use the Wikidata Infobox template, which is not implemented efficiently: Previewing a category page can take several seconds—long enough to be annoying. This project aims to address this problem by rewriting the infobox in Lua.

Implementation

we know that infobox requests the values for certain Wikidata properties individually,that resulting into hundreds time calls to Lua modules. we know that the infobox needs almost everything from the connected Wikidata item, so i am planning to write a Lua module that fetches this data in a single request using mw.wikibase.getEntity

Their are two Microtask
Microtask 1
Microtask 2

Timeline
May 20 – June 12 (Community Bonding Period)
  • Discussion with mentors regarding the features which have been planned .
  • Fix the Bugs
  • I will also be planning the workflow of all the features
June 13 – July 10
  • Start rewrite the Wikidata Infobox on Commons in Lua.
  • I rewrite all property requests in Lua
{{#invoke:Wikidata Infobox|formatLine | P138 | {{#invoke:WikidataIB | getValue | rank=best | P138 | name=P138 | linkprefix=":" | qlinkprefix=":" | list={{{liststyle|ubl}}} | qid={{{qid|}}} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | noicon={{{noicon|yes}}} | qual=ALL}} }}
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
  • write blogs and documenting my progress
July 11 – July 21
  • I have to port features from old infobox :label and description
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
July 22 – July 31
  • I have to port features from old infobox :images and sitelinks (displayed at the top of the infobox).
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
  • write blogs and documenting my progress
  • Phase 1 Evaluation [July 25 – July 29]
August 1 – August 12
  • I have to port features from old infobox : Automatic categorization (autocat)
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
August 13 – August 22
  • The aim is to convert an existing ParserFunction call that is used in the infobox to Lua
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
  • write blogs and documenting my progress
August 23 – August 28
  • I have to port features from old infobox : Authority control
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
August 29 – September 4
  • I have to port features from old infobox : helper links (displayed at the bottom of the infobox)
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
  • write blogs and documenting my progress
September 5 – September 12
  • Complete all remaining work
  • extensively test the features and fix the Bugs
  • Code refactoring
  • Deploy those features
  • submit my work to mentor for evaluation
Sept 13 - Sept 19
  • Final Evaluation.
  • write blogs and documenting my progress
Participation

I will publish my code on sandbox pages (here and here to be precise; this should allow us to test the new module on any category using Special:TemplateSandbox). I will stay in contact with Mike Peel on Zulip. For proposing changes to the template that need to be discussed in a larger group, I will resort to the template's talk page. I will write bi-weekly blog posts documenting my progress.

About Me

I am Thrid year student, pursuing B.tech in Computer Science and Engineering from Krishna engeering College , Ghaziabad, Uttar Pradesh

I love Android Development and I have been doing it for the past one years. I am also a strong supporter of open source and I love contributing to it. I have contributed to the Commons Android app since october 2020.

I am an active member of Website and software development cell the official website and app development team of the institute.

I am also completed Web Development course from Udemy :Certificated

Past Experience

I am love android Development and contributing to the open source projects

I am also doing web web development using node js,Flask/Django

Projects

Medium Website Clone - Make a clone of the renowned blog app Medium. To build this project used a backed API called realworld.io. In the app, you can log in/sign up and write a blog, and read others' blogs.

  1. Used Retrofit and Gson for API calls
  2. Used Junit for tests
  3. Used LiveData and ViewModel
  4. Used Navigation Architecture

Weather app- This app helps you see the weather forecast of your favorite cities.

  1. API calls using volley library.
  2. Notification
  3. Used content provider.
  • Blog -website:

    #html/css/javascript #React #Node js #mysql database

Other Skills - Developing Websites (Frontend and Backend) using HTML, CSS, Javascript, Python and NodeJs, MongoDB ,Flask,Django,Mysql

I have hands-on experience working on a range of projects that utilize data science concepts clustering, hypothesis testing, ranking, regression, and SVM as part of my "Fundamentals of Data Science" course I attended in my college. As part of the course, I got to work with tools like Numpy, Pandas, Matplotlib, Seaborn, Plotly, and Bokeh, allowing me to quickly ramp up to Wikimedia's development ecosystem.

Open Souce Contribtutions

Contributions to Wikimedia commons app

PULL request create: 29
Meged Pull Reques :25

Merged Pull Request

My commits

Not Merge Pull Request

Pull Request

PR NumberTitleStatus Issue Number
#4325fix:Setting Language list is not an language list which is supported by Commons for caption and descriptionMerged#4321
#4306fix:App should respect device font-sizeMerged#4299
#4274Explore Search: No title bar for item, non-existent menu for item, wrongly-worded menu for categoryMerged#4271
#4176click on skip button in Peer Review after orientation change then app is crashedMerged#4143
#4233app crash in CategoryDetailsActivity when click on any media (image or video)Merged#4196
#4267when app theme is Dark then CategoryDetailsActivity ,SearchActivity ,WikidataItemDetalActivity, Profile Activity Toolbar color is not change to darkMerged#4196
#4188fix-Incomplete Nearby List shown in Landscape modeMerged##4196
#4202fixes-Failed to send thanks" notification, but thank actually sent successfullyMerged#3559
#4204Upload count does not get updated right away post successful uploadMerged#3559
#4104Repull request of fixes #4081 App is crash when Backbutton is pressedMerged#4081
#4139Crash when tapping on the nearbyNotification in Contributions activityMerged#4086
#4102fixes In nearby tab when back button is pressed nothing happen(#4096)Merged#4096
#4103fix bug #4101 In MediaDetailfragment Editext Dailog is Blank in Dark modeMerged#4101
#4074fixes After click on the image app is crashed (#4072)Merged#4042
#4028fixes Progress Bar Visibility change with Orientation Change and login process terminatedMerged#4086
#4041fixes #4026 (words cut off )Merged#4026
#3982Losing filled data when screen rotate (#3973)Merged#3973
#4100fixes #2296 After canceling a sharing, application goes back to the search menuPending#2296

Contributions to AnkiAndroid App

PULL request create: 25
Merged Pull Request :23

My Merged PR
My commits to ankiAndroid

Event Timeline

@Aklapper @srishakatux @Mike_Peel review the proposal . Can i submit this proposal to google program website

Please do not create duplicate tasks about the very same topic but edit existing tasks. Thanks.

@Prince418 Your proposal still seems substantially the same as Lennard's, just with some rewording and rearranging, which still isn't OK. I don't think you've tried the microtasks either? I'm not sure of the GSoC rules for submitting this, and the deadline is today.

Some general advice for the future: it would have been much better if we'd interacted at least a week or two before the deadline to talk about the project; if you'd tried the microtasks; and if the proposal was entirely your own work.