ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Sorting documents by author only works on documents with attachments (Bug #510)
Description
Not really a category for "complaints" but just wanted to log this one under "very confusing and surprising".
When sorting documents (using "Sort by" in the sidebar), you have the options of "Category", "Date", "Title" and "Author". As far as the code goes, the sorting just basically does a lookup of all documents and does a #group_by
on them by the option you specify...except for Author. Since Document doesn't belong to an Author, the Redmine/ChiliProject committer decide to traverse the attachments relationship to get an author to group by. What this means is that you can only sort on documents that have an attachments.
I submit that this is confusing and very unexpected behavior based on how the other sorts work. My suggestion would be either removing author sort or giving documents an author. Both are painful, but at least produce an expected and not "buggy-looking" result.
My $0.02 :)
History
Updated by Eric Davis at 2011-07-06 10:54 pm
Good find, I don't use Documents at all. I propose adding a Document author that gets set to the current user when a Document is created.
- Category set to Documents module