Roundup Tracker - Issues

Message7582

Author rouilj
Recipients rouilj
Date 2022-06-18.03:43:32
Message-id <1655523812.59.0.366741801922.issue2551211@roundup.psfhosted.org>
In-reply-to
There is no good way for a user to specify the order of their queries in the sidebar.

Currently a user's queries are a multilink on the user item to the query item.
Multilinks don't preserve order so setting the multilink to [3,1] is the same as [1,3].
So I can't control the display order by setting the multilink as it seems to get normalized.

Even if multilinks preserved order, queries are sorted by name as the default sort field.
I can name my own queries:

   01. my reports
   02. my working order

etc. and have them sorted correctly by 01, 02, .... But imported public queries
are named by the person who created them. So a public query named Dashboard
would sort after all of my numbered queries and I have no way to put it third
in the list since I can't set its name just for me.

Not sure what the solution is. Maybe a query order string property in the User object
and a way to use that ordered list to influence the display order?

The template code to display the query order loops over:

  request/user/queries

so it could call utils.OrderedQueries(request.user) which returns an array of
queries ordered in the user's desired order.
History
Date User Action Args
2022-06-18 03:43:32rouiljsetrecipients: + rouilj
2022-06-18 03:43:32rouiljsetmessageid: <1655523812.59.0.366741801922.issue2551211@roundup.psfhosted.org>
2022-06-18 03:43:32rouiljlinkissue2551211 messages
2022-06-18 03:43:32rouiljcreate