Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#6728 closed defect (fixed)

Allow underscore in dynamic variables for reports

Reported by: kirean@… Owned by: Remy Blank
Priority: normal Milestone: 0.12
Component: report system Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Not really sure if it's a bug or a change request.

background

In 0.11 there are examples using underscore in state names. We have a state called in_QA. I'm using the timingandestimationplugin and unfortunately it uses the state name as a dynamic variable name. Thus all reports fails with: Report execution failed: Dynamic variable '$IN' not defined.

Simple example

Create a report like:

select $IN_QA

Call it like report:x?$IN_QA='test' and it will fail with error: Report execution failed: Dynamic variable '$IN' not defined.

Solution

coderanger suggested changing source:trunk/trac/ticket/report.py#L490 which for me worked fine with: re.compile("[$]([A-Z_]+)") (Not sure though that this is the correct one to use)

Could something like this be adapted to "main Trac"?

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 16 years ago

Milestone: 0.12
Owner: changed from Matthew Good to Remy Blank

This is related to #6354, which asks for digits in report variables. I'll implement both.

comment:2 by Remy Blank, 16 years ago

Resolution: fixed
Status: newclosed

Implemented in [7632].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank 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.