Patch tagging/classification

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Mar 23 02:13:46 AEDT 2016


Hello,

On Tue, 22 Mar 2016 15:09:23 +0000, Finucane, Stephen wrote:

> Actually, I stand corrected. Doing the above would require the 'Label'
> model having a many-to-many relationship with both a 'Project' and a
> 'Patch'. There doesn't seem to be any way to enforce this at the ORM
> level, and it would require an an external library like
> 'django-smart-selects' (or duplicating that library ourselves) for
> stuff like Django Admin. It seems all labels are going to have to be
> available across the entire instance.

Shouldn't labels simply be free form strings, with no attempt to
normalize them other than by social convention?

What is important to have IMO:

 1/ An easy way to set labels on patches, both by the web-interface,
    and potentially using some magic markers in the patches (custom
    header? label:<value> between [...] ? something else)

 2/ An easy way to filter patches by label (i.e only see patches with
    this label, or without that label)

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the Patchwork mailing list