Planet.wikimedia.org
From Wikitech
(Difference between revisions)
m |
(→What's better about the new planet?: [https://en.planet.wikimedia.org https://<lang>.planet.wikimedia.org]) |
||
| Line 18: | Line 18: | ||
#It's a complete rewrite of the old code in Python. It uses more modern technology like html5lib, Atom, XSLT and Django templates. | #It's a complete rewrite of the old code in Python. It uses more modern technology like html5lib, Atom, XSLT and Django templates. | ||
#It's IPv6-enabled. | #It's IPv6-enabled. | ||
| − | #It's SSL-enabled. You can now use https://<lang>.planet.wikimedia.org | + | #It's SSL-enabled. You can now use [https://en.planet.wikimedia.org https://<lang>.planet.wikimedia.org] |
#Apache site config is separate for each language and generated from language hash in puppet | #Apache site config is separate for each language and generated from language hash in puppet | ||
Latest revision as of 18:37, 7 February 2013
[edit] What is planet?
An RSS feed aggregator. See meta:Planet_Wikimedia for details.
[edit] How do i access it?
http://en.planet.wikimedia.org/ and several other languages, *.planet.wikimedia.org.
[edit] New planet (planet-venus)
On Jan,23rd 2013 we switched from the old planet (http://www.planetplanet.org/) to the new planet-venus (http://www.intertwingly.net/code/venus/)
[edit] What's better about the new planet?
- It's packaged in Ubuntu. (planet-venus), the old planet was not packaged.
- It's fully puppetized, the old planet was all manual.
- It uses git. People adding feed URLs can just send Gerrit patchsets. The old planet used SVN.
- It's a complete rewrite of the old code in Python. It uses more modern technology like html5lib, Atom, XSLT and Django templates.
- It's IPv6-enabled.
- It's SSL-enabled. You can now use https://<lang>.planet.wikimedia.org
- Apache site config is separate for each language and generated from language hash in puppet
[edit] What may not be better about the new planet (yet)?
- The "gmq" planet, which is a combo of Scandinavian languages does not have separate index pages in each language yet.
- Some CSS/layout/design issues, like localized logo in Arabic or right-to-left alignment of thumbnails. (Arabic does already use a separate CSS file though and has the sidebar on the right hand side)
- It does not include iframes (this might be considered a good thing though)
[edit] Where should i report issues?
On Bugzilla. In product Wikimedia, component Planet
[edit] Where does it run?
On zirconium in eqiad. The old planet was on singer.
[edit] Where's the code?
In git, in the operations/puppet repo:
- ./manifests/role/planet.pp
- ./manifests/misc/planet.pp
and
- git clone https://github.com/rubys/venus.git
[edit] How are planets being updated?
Puppet creates cron jobs, running as user "planet".
crontab -u planet -l example: 0 0 * * * /usr/bin/planet -v /usr/share/planet-venus/wikimedia/de/config.ini > /var/log/planet/de-planet.log 2>&1
There is also /var/lib/planet/update-planets to update all planets at once. run with sudo -u planet though to not mess up permissions on log files.
[edit] How do i add/remove feed URLs?
- Clone the operations/puppet git repository.
- go to ./puppet/templates/planet/ and edit one of the <language>_config.erb files
- submit to gerrit and have somebody merge it
[edit] How do i change HTML of the index pages?
- see above, edit ./puppet/templates/planet/index.html.tmpl.erb
[edit] How do i add/change translations in the index pages or add a new language?
- see above, edit ./puppet/manifests/role/planet.pp (find $planet_languages=...)
[edit] How do i request changes if i can't or don't want to submit a change set myself?
Ask on meta:Planet_Wikimedia#Requests_for_Update_or_Removal