Launchpad Tips & Tricks: Greasemonkey helper scripts
Hi all,
Kees Cook wrote a couple tools to help make bug triaging easier, and for those of working in Launchpad these are highly recommended!
For those with greasemonkey already installed, just go to this link and click 'download' on the two .js files and enjoy.
http://codebrowse.launchpad.net/~ubuntu-dev/ubuntu-gm-scripts/ubuntu/files
For everyone else, please read on...
Bryce
Ubuntu Greasemonkey Scripts --============[o]============--
The ubuntu-gm-scripts project collects useful Firefox GreaseMonkey scripts that assist Launchpad bug triagers in working more effectively and efficiently.
Installation ============ GreaseMonkey is a Firefox extension for adding macro-like capabilities to do javascript-ish things on top of certain web pages. To install GreaseMonkey, follow these steps:
* Go to Firefox->Tools->AddOns * Click Get Extensions (or Get Ubuntu AddOns if on Ubuntu) * Select GreaseMonkey, and install * Restart Firefox
Then to install these scripts, run:
* firefox lp_karma_suffix.user.js * firefox lp_stockreplies.user.js
Or click on the scripts from your file browser.
For the latest updates to the scripts, go to the following link and click 'download' for each of them:
http://codebrowse.launchpad.net/~ubuntu-dev/ubuntu-gm-scripts/ubuntu/files
Launchpad Karma Suffix ====================== When triaging bugs, it helps to have some way to gauge the relative experience of the person reporting or commenting on a given bug. This tool helps by appending the person's karma score after their name.
As well, team membership can denote experience/involved-ness, so this tool also appends icons indicating for some teams that the person is in. This is helpful for flagging comments/flags from the bug triaging team, core developers, and so on.
As there are a LOT of teams in launchpad, most of which you may not care about, only a select number of teams are included by default. You can customize the list by editing the Javascript as follows:
* In Firefox go to Tools->Greasemonkey->Manage User Scripts * Select LP_Karma_Suffix * Click the Edit button at the bottom, and type in the name of your preferred text editor. E.g. "/usr/bin/gedit" or "C:\windows\notepad.exe" * Scroll down to the 'team_handler' function and find where the teams variable is defined, then add a line with your new team. For instance, to add the Inkscape Bug Team to your list, modify teams to look like this:
var teams = { 'inkscape.bugs':'', 'motu-swat':'', 'bugsquad':'', 'ubuntu-core-dev':'', 'ubuntu-dev':'', 'ubuntu-bugcontrol':'', 'ubuntumembers':'' };
* [Note that the team must have a 14x14 icon defined with it in order to see anything. This can be set by a team admin via the 'Change branding' link on the Launchpad team overview page.] * Save and exit the text editor, then go back to the Manage User Scripts dialog and click OK. * Reload some pages to see the icon. :-)
Launchpad Stock Replies ======================= When processing through a lot of bugs, often you wish to make essentially the same comment over and over again, such as, "Thanks for reporting this blah blah... Please attach foo.log, so we can..."
This script helps avoid a lot of retyping or manual cut-n-pastes by providing a way to store your own canned comments in Firefox itself. It then adds links for each of your canned comments right above the "Comment on this change" field, making it convenient to select a stock reply to send.
To add new stock replies, click the [+] link, which will bring up options to add or save stock replies.
Add New Stock Reply: name A tag id for the reply. (Avoid punctuation) comment Sets the comment field to this value status Sets the status dropdown to this text key assign Assigns the bug to this launchpad username importance Sets the importance dropdown to this text key package Sets the package field (if it is present) to this text
Save Stock Replies: After making additions or changes to any of the replies, click this to save the changes.
Also See ======== * Firefox Launchpad Plugin
Notepad is a really bad editor choice, and once I chose it in Greasemonkey there was no way to remove it or choose another editor (reinstalling scripts and GM didn't help), until I remembered about:config in Firefox. So if you didn't choose the editor yet - don't choose Notepad (I'm sure you've got a better one anyway), and if you did now you know how to fix it :)
Thanx for the scripts!
participants (2)
-
unknown@example.com
-
Bryce Harrington