Package: nm.debian.org
Severity: wishlist
Tags: patch

When I look at the mimechangelogs option it searches for my full name
"Edward John Betts". I don't use my middle name in bug reports or changelogs.
Searching without the middle name returns better results. Here is a patch.

---
 restricted/views.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/restricted/views.py b/restricted/views.py
index 0e638a9..e2ab31d 100644
--- a/restricted/views.py
+++ b/restricted/views.py
@@ -405,6 +405,9 @@ def minechangelogs(request, key=None):
                 person.fullname,
                 person.email,
             ]
+            if person.cn and person.mn and person.sn:
+                # some people don't use their middle names in changelogs
+                query.append("{} {}".format(person.cn, person.sn))
             if person.uid:
                 query.append(person.uid)
             form = MinechangelogsForm(initial=dict(query="\n".join(query)))
-- 
2.8.1

Reply via email to