Page MenuHomePhabricator

Use context processors instead of passing repetatively the same parameters
Closed, ResolvedPublic

Description

All calls of render_template recieve logged and username parameters. That's tedious and error prone. Better solution would be to use context processors to pass variables everywhere. In this task, you should go through all calls of render_template() and move logged and username parameters into a context procesor you'll create.

Student is expected to upload a patch against labs/tools/commons-mass-description repository at Wikimedia Gerrit. Student should claim Phabricator task while claiming task at the GCI site.

Materials

Event Timeline

BubblySprout subscribed.

I am claiming this task for Google Code-In 2019.

Change 559628 had a related patch set uploaded (by BubblySprout; owner: BubblySprout):
[labs/tools/commons-mass-description@master] Moved logged and username parameters into a context processor

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

Change 559628 merged by jenkins-bot:
[labs/tools/commons-mass-description@master] Moved logged and username parameters into a context processor

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