Roundup Tracker - Issues

Message6334

Author tekberg
Recipients anrounham14, ber, rouilj, tekberg
Date 2019-02-08.15:16:44
Message-id <DM6PR08MB47784D06F3CD4D4E23026922CA690@DM6PR08MB4778.namprd08.prod.outlook.com>
In-reply-to <20190208002137.278874C0AD7@itserver6.localdomain>
John,

Works great with your code that I applied to actions.py. All show '[hidden]' for the email and role except my email and role which are visible.

[cid:a1b9f468-232c-48c2-a83d-4e5bbe07cc22]

________________________________
From: issues=roundup-tracker.org@roundup.psfhosted.org <issues=roundup-tracker.org@roundup.psfhosted.org> on behalf of John Rouillard <issues@roundup-tracker.org>
Sent: Thursday, February 7, 2019 4:21 PM
To: Tom Ekberg
Subject: [issue2550833] Enhancing the functionality of the CSV export function 'export_csv_names'

John Rouillard added the comment:

Hi Tom:

In message <DM6PR08MB477820F4B1E8B8B6530A7EE4CA680@DM6PR08MB4778.namprd08.prod.
outlook.com>,
Tom Ekberg writes:
>
>Tom Ekberg added the comment:
>I see how to display a list of users by clicking on 'Class List' and
>selecting the user object. The only page that has an export_csv
>action is index.index.html. I suppose I could add it to the
>user.index.html page and experiment with that.

Just edit the url. E.G. my base directory is:

  https://rouilj.dynamic-dns.net/demo

when displaying csv for issues, I get:

  /issue?@action=export_csv&@columns=id,activity,...[filter items removed]

so to dump users, I append:

  /user?@action=export_csv&@columns=username,address,roles,realname,phone,

and get:

  "username","address","roles","realname","phone"
  "admin","[hidden]","[hidden]","The Admin","603-555-4423"
  "anonymous","[hidden]","[hidden]","A. Nonymous","555-555-5555"
  "demo","demo@example.com","User","De Mo","231-555-5544"
  "agent","[hidden]","[hidden]","James Bond","041-555-2345"
  "provisional","[hidden]","[hidden]","Eye Cansee","321-555-5445

without the patch, the "demo" line is:

  "demo","[hidden]","[hidden]","De Mo","231-555-5544"

since I was unable to see the address and roles for the admin user
which bleeds through to the demo user.

One thing I have been thinking about is adding support for a

   @showid=username,other_field

url parameter. The intent is to allow the userid (or other property)
to be displayed as the userid can be reused to create rest and other
url's.

Setting @showid=all would disable all ID -> name mappings similar to
the current export_csv code. Not sure when I will try implementing it,
or how useful it is given rest support but...

_________________________________________________
Roundup tracker <issues@roundup-tracker.org>
<https://issues.roundup-tracker.org/issue2550833>
_________________________________________________
Files
File name Uploaded
Outlook-x2r23z3u.jpg tekberg, 2019-02-08.15:16:44
unnamed tekberg, 2019-02-08.15:16:44
History
Date User Action Args
2019-02-08 15:16:44tekbergsetrecipients: + tekberg, ber, rouilj, anrounham14
2019-02-08 15:16:44tekberglinkissue2550833 messages
2019-02-08 15:16:44tekbergcreate