martha / pagure

Forked from pagure 7 years ago
Clone

2c97818 Issue 1544 - RFE - Add colored tags

14 files Authored by mreynolds 7 years ago, Committed by pingou 7 years ago,
    Issue 1544 - RFE - Add colored tags
    
        I only extended the base Tag
        object to include color, projectID, and a unique id.  Then I removed the
        dependency of the issue from the tag for working in the ui.   Otherwise
        tags were only visible if an issue contained that tag.  This also meant
        you could not add, edit, or remove a tag unless you had already added
        one to an issue.  So in my patch it updated the setting.html page to
        show all tags (whether or not they existed in an issue).  You can add,
        edit and delete them.  They also automatically update all the issues in
        that project with the color/name change.  This is also reflected in both
        issues.html & issue.html.
    
        I also added a unique identifier to each tag(tag_id) - this allows every
        project to use the same name with its own unique color.  There are no
        conflicts since the primary key is now the unique identifier(tag_id)
        instead of the tag name(tag).
    
        This patch enforces that tags are only created from the settings page.
    
        This patch is missing the complete alembic migration script.
    
        
file modified
+4 -0
file modified
+13 -2
file modified
+101 -52
file modified
+23 -4
file modified
+35 -19
file modified
+2 -2
file modified
+3 -3
file modified
+80 -4
file modified
+1 -0
file modified
+18 -11