Edgewall Software
Modify

Opened 19 years ago

Closed 17 years ago

#2133 closed defect (wontfix)

Trac db upgrade and reports

Reported by: dpeterson Owned by: daniel
Priority: normal Milestone:
Component: report system Version: 0.9b1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Last night we moved a few Trac repositories from Trac 0.84 to the latest downloadable build of Trac 0.9 (I think its beta 1?). We ran the Trac db upgrade script and noticed the following in our reports:

1) The phrase 't.type AS type' was inserted in all the reports but was frequently inserted such that the report query didn't have SQL syntax. It looks like its simply being inserted in front of the word 'severity' with no concept of the fact that your report might have been written like 't.severity AS severity'. I say this because that phrase ends up like 't.severity AS t.type AS type AS severity' which breaks the report.

2) We have written most of our reports to use the m.time (milestone due date) field. None of these references were upgraded to be m.due. Since you guys know there were schema changes, it would be nice if you could detect these sorts of things and change them automatically so that we don't have to go edit track down the new schema and modify all the reports by hand (we've got at least 20 reports in 4 different instances of Trac.)

Attachments (0)

Change History (4)

comment:1 by dpeterson, 19 years ago

Correction: the line ends up being

t.severity AS t.type AS type, t.severity,

comment:2 by Christopher Lenz, 19 years ago

It'd probably be best to simply not upgrade the reports. We'd need to have a proper SQL parser to do it correctly.

The problem that reports cannot be easily upgraded in an automatic fashion when schema changes happen are exactly the reason why I'd like to see them be completely replaced by the new query module. Sigh.

comment:3 by Christopher Lenz, 19 years ago

Component: generalreport system
Owner: changed from Jonas Borgström to daniel

comment:4 by Christian Boos, 17 years ago

Resolution: wontfix
Status: newclosed

wontfix, for the reasons mentioned in comment:2.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.