Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 387295

Summary: Add bugzilla note for maintainer-needed and maintainer-wanted packages
Product: Gentoo Infrastructure Reporter: Markos Chandras (RETIRED) <hwoarang>
Component: BugzillaAssignee: Bugzilla Admins <bugzilla>
Status: RESOLVED WORKSFORME    
Severity: enhancement CC: alex_y_xu, pacho, proxy-maint, sunrise, vapier
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://archives.gentoo.org/gentoo-dev/msg_8b4763275c939252c672bba9325886a5.xml
See Also: https://bugs.gentoo.org/show_bug.cgi?id=553662
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gentoo-bugzilla-maintainer-notes.patch

Description Markos Chandras (RETIRED) gentoo-dev 2011-10-16 14:27:55 UTC
Hi,

As tove pointed to $URL, can we please have a bugzilla note ( like the one for security bugs) about maintainer-wanted ( maybe a short message poking user to look at sunrise project ) or maintainer-needed ( same but for proxy-maint project). That would be really useful and we can finally stop posting the same comment over and over

Thanks
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-10-18 17:28:05 UTC
The mechanism used for security bugs cannot be applied here. It's a pure CSS implementation that uses CSS classes set by bugzie for product and component as a trigger to display the message. There is no such thing for the assignee or CC list.
So implementing this might take some time.

At any rate, please clarify
a) when exactly to show a message (maintainer-wanted as assignee, or in cc?)
b) what text to use (HTML snippet)
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-10-19 19:33:23 UTC
I understand the problem. 

Ok for maintainer-wanted we would like something like this 

"The sunrise team can help you write and commit an ebuild for this package to sunrise overlay"

for maintainer-needed we want something like this 

"This package has no maintainer. Contact proxy-maint@gentoo.org if you would like to proxy maintain it."

The maintainer-{needed,wanted} have to be the assignee of the bug
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-14 19:40:04 UTC
Ping, would definitely be nice to have; implementation shouldn't be too hard, basically where the current check for the security product / component is done you can easily add another check that checks the assignee.
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2013-07-14 19:46:12 UTC
(In reply to Tom Wijsman (TomWij) from comment #3)
> Ping, would definitely be nice to have; implementation shouldn't be too
> hard, basically where the current check for the security product / component
> is done you can easily add another check that checks the assignee.

See #c1 on why it's not that easy.
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-14 20:43:23 UTC
(In reply to Alex Legler from comment #4)
> (In reply to Tom Wijsman (TomWij) from comment #3)
> > Ping, would definitely be nice to have; implementation shouldn't be too
> > hard, basically where the current check for the security product / component
> > is done you can easily add another check that checks the assignee.
> 
> See #c1 on why it's not that easy.

The code is in place for security, you don't need to write anything from scratch and just add similar code for m-w and m-n; I've already read your comment, and in my response I intent to refer to the code that adds those classes the CSS magic you use is based on.
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2013-07-22 19:01:22 UTC
Tom, that CSS magic uses Product "Gentoo Security" and is unusable in the case where we have to rely on CC or assignee fields.
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-22 19:52:57 UTC
(In reply to Peter Volkov from comment #6)
> Tom, that CSS magic uses Product "Gentoo Security" and is unusable in the
> case where we have to rely on CC or assignee fields.

Whether it needs to look at the product, assignee or CC does not matter.

Let's say I have:

> print 'class="'
> if bug.product == "Gentoo Security" then
>     print 'gentoo-security-warning'
> endif
> print '"'

How hard do you think this is to adapt to assignee or CC? Easy:

> print 'class="'
> if bug.assignee == "maintainer-needed@gentoo.org" or bug.assignee == "maintainer-wanted@gentoo.org" or bug.CC.contains("maintainer-needed@gentoo.org") or bug.CC.contains("maintainer-wanted@gentoo.org") then
>     print 'gentoo-maintainer-welcome'
> endif
> print '"'

I really don't see the problem; or why this would be unusable, it is not...

As shown, the same mechanism can be applied.
Comment 8 Alex Legler (RETIRED) archtester gentoo-dev Security 2013-07-22 19:56:32 UTC
(In reply to Tom Wijsman (TomWij) from comment #7)

You might want to rethink the tone in which you address people.
Also, patches are actually welcome.
Comment 9 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-22 20:05:47 UTC
(In reply to Alex Legler from comment #8)
> Also, patches are actually welcome.

Happy to help, which sources do I need to write a patch against?
Comment 10 Alex Legler (RETIRED) archtester gentoo-dev Security 2013-07-23 09:29:40 UTC
(In reply to Tom Wijsman (TomWij) from comment #9)
> (In reply to Alex Legler from comment #8)
> > Also, patches are actually welcome.
> 
> Happy to help, which sources do I need to write a patch against?

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bugzilla.git;a=summary
Comment 11 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-23 10:49:42 UTC
Created attachment 354012 [details, diff]
gentoo-bugzilla-maintainer-notes.patch

See attached patch, this adds a class to the body and then we apply the same CSS.

This can in the future be extended by adding another ELSIF branch and CSS rule.

Tested and works, applies with -p1 against all branches of gentoo-bugzilla.
Comment 12 Sergey Popov (RETIRED) gentoo-dev 2014-02-02 18:51:52 UTC
*** Bug 500054 has been marked as a duplicate of this bug. ***
Comment 13 Pacho Ramos gentoo-dev 2014-02-02 19:02:07 UTC
Didn't notice this was already reported :S

Could Tom's patch be considered? :)

Thanks!
Comment 14 SpanKY gentoo-dev 2015-05-27 08:16:29 UTC
rather than hardcode specific addresses in the show-header.html.tmpl, does the templating logic allow for globs/regexes ?  i.e. what if patched login to .*@gentoo.org$, and set the note to the e-mail address before the @gentoo.org ?

we could adopt the current security warning too so it'd apply whenever it's assigned to security@g.o in addition to the Security product.
Comment 15 Alex Xu (Hello71) 2016-12-31 13:19:58 UTC
It is my understanding that this is already implemented for maintainer-needed by the hackaround solution of setting the user's realname, and that sunrise is now officially dead.