Merge lp:~mhall119/ubuntu-community-accomplishments/approved-loco-team into lp:ubuntu-community-accomplishments

Proposed by Michael Hall on 2012-06-01
Status: Rejected
Rejected by: Jono Bacon on 2012-07-06
Proposed branch: lp:~mhall119/ubuntu-community-accomplishments/approved-loco-team
Merge into: lp:ubuntu-community-accomplishments
Diff against target: 96 lines (+59/-1)
5 files modified
CATEGORIES (+1/-0)
accomplishments/ubuntu-community/en/advocacy/member-approved-loco-team.accomplishment (+17/-0)
accomplishments/ubuntu-community/en/advocacy/member-loco-team.accomplishment (+1/-1)
scripts/ubuntu-community/advocacy/member-approved-loco-team.py (+35/-0)
tests/ubuntu-community/advocacy/member-approved-loco-team (+5/-0)
To merge this branch: bzr merge lp:~mhall119/ubuntu-community-accomplishments/approved-loco-team
Reviewer Review Type Date Requested Status
Jono Bacon 2012-06-08 Disapprove on 2012-07-06
Rafał Cieślak 2012-06-01 Needs Information on 2012-06-08
Review via email: mp+108424@code.launchpad.net

Commit Message

Add accomplishment for being a member of an approved loco team

Description of the Change

Add accomplishment for being a member of an approved loco team

** NEEDS SUMMARY AND STEPS ADDED **

To post a comment you must log in.
146. By Michael Hall on 2012-06-01

Merge from trunk

Rafał Cieślak (rafalcieslak256) wrote :

Thanks for the MP, Michael!
There are two problems I see about this submission:
 * Fields 'summary' and 'steps' are left empty. I doubt this is intentional, as then there is almost no information about the accomplishment, so I guess you simply forgot to fill them in. Could you please fix that?
 * I wonder if we really want separate accomplishments for 'Be a member of a loco team' and 'Be a member of an approved loco team'. There are mainly two cases: a) the user will get them both at once, if his team is already registered, and b) the user will get just one of them, if his team is not registered. In both there is only one element for rewarding him for his activity, that is joining a LoCo. The fact of whether his loco is registered or not is not much an average can do about when he joins the team. This said, the only thing worth rewarding in that matter would be 'Get your LoCo to be approved', but that's a different story. I have requested a review directly from Jono, maybe he can help recognize if such accomplishment makes sense.

review: Needs Information
Michael Hall (mhall119) wrote :

The 'summary' and 'steps' fields were left empty because Jono was going to fill them in.

This accomplishment is for approved teams, not registered teams. Approved teams are existing teams that have shown a consistent level of activity and commitment to Ubuntu, they must apply for Approved status with the LoCo Council, and once approved they receive some support from Canonical (free CDs for example). More about team approval here: http://loco.ubuntu.com/loco-council/approved

Rafał Cieślak (rafalcieslak256) wrote :

Right. I am pretty much aware of what approved teams are, but my point
is that one does not choose the LoCo they belong to, so rewarding a
particular user for belonging to an approved team may get unfair.

 * I lives in Poland, and the Polish LoCo is not approved (and there
are no chances it will). That means I will get the "Be a Member of a
LoCo Team" accomplishment, but not "Be a Member of a Approved LoCo
Team"
 * User X lives in UK. It happens that UK LoCo is approved, thus he
means he gets both trophies, "Be a Member of a LoCo Team" and "Be a
Member of a Approved LoCo Team", so he is rewarded twice.
Keeping in mind that accomplishments are meant to reward users for
their activity in the community, I fail to see what user X did what I
have not done (or what he did better then I did), that was worth
rewarding by that second trophy he got (and I did not).

Jono Bacon (jonobacon) wrote :

I tend to agree with Rafal here, I don't think we need to distinguish between an approved and non-approved team, and we already have a LoCo Team member accom.

review: Disapprove

Unmerged revisions

146. By Michael Hall on 2012-06-01

Merge from trunk

145. By Michael Hall on 2012-06-01

Add LoCo Teams:Membership to the CATEGORIES file

144. By Michael Hall on 2012-06-01

Add sub-category for LoCo Teams:Membership

143. By Michael Hall on 2012-06-01

