Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing simple example #2

Open
level420 opened this issue Feb 21, 2012 · 1 comment
Open

Missing simple example #2

level420 opened this issue Feb 21, 2012 · 1 comment

Comments

@level420
Copy link

I'm trying to use this plugin, but I'm failing on a simple example with this query in the query form field:

select issue, comment from time_entries

If I try to save this query I get the following error message:

wrong number of arguments (1 for 2)

It would be great to have an example showing how to start.

Thank you.

@alantrick
Copy link
Owner

This is probably a bug. I'm pretty sure selecting issues works, so you could try select issue from time_entries, but I don't don't about comments. You could also try select issue, comment as foobar from time_entries.

What's actually going on behind the scenes is a bunch of trippy magic (due to limitations in Rails, and functional requirements I had). The values in issue are being constructed into an Issue object, and if there is a Comment class, then the contents of Comment is probably getting made into that; however, I'd guess that the constructor for the Comment class takes two arguments, something the code wasn't designed to handle.

Unfortunately, I don't have an interest in this plugin anymore. It was designed to be kind of like the reporting system in Trac, but Trac's reports are far superior than this will ever be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants