Opened 3 years ago

Closed 3 years ago

# T & E plugin always in need of an upgrade

Reported by: Owned by: chowell@… bobbysmith007 normal TimingAndEstimationPlugin normal 0.12

### Description

I am running Trac 0.12 on a Windows 2003 server, served up via Apache 2.2 with Python 2.7.

The issue that I am running into is I installed the T & E plugin with permissions branch the exact egg is timingandestimationplugin 1.1.3b, timingandestimationplugin-1.1.3b-py2.7.egg. The plugin downloaded and installed except for when I enable TimeTrackingSetupParticipant Then the admin tells me I am in need up of an upgrade.

Have attached log file.

### comment:1 Changed 3 years ago by bobbysmith007

I looked at the log file you uploaded and see that the thing triggering the upgrade is this plugins custom fields do not seem to be installed.

# fields:True means we are need to add the fields: "billable, totalhours, hours, estimatedhours, internal"
2011-05-11 14:49:49,085 Trac[api] DEBUG: T&E NEEDS UP?: sys:False, rep:False, stats:False, fields:True, man:False


Is there any reason that any of those fields would not be in the "ticket-custom" section of your trac.ini (such as you having intentionally removed them)? The install process puts these in place, so I cannot see why they would be missing unless some the upgrade script doesnt have permission to write to the trac.ini and it is not noticing that, or you are manually removing the fields.

Additionally I noticed that it was requiring the order of some of the fields to be specified (ie: totalhours.order must exist in the trac.ini). It also installs this ordering during the upgrade process, so this shouldn't be a problem, however, I removed this check in version 1.1.4 and 1.1.4b which will be pushed up shortly.

If you still cannot figure out how to get this to work or the upgrade to succeed, please post your trac.ini and maybe I can spot whats going wrong (dont forget to remove an database connection info and other sensitive information before you do). I dont recall these fields being installed ever being a problem in the past but there is a first time for everything

HTH & Cheers,
Russ

PS your ticket-custom section should look something like:

[ticket-custom]
billable = checkbox
billable.label = Billable?
billable.order = 3
billable.value = 1
estimatedhours = text
estimatedhours.label = Estimated Number of Hours
estimatedhours.order = 1
estimatedhours.value = 0
hours = text
hours.label = Add Hours to Ticket
hours.order = 2
hours.value = 0
internal = checkbox
internal.label = Internal?
internal.order = 5
internal.value = 0
totalhours = text
totalhours.label = Total Hours
totalhours.order = 4
totalhours.value = 0


### comment:2 Changed 3 years ago by bobbysmith007

[10182] removed some parts of the fields upgrade check to make it more configurable 1.1.4 and 1.1.4b

### comment:3 Changed 3 years ago by chowell@…

• Resolution set to fixed
• Status changed from new to closed

Apparently some of my fields were slightly off in ticket-custom field.

### comment:4 Changed 3 years ago by bobbysmith007

Thanks for updating the ticket. If you have a chance, I would be interested to know how they got "slightly off". I mostly want to verify that it is not a bug in the installer script.

Thanks,
Russ

### Modify Ticket

Change Properties