automate Chapter wiki creation (eventually blogs too)

Bug #105744 reported by Nelson Pavlosky
4
Affects Status Importance Assigned to Milestone
Web Team projects
Won't Fix
Medium
The Half Hollow Hacker

Bug Description

I should be able to create a wiki for a chapter without bugging Asheesh, and it should spawn customized for the chapter, using information from the Chapters database.

* I've created a series of Templates on the example wiki, including {{Chapter subdomain}}, {{Chapter name}}, {{School url}}, and {{School name}}. Each of these templates should be filled in using the data in the appropriate field from the entry in the chapters database when the wiki is created.

* There should be some web interface or command line interface, where I can specify which chapter I want to create a wiki for, and (if the chapter is active), I will be allowed to create a wiki for it using the info from the chapters database.

Tags: chapters

Related branches

Revision history for this message
Nelson Pavlosky (nelson-freeculture) wrote :

If it would be easier to separate these steps, we could start off by simply creating a script which takes an existing chapter wiki (which Asheesh has spawned in his magic way) and fills in the templates from the database. I would like that a lot, and I think we should prioritize it.

Revision history for this message
Parker Phinney (gameguy43) wrote :

just a small note: make sure that you also set the icon for the wiki (the image at the top left) to be the fc.o "legos" by default.

Revision history for this message
Nelson Pavlosky (nelson-freeculture) wrote :

This is semi-important b/c otherwise Asheesh is the bottleneck for getting new chapter wikis created, and I'm sure Asheesh dislikes being bugged as much as we dislike bugging him ;-) But as long as Asheesh doesn't mind creating new wikis when we ask him this isn't critically important.

Changed in web:
importance: Undecided → Medium
Changed in web:
status: New → In Progress
Revision history for this message
Parker Phinney (gameguy43) wrote :

update:

so we have the wikis on a farm, and the blogs are being handled by lyceum. we have a process by-which one can create chapter webspace:
http://wiki.freeculture.org/Website_documentation#Chapter_hosting

it works, and it's not all that difficult, but it does require some comfort with the command line.

i'm leaving this bug open because this process could probably be much more automatized if someone wrote a nice python script or something.

Revision history for this message
The Half Hollow Hacker (halfhollowhackers) wrote :

Well, I am trying to write that "python script" As soon as I can get into the MediaWiki API, everything should be alright. I only have MediaWiki and backups left to tackle. Everything else should work with the script.

Changed in web:
assignee: nobody → halfhollowhackers
Revision history for this message
Asheesh Laroia (paulproteus) wrote : Re: [Bug 105744] Re: automate Chapter wiki creation (eventually blogs too)

On Mon, 27 Apr 2009, The Half Hollow Hacker wrote:

> Well, I am trying to write that "python script" As soon as I can get
> into the MediaWiki API, everything should be alright. I only have
> MediaWiki and backups left to tackle. Everything else should work with
> the script.

You rule.

Revision history for this message
The Half Hollow Hacker (halfhollowhackers) wrote :

Okay. Status update: I only have to write the new skeleton UI and some code to add the mysql wiki db to the backup system. Other than that, everything is done. Hopefully everything will be ready to go by this weekend.

Revision history for this message
Parker Phinney (gameguy43) wrote :

what is the status on this? what are the next action tasks?

Revision history for this message
Parker Phinney (gameguy43) wrote :

i'm especially interested in the status of moving blogs to wpmu.freeculture.org ... it looks like they've all been done, but we should probably run whatever shell script we had used one more time, to pull in any recent changes. here're some notes that i have from a couple months ago:

<tonyb486> [tonyb@tonybox fcdumps]$ scp fcdumps.tar.bz2 <email address hidden>:/home/freecult

to get a cookie:
wget --save-cookies cookie2 --post-data="log=admin&pwd=[INSERTPASSWDHERE]&rememberme=forever" http://freeculture.org/lyceum/login

<tonyb486> pyrak: 16:53 < tonyb486> [tonyb@tonybox fcdumps]$ for i in `cat blags`; do wget --load-cookies cookie2 http://$i.freeculture.org/admin/export.php?download=true -O $i.xml; sleep 3; done
<tonyb486> then just to check them tail -n1 *.xml and see if each one ends in </rss> or not

Revision history for this message
The Half Hollow Hacker (halfhollowhackers) wrote :

Almost done, the only thing left to fix is the mediawiki settings file. After that, it'll continue to be improved.

Cthurs (cthurs)
Changed in web:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.