When people electronically sign the individual CLA, just set
the bit. They don't need to be manually verified.
This commit is contained in:
@@ -100,15 +100,6 @@ def admin_users(request):
|
|||||||
accounts = models.Account.get_all_accounts()
|
accounts = models.Account.get_all_accounts()
|
||||||
return respond(request, 'admin_users.html', {'users': accounts})
|
return respond(request, 'admin_users.html', {'users': accounts})
|
||||||
|
|
||||||
@admin_required
|
|
||||||
def admin_users_verify_cla(request):
|
|
||||||
"""/admin/users - list of all users"""
|
|
||||||
accounts = models.Account.gql('WHERE welcomed=True '
|
|
||||||
+ 'AND individual_cla_version != 0'
|
|
||||||
+ 'AND cla_verified=False').fetch(1000)
|
|
||||||
return respond(request, 'admin_users.html', {'users': accounts})
|
|
||||||
|
|
||||||
|
|
||||||
def _get_groups_for_account(account):
|
def _get_groups_for_account(account):
|
||||||
return models.gql(models.AccountGroup,
|
return models.gql(models.AccountGroup,
|
||||||
'WHERE members = :1',
|
'WHERE members = :1',
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ class WelcomeForm3Individual(BaseForm):
|
|||||||
account = state['account']
|
account = state['account']
|
||||||
# NOTE: just using 1 for now, future versions can come later
|
# NOTE: just using 1 for now, future versions can come later
|
||||||
account.individual_cla_version = 1
|
account.individual_cla_version = 1
|
||||||
|
account.cla_verified = True
|
||||||
account.mailing_address = cd['mailing_address']
|
account.mailing_address = cd['mailing_address']
|
||||||
account.mailing_address_country = cd['mailing_address_country']
|
account.mailing_address_country = cd['mailing_address_country']
|
||||||
account.phone_number = cd['phone_number']
|
account.phone_number = cd['phone_number']
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ urlpatterns = patterns(
|
|||||||
(r'^admin/settings/from_email$', 'views.admin_settings_from_email'),
|
(r'^admin/settings/from_email$', 'views.admin_settings_from_email'),
|
||||||
(r'^admin/settings/from_email_test$', 'views.admin_settings_from_email_test'),
|
(r'^admin/settings/from_email_test$', 'views.admin_settings_from_email_test'),
|
||||||
(r'^admin/users$', 'people.admin_users'),
|
(r'^admin/users$', 'people.admin_users'),
|
||||||
(r'^admin/users/verify_cla$', 'people.admin_users_verify_cla'),
|
|
||||||
(r'^admin/people_info$', 'people.admin_people_info'),
|
(r'^admin/people_info$', 'people.admin_people_info'),
|
||||||
(r'^admin/user/(.+)$', 'people.admin_user'),
|
(r'^admin/user/(.+)$', 'people.admin_user'),
|
||||||
(r'^admin/groups$', 'people.admin_groups'),
|
(r'^admin/groups$', 'people.admin_groups'),
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ indexes:
|
|||||||
# automatically uploaded to the admin console when you next deploy
|
# automatically uploaded to the admin console when you next deploy
|
||||||
# your application using appcfg.py.
|
# your application using appcfg.py.
|
||||||
|
|
||||||
# Used 2 times in query history.
|
# Used 4 times in query history.
|
||||||
- kind: Account
|
- kind: Account
|
||||||
properties:
|
properties:
|
||||||
- name: cla_verified
|
- name: cla_verified
|
||||||
@@ -24,19 +24,19 @@ indexes:
|
|||||||
- name: cla_verified
|
- name: cla_verified
|
||||||
- name: individual_cla_version
|
- name: individual_cla_version
|
||||||
|
|
||||||
# Used 826 times in query history.
|
# Used 504 times in query history.
|
||||||
- kind: Branch
|
- kind: Branch
|
||||||
properties:
|
properties:
|
||||||
- name: status
|
- name: status
|
||||||
- name: merge_submitted
|
- name: merge_submitted
|
||||||
|
|
||||||
# Used 22 times in query history.
|
# Used 18 times in query history.
|
||||||
- kind: BuildAttempt
|
- kind: BuildAttempt
|
||||||
properties:
|
properties:
|
||||||
- name: success
|
- name: success
|
||||||
- name: started
|
- name: started
|
||||||
|
|
||||||
# Used 42 times in query history.
|
# Used 2 times in query history.
|
||||||
- kind: Change
|
- kind: Change
|
||||||
properties:
|
properties:
|
||||||
- name: claimed
|
- name: claimed
|
||||||
@@ -46,49 +46,6 @@ indexes:
|
|||||||
direction: desc
|
direction: desc
|
||||||
|
|
||||||
# Used 9 times in query history.
|
# Used 9 times in query history.
|
||||||
- kind: Change
|
|
||||||
properties:
|
|
||||||
- name: closed
|
|
||||||
- name: modified
|
|
||||||
direction: desc
|
|
||||||
|
|
||||||
# Used 108 times in query history.
|
|
||||||
- kind: Change
|
|
||||||
properties:
|
|
||||||
- name: closed
|
|
||||||
- name: owner
|
|
||||||
- name: modified
|
|
||||||
direction: desc
|
|
||||||
|
|
||||||
# Used 54 times in query history.
|
|
||||||
- kind: Change
|
|
||||||
properties:
|
|
||||||
- name: closed
|
|
||||||
- name: reviewers
|
|
||||||
- name: modified
|
|
||||||
direction: desc
|
|
||||||
|
|
||||||
# Unused in query history -- copied from input.
|
|
||||||
- kind: Change
|
|
||||||
properties:
|
|
||||||
- name: modified
|
|
||||||
direction: desc
|
|
||||||
|
|
||||||
# Unused in query history -- copied from input.
|
|
||||||
- kind: Change
|
|
||||||
properties:
|
|
||||||
- name: owner
|
|
||||||
- name: modified
|
|
||||||
direction: desc
|
|
||||||
|
|
||||||
# Unused in query history -- copied from input.
|
|
||||||
- kind: Change
|
|
||||||
properties:
|
|
||||||
- name: reviewers
|
|
||||||
- name: modified
|
|
||||||
direction: desc
|
|
||||||
|
|
||||||
# Unused in query history -- copied from input.
|
|
||||||
- kind: Change
|
- kind: Change
|
||||||
properties:
|
properties:
|
||||||
- name: claimed
|
- name: claimed
|
||||||
@@ -98,7 +55,50 @@ indexes:
|
|||||||
- name: modified
|
- name: modified
|
||||||
direction: desc
|
direction: desc
|
||||||
|
|
||||||
# Used 8 times in query history.
|
# Used 3 times in query history.
|
||||||
|
- kind: Change
|
||||||
|
properties:
|
||||||
|
- name: closed
|
||||||
|
- name: modified
|
||||||
|
direction: desc
|
||||||
|
|
||||||
|
# Used 38 times in query history.
|
||||||
|
- kind: Change
|
||||||
|
properties:
|
||||||
|
- name: closed
|
||||||
|
- name: owner
|
||||||
|
- name: modified
|
||||||
|
direction: desc
|
||||||
|
|
||||||
|
# Used 19 times in query history.
|
||||||
|
- kind: Change
|
||||||
|
properties:
|
||||||
|
- name: closed
|
||||||
|
- name: reviewers
|
||||||
|
- name: modified
|
||||||
|
direction: desc
|
||||||
|
|
||||||
|
# Unused in query history -- copied from input.
|
||||||
|
- kind: Change
|
||||||
|
properties:
|
||||||
|
- name: modified
|
||||||
|
direction: desc
|
||||||
|
|
||||||
|
# Unused in query history -- copied from input.
|
||||||
|
- kind: Change
|
||||||
|
properties:
|
||||||
|
- name: owner
|
||||||
|
- name: modified
|
||||||
|
direction: desc
|
||||||
|
|
||||||
|
# Unused in query history -- copied from input.
|
||||||
|
- kind: Change
|
||||||
|
properties:
|
||||||
|
- name: reviewers
|
||||||
|
- name: modified
|
||||||
|
direction: desc
|
||||||
|
|
||||||
|
# Unused in query history -- copied from input.
|
||||||
- kind: Comment
|
- kind: Comment
|
||||||
properties:
|
properties:
|
||||||
- name: left
|
- name: left
|
||||||
@@ -113,7 +113,7 @@ indexes:
|
|||||||
- name: patch
|
- name: patch
|
||||||
- name: date
|
- name: date
|
||||||
|
|
||||||
# Used 13 times in query history.
|
# Unused in query history -- copied from input.
|
||||||
- kind: Comment
|
- kind: Comment
|
||||||
properties:
|
properties:
|
||||||
- name: patch
|
- name: patch
|
||||||
@@ -130,7 +130,7 @@ indexes:
|
|||||||
- name: author
|
- name: author
|
||||||
- name: draft
|
- name: draft
|
||||||
|
|
||||||
# Used 99 times in query history.
|
# Used once in query history.
|
||||||
- kind: Message
|
- kind: Message
|
||||||
properties:
|
properties:
|
||||||
- name: change
|
- name: change
|
||||||
@@ -140,7 +140,7 @@ indexes:
|
|||||||
- kind: Message
|
- kind: Message
|
||||||
ancestor: yes
|
ancestor: yes
|
||||||
|
|
||||||
# Used 132 times in query history.
|
# Used once in query history.
|
||||||
- kind: Patch
|
- kind: Patch
|
||||||
properties:
|
properties:
|
||||||
- name: patchset
|
- name: patchset
|
||||||
@@ -150,7 +150,7 @@ indexes:
|
|||||||
- kind: Patch
|
- kind: Patch
|
||||||
ancestor: yes
|
ancestor: yes
|
||||||
|
|
||||||
# Used 361 times in query history.
|
# Used once in query history.
|
||||||
- kind: PatchSet
|
- kind: PatchSet
|
||||||
properties:
|
properties:
|
||||||
- name: change
|
- name: change
|
||||||
@@ -171,16 +171,16 @@ indexes:
|
|||||||
- name: created
|
- name: created
|
||||||
direction: desc
|
direction: desc
|
||||||
|
|
||||||
# Used 900 times in query history.
|
# Used 557 times in query history.
|
||||||
- kind: ReceivedBundle
|
- kind: ReceivedBundle
|
||||||
properties:
|
properties:
|
||||||
- name: state
|
- name: state
|
||||||
- name: created
|
- name: created
|
||||||
|
|
||||||
# Used 14 times in query history.
|
# Used once in query history.
|
||||||
- kind: ReceivedBundleSegment
|
- kind: ReceivedBundleSegment
|
||||||
ancestor: yes
|
ancestor: yes
|
||||||
|
|
||||||
# Used 113 times in query history.
|
# Used once in query history.
|
||||||
- kind: ReviewStatus
|
- kind: ReviewStatus
|
||||||
ancestor: yes
|
ancestor: yes
|
||||||
|
|||||||
@@ -2,10 +2,6 @@
|
|||||||
{%block title1%}Users{%endblock%}
|
{%block title1%}Users{%endblock%}
|
||||||
{%block body%}
|
{%block body%}
|
||||||
|
|
||||||
<a href="/admin/users">All Users</a>
|
|
||||||
|
|
|
||||||
<a href="/admin/users/verify_cla">Users w/ unverified CLA</a>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function user_button_submit() {
|
function user_button_submit() {
|
||||||
var email = document.getElementById('straight_to_user').value;
|
var email = document.getElementById('straight_to_user').value;
|
||||||
|
|||||||
Reference in New Issue
Block a user