Merge lp:~brunogirin/ubuntu-community-accomplishments/first-bug-confirmed into lp:~ubuntu-community-accomplishments-reviewers/ubuntu-community-accomplishments/0.1

Proposed by Bruno Girin
Status: Merged
Merged at revision: 32
Proposed branch: lp:~brunogirin/ubuntu-community-accomplishments/first-bug-confirmed
Merge into: lp:~ubuntu-community-accomplishments-reviewers/ubuntu-community-accomplishments/0.1
Diff against target: 66 lines (+57/-0)
2 files modified
accomplishments/ubuntu-community/first-bug-confirmed.accomplishment (+15/-0)
scripts/ubuntu-community/first-bug-confirmed.py (+42/-0)
To merge this branch: bzr merge lp:~brunogirin/ubuntu-community-accomplishments/first-bug-confirmed
Reviewer Review Type Date Requested Status
Jono Bacon Approve
Review via email: mp+95572@code.launchpad.net

Description of the change

Added an accomplishement for users who have filed bugs that were subsequently confirmed. This is a simple derivation of the first-bug accomplishment.

To post a comment you must log in.
Revision history for this message
Jono Bacon (jonobacon) wrote :

Thanks, Bruno. This is the very first Merge Proposal for Ubuntu Community Accomplishments!

I just checked it and it looks great, so I am merging it right now. One thing I would like to ask is if you could expand the .accomplishment file and provide more guidance around what Confirmed means and what constitutes a great bug report. Could you add this?

review: Approve
Revision history for this message
Bruno Girin (brunogirin) wrote :

Jono,

That's no problem, I'm happy to add more guidance. One question though: as I'll need to make the summary section multi-line, how flexible can the text in that section be? Can I include any HTML markup or is it restricted?

Revision history for this message
Jono Bacon (jonobacon) wrote :

Bruno, right now summary does not support multi-line, but I am adding support for that, so go ahead and feel free to make it multiline (start each line with a tab).

Also, you may notice that if you run your new accomplishment you have not got the trophy yet - this is fine - the validation server is currently down but this will be validated when I get things back online again (just re-installing the server).

Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'accomplishments/ubuntu-community/first-bug-confirmed.accomplishment'
2--- accomplishments/ubuntu-community/first-bug-confirmed.accomplishment 1970-01-01 00:00:00 +0000
3+++ accomplishments/ubuntu-community/first-bug-confirmed.accomplishment 2012-03-02 14:19:20 +0000
4@@ -0,0 +1,15 @@
5+[accomplishment]
6+title=Filed Bug that was Confirmed
7+description=Filed a bug in Ubuntu that was confirmed by someone else
8+application=ubuntu-community
9+category=QA
10+icon=default.png
11+depends=ubuntu-community/first-bug
12+needs-signing=true
13+needs-information=launchpad-email
14+summary = A bug is a defect in a piece of software. Filing bugs is a great way to help improve Ubuntu and in order for the bug to be fixed, someone else needs to be able to reproduce and confirm it. The more detailed and precise your bug report is, the most likely it is that it can be reproduced by someone else. This achievement reflects that at least one of your bug reports was of good quality and was confirmed by someone else.
15+steps: File a bug as you would normally (see the Filed First Bug accomplishments for more details) and ensure that the description is detailed enough to enable others to reproduce it.
16+links: http://www.ubuntu.com
17+ https://help.ubuntu.com/community/ReportingBugs
18+ http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
19+help = #ubuntu-testing on Freenode
20
21=== added file 'scripts/ubuntu-community/first-bug-confirmed.py'
22--- scripts/ubuntu-community/first-bug-confirmed.py 1970-01-01 00:00:00 +0000
23+++ scripts/ubuntu-community/first-bug-confirmed.py 2012-03-02 14:19:20 +0000
24@@ -0,0 +1,42 @@
25+#!/usr/bin/python
26+
27+import traceback, sys
28+import libaccomplishments
29+
30+try:
31+ import json, sys, os, pwd, subprocess
32+ from ubuntuone.couch import auth
33+ from launchpadlib.launchpad import Launchpad
34+
35+ libaccom = libaccomplishments.Accomplishments()
36+
37+ f = libaccom.getExtraInformation("ubuntu-community", "launchpad-email")
38+
39+ if bool(f[0]["launchpad-email"]) == False:
40+ sys.exit(4)
41+ else:
42+ email = f[0]["launchpad-email"]
43+
44+ # Get count of bugs reported by user from Launchpad, using email to identify
45+ l=Launchpad.login_anonymously('ubuntu-community accomplishments','production')
46+ me=l.people.getByEmail(email=email)
47+
48+ if me == None:
49+ sys.exit(1)
50+ else:
51+ ubuntu=l.projects['ubuntu']
52+ bugs_reported = ubuntu.searchTasks(bug_reporter=me,
53+ status=['Confirmed', 'Triaged',
54+ 'In Progress', 'Fix Committed', 'Fix Released'])
55+
56+ if len(bugs_reported) > 0:
57+ sys.exit(0)
58+ else:
59+ sys.exit(1)
60+
61+except SystemExit, e:
62+ sys.exit(e.code)
63+except:
64+ traceback.print_exc()
65+ sys.exit(2)
66+

Subscribers

People subscribed via source and target branches

to all changes: