GnuCash
Contact   Instructions
Bug 773198 - Move several reports to Example directory/menu
Summary: Move several reports to Example directory/menu
Status: NEW
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Reports (show other bugs)
Version: 2.6.x
Hardware: Other All
: Normal enhancement
Target Milestone: ---
Assignee: reports
QA Contact: reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-19 00:54 EDT by David
Modified: 2020-06-01 15:25 EDT (History)
7 users (show)

See Also:


Attachments

Description David 2016-10-19 00:54:13 EDT
In documenting the reports included with GnuCash, several reports appear mostly to be proof of concept reports that demonstrate the kinds of reports that can be built. As GnuCash has matured, however, fewer users appear to be interested in writing their own reports, as demonstrated by the dearth of new reports being submitted for inclusion in GnuCash.

Rather than include these reports in the main GnuCash package, I would propose having these be stored on the Wiki, with the documentation pointing interested users there. That way, the reports would still be available to the few that are interested in developing new reports. 

To this end, I would recommend the following reports be removed from the default reports package, and moved to the wiki:

Average Balance
Expenses vs. Day of Week
Income vs. Day of Week
Sample Report with Examples
Comment 1 Chris Good 2016-10-19 19:51:08 EDT
Hi David,

What do you mean by 'moved to the wiki'?
You cannot use the wiki as a file server. You can list the report scheme code in a page but they are too long for that to be useful.

Regards, Chris Good
Comment 2 John Ralls 2016-10-19 20:06:24 EDT
Indeed.

We could move them to an examples directory in the sources where they could quietly rot away. Or we could just remove them from the menu and leave them where they are. That way the compiler will make sure that we keep them at least build-able. The wiki article on writing custom reports can tell people where to look for them.
Comment 3 David 2016-10-19 23:13:36 EDT
Chris, looking at the wiki didn't suggest to me that length was an issue. There are plenty of long pages there already. As for John's suggestion to leave them in place or put them in an examples directory, I like putting them into their own directory. That way, they wouldn't be mistaken as "standard" reports. But removing them from the menus achieves my primary goal, too.
Comment 4 John Ralls 2016-10-20 13:27:29 EDT
The issue is mostly that a wiki isn't a very good place to park code.

I was originally thinking of an examples directory at the root level, but on reflection src/reports/examples would work as well and if it's there we can still build the reports as a QA check so they won't bit-rot too badly.
Comment 5 Carsten Rinke 2016-10-24 19:56:58 EDT
I would suggest to use the (existing) src/report/utility-reports/ directory as a container for all non-standard reports.

On top of that:
I would opt for a Report Configurator in the Tools menu that searches the src/report/utility-reports/ directory for available non-standard reports and offers the user tick boxes so he can select which reports to add to the Report menu, and which not.

Simply hiding them away would not be my preferred choice, which is especially valid for the Sample Report with Examples.

Note You need to log in before you can comment on or make changes to this bug.