darcs

Issue 1234 roundup: export_csv doesn't filter correctly

Title roundup: export_csv doesn't filter correctly
Priority wishlist Status resolved
Milestone Resolved in
Superseder Nosy List Serware, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, twb
Assigned To
Topics BugTracker

Created on 2008-11-20.02:47:15 by twb, last changed 2009-10-23.23:31:07 by admin.

Messages
msg6705 (view) Author: twb Date: 2008-11-20.02:47:12
Consider the following two URLs:

    http://bugs.darcs.net/issue?&@columns=id,title&assignedto=twb&@action=search
    http://bugs.darcs.net/issue?&@columns=id,title&assignedto=twb&@action=export_csv

The former works, it only lists tickets assigned to me.  The latter
doesn't, it lists *every* ticket!

This also occurs with status:

    http://bugs.darcs.net/issue?&@columns=status&status=1&@action=search
    http://bugs.darcs.net/issue?&@columns=status&status=1&@action=export_csv

It doesn't affect @search_text for some reason:

    http://bugs.darcs.net/issue?&@columns=status,id,title&@search_text=ISO 8601&@action=search
    http://bugs.darcs.net/issue?&@columns=status,id,title&@search_text=ISO 8601&@action=export_csv
msg6706 (view) Author: twb Date: 2008-11-20.03:34:06
like I need to set @filter to a comma-separated list of all the fields
I'm filtering on...

For example:

curl "http://bugs.darcs.net/issue?$(printf \&%s @columns=status,creator,id,title status=resolved creator=twb @filter=creator,status @action=export_csv)"

I guess this just means my script has to be smarter :-(
msg6707 (view) Author: twb Date: 2008-11-20.03:37:24
PS: I still have to work out how to make the CSV emit words for
enumerated fields likes status instead of unintelligible digits.

For example, instead of

    status,assignedto,creator,id,title
    8,None,391,1058,Wish for bottom-posting on issue pages
    8,None,391,1080,"Link to patch: Fix hang after a user input error (for example, EOF)."

have

    status,assignedto,creator,id,title
    resolved,nobody,twb,1058,Wish for bottom-posting on issue pages
    resolved,nobody,twb,1080,"Link to patch: Fix hang after a user input error (for example, EOF)."
History
Date User Action Args
2008-11-20 02:47:15twbcreate
2008-11-20 03:34:08twbsetstatus: unread -> unknown
nosy: kowey, dagit, simon, twb, thorkilnaur, dmitry.kurochkin
messages: + msg6706
2008-11-20 03:37:26twbsetnosy: kowey, dagit, simon, twb, thorkilnaur, dmitry.kurochkin
messages: + msg6707
2008-12-19 09:49:36koweysetpriority: wishlist
nosy: + Serware
topic: + BugTracker
2009-05-30 05:37:19twbsetstatus: unknown -> resolved
nosy: kowey, dagit, simon, twb, thorkilnaur, dmitry.kurochkin, Serware
2009-08-10 23:51:56adminsetnosy: - dagit
2009-08-25 17:34:48adminsetnosy: + darcs-devel, - simon
2009-08-27 14:20:27adminsetnosy: kowey, darcs-devel, twb, thorkilnaur, dmitry.kurochkin, Serware
2009-10-23 22:45:35adminsetnosy: + serware, - Serware
2009-10-23 23:31:07adminsetnosy: + Serware, - serware