Ticket #3693 (assigned enhancement)

Opened 5 months ago

Last modified 2 weeks ago

[with spkg and patches, needs work] upgrade moinmoin to 1.7.2

Reported by: was Assigned to: was (accepted)
Priority: major Milestone: sage-3.2.2
Component: packages Keywords:
Cc:

Attachments

sage-3693-part1.patch (1.1 kB) - added by was on 07/21/2008 02:57:18 AM.
trac_3693-part2.patch (3.4 kB) - added by mhansen on 07/22/2008 01:57:40 AM.
trac_3693-part3.patch (1.2 kB) - added by mhansen on 10/02/2008 01:12:25 AM.

Change History

07/21/2008 12:42:04 AM changed by was

  • owner changed from mabshoff to was.
  • status changed from new to assigned.

07/21/2008 02:48:16 AM changed by was

  • description changed.

07/21/2008 02:55:28 AM changed by was

  • description changed.

Current version of spkg here:

http://sage.math.washington.edu/home/was/patches/moin-1.7.1.spkg

The current problems:

  • moinmoin is totally broken on os x -- weird permission errors; probably related to twisted upgrade. This was a problem with 1.5.x too, so fixing this isn't needed for this ticket, but should be fixed in another ticket.
  • jsmath typesetting doesn't work because url's like this don't work: http://wiki.sagemath.org/wiki/jsmath/ If anybody can find a URL that works (i.e., lists files), I can make jsmath for sage work fine.
  • We have to check that existing moinmoin installs get automatically migrated.
  • We need to change things so that (1) the default moinmoin install does *not* allow anonymous edits. This means editing a file in patches/

  • We need to change things so that the default moinmoin using catchpa's since the whole point of upgrading is to get rid of spammers.

07/21/2008 02:57:18 AM changed by was

  • attachment sage-3693-part1.patch added.

07/22/2008 01:55:39 AM changed by mhansen

I have an updated spkg at http://sage.math.washington.edu/home/mhansen/moin-1.7.1.spkg along with a new patch.

It takes care of all the issues listed above except the weird permissions errors on OS X. The second patch is just a fairly quick version I did, and it would be good if someone else sat down and looked at it. I tested the migration bit on a simple wiki and it worked correctly with jsMath, the textchas, etc.

07/22/2008 01:57:40 AM changed by mhansen

  • attachment trac_3693-part2.patch added.

07/30/2008 08:03:35 PM changed by mabshoff

  • summary changed from upgrade moinmoin to 1.7.1 to [with spkg and patches, needs review] upgrade moinmoin to 1.7.1.

09/29/2008 11:34:38 PM changed by jason

I applied the patches and installed the spkg and everything seemed to work fine. I did not try to convert any wikis, though, and could not test OS X. So consider this a positive review if those two issues are looked at by someone.

09/30/2008 10:46:20 AM changed by mabshoff

  • milestone changed from sage-3.2 to sage-3.1.3.

Mike mentioned that we should go to 1.7.2 directly. We also need someone to test the upgrade of an existing wiki.

Maybe we should do a backup before upgrading the wiki so that in case of a disaster no data are lost.

Cheers,

Michael

09/30/2008 10:47:56 AM changed by mhansen

I've tested upgrading an existing wiki, but I guess I don't count :-)

Also, it currently does write a backup before upgrading.

10/02/2008 01:12:25 AM changed by mhansen

  • attachment trac_3693-part3.patch added.

10/02/2008 01:13:57 AM changed by mhansen

  • summary changed from [with spkg and patches, needs review] upgrade moinmoin to 1.7.1 to [with spkg and patches, needs review] upgrade moinmoin to 1.7.2.

11/14/2008 05:15:38 AM changed by was

  • summary changed from [with spkg and patches, needs review] upgrade moinmoin to 1.7.2 to [with spkg and patches, needs work] upgrade moinmoin to 1.7.2.

Hi,

I just tried this on the public sage wiki. It "works", but has the drawback that I guess MoinMoin? changed their link format, so essentially every single link (over 3000 pages of them) in the entire wiki is broken. It would be nice if the Python code actually converted the wiki pages so they work. As it is now, it doesn't, so anybody who upgrades to this spkg would have their entire wiki broken.

Hopefully changing the link format can be done automatically.

11/14/2008 05:07:58 PM changed by was

Mike could you post exactly what you did to very nicely fix the public sage wiki? You did get it to work. Thanks!

11/20/2008 01:20:15 AM changed by mabshoff

[01:03am] mabshoff: mhansen: wstein|afk was wondering about how you converted the wiki?
[01:03am] mabshoff: I.e. the moinmoin 1.6 syntax since he wanted to convert the other wikis hosted at sagemath.org, too.
[01:04am] mhansen: There's a data migration script that needs to be run.
[01:05am] mhansen: "moin migration data --help"
[01:17am] mabshoff: mk