Roundup Tracker - Issues

Message8576

Author wilsj
Recipients rouilj, wilsj
Date 2026-11-09.13:24:22
Message-id <1794230662.96.0.299271698026.issue2551363@roundup-tracker.org>
In-reply-to
Hi,

We've integrated the Jinja2 version as a pipeline board for our opportunity
class, and it works great. We'll definitely keep using it. Screenshot from our
instance attached (the styling is just CSS on top of your markup).

A few things we ran into:

1. get_closed_columns() uses @functools.cache keyed on the request form. Every
   request has a new form object, so the cache only grows. It also needs Python
   3.9, and we're on 3.6 (RHEL8). I opted to use @functools.lru_cache(maxsize=8)
   instead.
   
2. column_names() does db.getclass(column_prop), which assumes the property is
   named after the class it links to. Our opportunity.stage links to oppstage,
   so it fails with a KeyError. We changed it to:

    column_class = db.getclass(db.getclass(request.classname).properties[column_prop].classname)
    
3. Card links and data-path are hard-coded to issue. We renamed the template to
   _generic.kanban.html and use {{ request.classname }}, so it works for any
   class.

We also added a "List" link to each column header that opens the index filtered
on that column's value. Our board only shows open opportunities, with won/lost
collapsed as drop targets, so that's how we get to the closed ones. It turned
out to be really handy. It might be worth having in the template:

<a class="list_link"
   href="{{ request.indexargs_url(request.classname, {
   '@filter': (request.filter + [column_prop])|unique|join(','),
   column_prop: col_name or '-1',
   '@columns': None, '@group': None,
   '@pagesize': None, '@startwith': None,
   '@dispname': col_name or None,
   }) }}">List</a>

We'll continue playing around with this and more suggestions and findings might
pop up along the way. Once again, thanks!
History
Date User Action Args
2026-11-09 13:24:22wilsjsetmessageid: <1794230662.96.0.299271698026.issue2551363@roundup-tracker.org>
2026-11-09 13:24:22wilsjsetrecipients: + wilsj, rouilj
2026-11-09 13:24:22wilsjlinkissue2551363 messages
2026-11-09 13:24:22wilsjcreate