Hi,
I just started using Tracks and I think I might have found a bug.
Last semester I had database class and I was playing with postgresql. That’s why I used this DBMS for Tracks, too. In class I had to implement something and stumbled upon a problem, that seems to be the same that I found in Tracks. When selecting something while at the same time using an aggregate function (e.g. count), one has to put all the fields one wants to select into a GROUP BY clause.
The error message I get is: “PGError: ERROR: column ‘todos.due’ must appear in the GROUP BY clause..”. So I tried to fix the two controllers where this is the case, but there are so many more fields selected, that I can’t put all of them into the GROUP BY clause. I don’t know how to fix this and still be dynamic (not put all the fields into the GROUP BY).
How I noticed the error in the beginning is, that when I add an action it shows a “server error” (whatever that means) and I have to reload “Home” to see the new action.
Also, I cannot delete projects. Another “PGError: ERROR: null value in column ‘position’ violates not-null constraint”. Okay, so there is a not null constraint on position which probably does make sense. Now I wonder, why Tracks/Rails wants to UPDATE the project instead of DELETEing it. In the projects controller I only found a destroy method and in the Rails API there is a DELETE, so I don’t understand where the UPDATE comes from, but there it has to be fixed.
Regards,
Frank
