Ticket #3578 (assigned task)

Opened 10 years ago

Last modified 7 years ago

migrate trac code fixes when rolling out new version

Reported by: reedstrm Owned by: jenn
Priority: medium Milestone: TracDevelopment
Component: trac.rhaptos.org Version:
Severity: minor Keywords:
Cc: System Area: Other
Primary Skill: Trac
Site URL:
Suppress email to reporter: no

Description

To date we've a couple tweaks to the codebase that would be clobbered by a new version rollout. They are:

1. testing items on milestone progress bar 2. mimetype tweaks for cpt,pt, and cpy

Make sure these get migrated w/ new code

Attachments

mimeview-api.patch (1.0 KB) - added by jenn 9 years ago.
Patch that adds pt, cpt, and cpy files to the mime types list
postcommithook.patch (1.5 KB) - added by jenn 9 years ago.
Our tweaks to the trac-post-commit-hook workflow.
roadmapcss.patch (476 bytes) - added by jenn 9 years ago.
The line to make testing tickets yellow in the roadmap; should become an instance customization eventually.
suppress-reporter-email.patch (0.8 KB) - added by jenn 9 years ago.
Modification to Trac code so it pays attention to our custom field
poolpy.patch (8.9 KB) - added by jenn 9 years ago.
A patch from 0.12dev that might help performance
pool-py-r7538.patch (0.9 KB) - added by jenn 8 years ago.
Another patch from cboos, fixing t.e.o. ticket 4465.
trac.ini.diff (7.8 KB) - added by jenn 8 years ago.
Updated diff to include ignore_auth_case=true

Change History

Changed 10 years ago by jenn

  • status changed from new to accepted

We also need to remember to take our settings from the ini file; that's obvious for things like our custom fields and workflow, but we've also tweaked quite a few other things.

Changed 10 years ago by jenn

We have modifications in trac-post-commit-hook to make our commit vocabulary do custom things, like send to testing on "fix" instead of closing.

Changed 10 years ago by jenn

Also changed trac-post-commit-hook to add "refer".

And installed the XML-RPC plugin.

Changed 9 years ago by reedstrm

Code changes for milestone progress bar are at: diff of: /net/bokken/usr/share/python-support/trac/trac/ticket/roadmap.py.custom /net/bokken/usr/share/python-support/trac/trac/ticket/roadmap.py.orig Will need to be patched into new code, which has some structural changes it looks like.

mime-type changes so the code browser lets you look at templates, etc. is in mimeview/api.py at that same location.

Currently running code is all under: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6016-py2.4.egg/trac/

Changed 9 years ago by reedstrm

Further reading of roadmap.py: looks like the progressbar is configurable now: we won't have to patch the code directly.

Changed 9 years ago by jenn

I must have neglected to hit Submit on my update yesterday. Rats. It said something like this:

  • Updated to trunk this afternoon (Monday 9/17).
  • Installed a fresh new trac.ini and manually migrated our settings to it
  • trac-post-commit-hook doesn't need recustomizing because it's separate code
  • Hey, Ross, where's the mime stuff?
  • Biggest problem will probably be working the kinks out of the new configurable progress bar.

Ross of course anticipated the last two in his recent updates.

Some of the mime types seem to be handled in a more advanced manner in the newer release, so the only customizations I moved over were (pardon the pseudo-patch-ese):

-    'text/xml':               ['xml'],
+    'text/xml':               ['xml', 'pt', 'cpt'],
-    'text/x-python':          ['py', 'python'],
+    'text/x-python':          ['py', 'python', 'cpy'],

Our text/xsl looks like it's now handled as application/xsl+xml, along with application/xslt+xml. We'll see if those work okay.

Changed 9 years ago by jenn

Patch that adds pt, cpt, and cpy files to the mime types list

Changed 9 years ago by jenn

Our tweaks to the trac-post-commit-hook workflow.

Changed 9 years ago by jenn

The line to make testing tickets yellow in the roadmap; should become an instance customization eventually.

Changed 9 years ago by jenn

  • owner changed from lwilson to jenn
  • skills changed from Python to Trac
  • status changed from accepted to assigned

I think this pretty much covers our current customizations. The remaining task is to move all this to a wiki page.

Changed 9 years ago by jenn

  • severity changed from major to minor

Changed 9 years ago by jenn

Also note that if we ever do a complete wipe and reinstall, we'll want to preserve our site logo and favicon from the project htdocs folder.

Changed 9 years ago by jenn

Added a current diff of our trac.ini against the version of Trac we're actually using (Trac revision 6021).

Changed 9 years ago by jenn

Oh, and we're also using the spamfilter plugin. Its settings are in trac.ini and are covered by the above patch.

Changed 9 years ago by jenn

Modification to Trac code so it pays attention to our custom field

Changed 9 years ago by jenn

A patch from 0.12dev that might help performance

Changed 9 years ago by jenn

  • suppressreporteremail unset

Alas, the connection-pooling patch is from trunk (0.12dev), and doesn't apply against 0.11.

Changed 9 years ago by jenn

New blog post summarizing some of these procedures: http://rhaptos.org/devblog/jenn/upgradingtrac

Changed 8 years ago by jenn

Another patch from cboos, fixing t.e.o. ticket 4465.

Changed 8 years ago by jenn

Updated diff to include ignore_auth_case=true

Note: See TracTickets for help on using tickets.