Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#1816 closed task (fixed)

upgrade Trac to 1.2 release

Reported by: Jeff McKenna Owned by: strk
Priority: normal Milestone:
Component: Trac Keywords: trac
Cc: martinspott, neteler, nhv

Description

release notes from 2016-11-04:


Trac 1.2 is now available.

You can find the release at the usual place: https://trac.edgewall.org/wiki/TracDownload#LatestStableRelease

Trac 1.2 is the first major release of Trac in more than 4 years. The following are some highlights from the release:

  • Extensible notification system (#3517)
  • Notification preference panel (#4056)
  • Usernames replaced with full names (#7339)
  • Restyled ticket changelog (#11835)
  • Workflow controls on the New Ticket page (#2045)
  • Editable wiki page version comments (#6573)
  • Datetime custom fields (#1942)

You can find the detailed release notes for 1.2 on the following pages: https://trac.edgewall.org/wiki/1.2/TracChangeLog https://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.1

Now to the packages themselves:

URLs: https://download.edgewall.org/trac/Trac-1.2-py2-none-any.whl https://download.edgewall.org/trac/Trac-1.2.tar.gz https://download.edgewall.org/trac/Trac-1.2.win32.exe https://download.edgewall.org/trac/Trac-1.2.win-amd64.exe https://download.edgewall.org/trac/Trac-1.2.zip

Change History (28)

comment:1 Changed 3 years ago by strk

Status: newassigned

Upgrade guide: https://trac.edgewall.org/wiki/TracUpgrade#to1.2 (we're coming from 1.0)

comment:2 Changed 3 years ago by strk

Before upgrading I'm removing plugins that are currently unused. So far I removed:

Both were not enabled by any instance. Going trough more now (wiki is updated accordingly, see https://wiki.osgeo.org/wiki/Trac_Instances#Plugins)

comment:3 Changed 3 years ago by strk

Tracticketsstats is also gone now

comment:4 Changed 3 years ago by strk

I now also removed all instance-local plugins, all of them were deprecated anyway, this should give us a clearer look about which plugins are available.

comment:5 Changed 3 years ago by strk

Cc: martinspott added

While I try each enabled plugin against Trac-1.2 on a local system, I found a plugin which is only used by Mapserver and probably broken since last Trac upgrade: https://trac.osgeo.org/mapserver/ticket/4275#comment:1 -- waiting to hear from them about what to do with it. I'd just drop the plugin unless someone really wants it.

comment:6 Changed 3 years ago by strk

So now TracSecureTickets? is also gone, dealing with TracSectionEdit? now, which needs to be upgraded to 1.2.0dev before it can be used with trac-1.2, will try that now

comment:7 Changed 3 years ago by strk

Cc: neteler added

SectionEdit? upgraded so it will work with Trac 1.2, but TracMetrixPlugin? still fails and has no replacement yet, see https://trac-hacks.org/ticket/13041 - The only instances using the Metrix plugin are the GRASS and QGIS (deprecated) ones.

Markus: how useful is the Metrix plugin for you guys ?

comment:8 Changed 3 years ago by strk

I completed the test of plugins, all the used plugins work with Trac 1.2 except the Metrix plugin, so we have to decide about it (disable or replace with a newer plugin)

comment:9 in reply to:  7 Changed 3 years ago by neteler

Replying to strk:

SectionEdit? upgraded so it will work with Trac 1.2, but TracMetrixPlugin? still fails and has no replacement yet, see https://trac-hacks.org/ticket/13041 - The only instances using the Metrix plugin are the GRASS and QGIS (deprecated) ones.

Markus: how useful is the Metrix plugin for you guys ?

I'm following up on grass-dev at time - summary answer asap.

comment:11 Changed 3 years ago by strk

The final thing to take care of would be the notification system, changed in 1.2: https://trac.osgeo.org/osgeo/ticket/39#comment:11

comment:12 in reply to:  10 Changed 3 years ago by neteler

Replying to strk:

Alternatives ( to review for supporting Trac 1.2 ) :

...

Thanks for the suggestions! Here the feedback from the grass-dev list:

On Tue, Jan 10, 2017 at 7:48 PM, Vaclav wrote:

Looks good. May be useful. Seems very comprehensive. Last commit on Github from Dec 2016.

Both seems to depend on Flash and unmaintained or 3rd party projects.

So, TracStatsPlugin might be a good replacement for TracMetrixPlugin

comment:13 Changed 3 years ago by strk

I've installed TracStatsPlugin? from the current master branch (0.5dev) and confirmed it does work with Trac-1.2.

Please enable the new plugin and disable the old one, then I'll uninstall the old one.

comment:14 in reply to:  13 Changed 3 years ago by neteler

Replying to strk:

Please enable the new plugin and disable the old one, then I'll uninstall the old one.

[master 3ac918d] grass trac.ini: commented tracmetrixplugin

However, I don't know how to activate TracStatsPlugin? in /var/www/trac/grass/conf/trac.ini

comment:15 Changed 3 years ago by strk

Enable it via the web ui, then check with "git diff" how it changed :)

comment:16 in reply to:  15 Changed 3 years ago by neteler

Replying to strk:

Enable it via the web ui, then check with "git diff" how it changed :)

How easy! :)

[master 2744930] grass trac.ini: activated TracStats? plugin, see https://trac.osgeo.org/grass/stats

comment:17 Changed 3 years ago by strk

Thanks (ouch, those stats take forever to generate, try the code/ stats). Meanwhile, I filed #1839 for the notification tweaks, last thing needed before upgrading

comment:18 Changed 3 years ago by strk

LDAP Email resolution plugin is also ready: https://git.osgeo.org/gogs/sac/TracLDAPEmailResolverPlugin

Only, it still requires a bugfix in Trac itself, tracked here: https://trac.edgewall.org/ticket/12658

I'd wait a day or two to see if the patch is applied, or I'll continue with local modification updating the wiki accordingly.

Meanwhile if any python/trac developer wants to take a look at the plugin, any review is very welcome.

comment:19 Changed 3 years ago by strk

Patch was applied, may be worth waiting for an official 1.2.1 before upgrade (depending on when it is expected)

comment:20 Changed 3 years ago by strk

For the record: I'm also discussing a further modification to allow notifying users who did not login into the specific trac instance yet: https://trac.edgewall.org/ticket/12658#comment:31 If that patch is not accepted we'll still need it to replicate the current notification system (the one implemented by the patches in #39)

comment:21 Changed 3 years ago by strk

Cc: nvh added

I've completed the upgrade to 1.2.1dev (r15395) and now looking at issues as they raise. As part of the upgrade I've installed the TracLDAPEmailResolverPlugin (https://git.osgeo.org/gogs/sac/TracLDAPEmailResolverPlugin) and configured it globally, so if things go as expected users watching this ticket should be getting an email notification. Let's see if it works ( https://trac.osgeo.org/osgeo/ticket/39#comment:15 )

comment:22 Changed 3 years ago by strk

This is one of the issues I found: https://groups.google.com/forum/#!topic/trac-users/yaMesS3G6uo And this serves as a new test for notification (which missed another bit of configuration)

comment:23 Changed 3 years ago by strk

Cc: nhv added; nvh removed

comment:24 Changed 3 years ago by strk

#1864 is for tracking the infinite recursion reported in the trac-user mailing list

comment:25 Changed 3 years ago by strk

Resolution: fixed
Status: assignedclosed

Well I'm closing this as done, after also upgrading wiki. Issues that might arise will have their own ticket.

comment:26 Changed 3 years ago by Jeff McKenna

Good job @strk I'm following, will also keep an eye open. And thanks for this.

comment:27 Changed 2 years ago by Jeff McKenna

I noticed that Trac 1.2.1 was released today. Not sure if any recent changes help our instance:

Trac 1.2.1 is now available.


Trac 1.2.1, the first maintenance release in the 1.2.x series,
provides more than 30 minor fixes and enhancements.
The following are some highlights:

* TracIni macro generates anchors for each option (#9401)
  and allows specifying exact options and sections to 
  be rendered (#12633)
* Several fixes for the enhanced Trac notification system
  (#11928, #12658, #12700)
* Improved usability of ticket comment //Reply// and
  //Edit// buttons (#12671)
* Restored missing ticket change conflict markers
  (#12730)

comment:28 Changed 2 years ago by strk

If a new upgrade is ever made make sure to re-apply local customizations: https://wiki.osgeo.org/wiki/Trac#Local_Customizations

NOTE: we might already have the enhancements in Trac notification system as we were using something later than 1.2.0 (see detail on https://trac.osgeo.org/osgeo/ticket/1863#comment:3)

Note: See TracTickets for help on using tickets.