Add accomplishment for being a member of an approved loco team

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CATEGORIES'
2--- CATEGORIES 2012-06-01 20:08:57 +0000
3+++ CATEGORIES 2012-06-01 22:12:22 +0000
4@@ -15,6 +15,7 @@
5 Your Profile
6 Code Hosting
7 LoCo Teams
8+ Membership
9 Events
10 QA
11 Forums
12
13=== added file 'accomplishments/ubuntu-community/en/advocacy/member-approved-loco-team.accomplishment'
14--- accomplishments/ubuntu-community/en/advocacy/member-approved-loco-team.accomplishment 1970-01-01 00:00:00 +0000
15+++ accomplishments/ubuntu-community/en/advocacy/member-approved-loco-team.accomplishment 2012-06-01 22:12:22 +0000
16@@ -0,0 +1,17 @@
17+[accomplishment]
18+title=Approved LoCo Team Member
19+description=You are a member of an Approved Ubuntu LoCo Team
20+collection=ubuntu-community
21+category=LoCo Teams:Membership
22+needs-signing=true
23+icon=loco.png
24+depends=ubuntu-community/member-loco-team
25+needs-information=launchpad-email
26+summary =
27+steps:
28+links: http://loco.ubuntu.com/loco-council/approved
29+ https://wiki.ubuntu.com/LoCoGettingApproved
30+ https://wiki.ubuntu.com/LoCoFAQ
31+help = #ubuntu-locoteams on Freenode
32+ #ubuntu-community-team on Freenode
33+author = Michael Hall <mhall119@ubuntu.com>
34
35=== modified file 'accomplishments/ubuntu-community/en/advocacy/member-loco-team.accomplishment'
36--- accomplishments/ubuntu-community/en/advocacy/member-loco-team.accomplishment 2012-05-24 21:28:36 +0000
37+++ accomplishments/ubuntu-community/en/advocacy/member-loco-team.accomplishment 2012-06-01 22:12:22 +0000
38@@ -2,7 +2,7 @@
39 title=LoCo Team Member
40 description=You are a member of an Ubuntu LoCo Team
41 collection=ubuntu-community
42-category=LoCo Teams
43+category=LoCo Teams:Membership
44 needs-signing=true
45 icon=loco.png
46 depends=ubuntu-community/registered-on-launchpad
47
48=== added file 'scripts/ubuntu-community/advocacy/member-approved-loco-team.py'
49--- scripts/ubuntu-community/advocacy/member-approved-loco-team.py 1970-01-01 00:00:00 +0000
50+++ scripts/ubuntu-community/advocacy/member-approved-loco-team.py 2012-06-01 22:12:22 +0000
51@@ -0,0 +1,35 @@
52+#!/usr/bin/python
53+import traceback, sys
54+
55+from accomplishments.daemon import dbusapi
56+from launchpadlib.launchpad import Launchpad
57+
58+try:
59+ api = dbusapi.Accomplishments()
60+ f = api.get_extra_information("ubuntu-community", "launchpad-email")
61+ if bool(f[0]["launchpad-email"]) == False:
62+ sys.exit(2)
63+ else:
64+ email = f[0]["launchpad-email"]
65+ lp = Launchpad.login_anonymously(
66+ 'ubuntu-community accomplishments', 'production')
67+ me = lp.people.getByEmail(email=email)
68+ if me == None:
69+ sys.exit(1)
70+ else:
71+ user = me.name
72+ final = []
73+ for team in me.super_teams:
74+ for sup in team.super_teams:
75+ if "locoteams-approved" in sup.self_link.rsplit('~', 1)[-1]:
76+ final.append(sup)
77+ if len(final) is not 0:
78+ sys.exit(0)
79+ else:
80+ sys.exit(1)
81+
82+except SystemExit, e:
83+ sys.exit(e.code)
84+except:
85+ traceback.print_exc()
86+ sys.exit(2)
87
88=== added file 'tests/ubuntu-community/advocacy/member-approved-loco-team'
89--- tests/ubuntu-community/advocacy/member-approved-loco-team 1970-01-01 00:00:00 +0000
90+++ tests/ubuntu-community/advocacy/member-approved-loco-team 2012-06-01 22:12:22 +0000
91@@ -0,0 +1,5 @@
92+[success]
93+launchpad-email = mhall119@gmail.com
94+
95+[failure]
96+launchpad-email = fail@fail.com

Subscribers

People subscribed via source and target branches

to all changes: