Merge lp:~jamestait/click-reviewers-tools/add-askubuntu-links into lp:click-reviewers-tools

Proposed by James Tait
Status: Merged
Merged at revision: 551
Proposed branch: lp:~jamestait/click-reviewers-tools/add-askubuntu-links
Merge into: lp:click-reviewers-tools
Diff against target: 136 lines (+16/-11)
4 files modified
check-names.list (+6/-6)
clickreviews/cr_lint.py (+4/-2)
clickreviews/cr_online_accounts.py (+2/-1)
clickreviews/cr_security.py (+4/-2)
To merge this branch: bzr merge lp:~jamestait/click-reviewers-tools/add-askubuntu-links
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+278442@code.launchpad.net

Commit message

Add a handful of links to askubuntu questions to explain some of the rejection messages.

Description of the change

This branch adds links to a handful of questions on askubuntu, offering
explanations for some of the rejection messages developers will see in the
store.

It's worth checking out the questions and answers as well, to make sure they're
correct.

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Great work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'check-names.list'
2--- check-names.list 2015-11-11 16:05:23 +0000
3+++ check-names.list 2015-11-24 12:17:23 +0000
4@@ -78,8 +78,8 @@
5 lint:manifest_icon_empty|
6 lint:manifest_icon_present|
7 lint:package_filename_arch_match|
8-lint:package_filename_arch_valid|
9-lint:package_filename_format|
10+lint:package_filename_arch_valid|http://askubuntu.com/questions/685103/what-does-lint-package-filename-arch-valid-mean/685104
11+lint:package_filename_format|http://askubuntu.com/questions/685049/what-does-lint-package-filename-format-mean/685050
12 lint:package_filename_version_match|http://askubuntu.com/questions/417384/what-does-lint-package-filename-version-match-mean/417385
13 lint:package yaml_architecture_valid|
14 lint:package_yaml_icon_absolute_path|
15@@ -110,8 +110,8 @@
16 online_accounts:account-qml-plugin|
17 online_accounts:account-service_hook|
18 online_accounts:account-service_id|
19-online_accounts:account-service_name|
20-online_accounts:account-service_provider|
21+online_accounts:account-service_name|http://askubuntu.com/q/697173
22+online_accounts:account-service_provider|http://askubuntu.com/q/697173
23 online_accounts:account-service_root|
24 online_accounts:accounts_plugin|
25 online_accounts:accounts_service|
26@@ -145,7 +145,7 @@
27 security:policy_vendor_matches_framework|
28 security:policy_version_exists|
29 security:policy_version_is_highest|http://askubuntu.com/q/562116/94326
30-security:policy_version_matches_framework|
31+security:policy_version_matches_framework|http://askubuntu.com/q/686347
32 security:profile_name_length|
33 security:redflag_fields|
34 security:required_policy_groups_ubuntu_account_plugin|
35@@ -153,7 +153,7 @@
36 security:template_account_qml_plugin|
37 security:template_exists|
38 security:template_push_helper|
39-security:template_valid|
40+security:template_valid|http://askubuntu.com/q/671403
41 security:template_with_policy_version|
42 security:yaml_and_click|
43 security:yaml_binaries|
44
45=== modified file 'clickreviews/cr_lint.py'
46--- clickreviews/cr_lint.py 2015-11-18 15:56:23 +0000
47+++ clickreviews/cr_lint.py 2015-11-24 12:17:23 +0000
48@@ -788,11 +788,12 @@
49 t = 'info'
50 n = self._get_check_name('package_filename_format')
51 s = 'OK'
52+ l = 'http://askubuntu.com/questions/685049/what-does-lint-package-filename-format-mean/685050'
53 if len(tmp) != 3:
54 t = 'warn'
55 s = "'%s' not of form $pkgname_$version_$arch.[click|snap]" % \
56 click_package_bn
57- self._add_result(t, n, s)
58+ self._add_result(t, n, s, l)
59
60 t = 'info'
61 n = self._get_check_name('package_filename_version_match')
62@@ -818,6 +819,7 @@
63 t = 'info'
64 n = self._get_check_name('package_filename_arch_valid')
65 s = 'OK'
66+ l = 'http://askubuntu.com/questions/685103/what-does-lint-package-filename-arch-valid-mean/685104'
67 if len(tmp) >= 3:
68 if self.click_package.endswith('.snap'):
69 arch = tmp[2].partition('.snap')[0]
70@@ -837,7 +839,7 @@
71 t = 'warn'
72 s = "could not determine architecture from '%s'" % \
73 os.path.basename(self.click_package)
74- self._add_result(t, n, s)
75+ self._add_result(t, n, s, l)
76
77 t = 'info'
78 n = self._get_check_name('package_filename_arch_match')
79
80=== modified file 'clickreviews/cr_online_accounts.py'
81--- clickreviews/cr_online_accounts.py 2015-09-10 08:32:34 +0000
82+++ clickreviews/cr_online_accounts.py 2015-11-24 12:17:23 +0000
83@@ -340,6 +340,7 @@
84 if t == 'error':
85 continue
86
87+ l = 'http://askubuntu.com/q/697173'
88 for tag in ['name', 'provider']:
89 t = 'info'
90 n = self._get_check_name(
91@@ -348,7 +349,7 @@
92 if self.accounts[app][account_type].find(tag) is None:
93 t = 'error'
94 s = "Could not find '<%s>' tag" % tag
95- self._add_result(t, n, s)
96+ self._add_result(t, n, s, l)
97
98 def check_provider(self):
99 '''Check provider'''
100
101=== modified file 'clickreviews/cr_security.py'
102--- clickreviews/cr_security.py 2015-11-11 15:40:49 +0000
103+++ clickreviews/cr_security.py 2015-11-24 12:17:23 +0000
104@@ -425,13 +425,14 @@
105 found_major = True
106 if m['policy_version'] != data['policy_version']:
107 t = 'error'
108+ l = 'http://askubuntu.com/q/686347'
109 s = '%s != %s (%s)' % (str(m['policy_version']),
110 data['policy_version'],
111 framework)
112 if not found_major:
113 t = 'error'
114 s = "Invalid framework '%s'" % framework
115- self._add_result(t, n, s)
116+ self._add_result(t, n, s, l)
117
118 def check_template(self):
119 '''Check template'''
120@@ -450,6 +451,7 @@
121 t = 'info'
122 n = self._get_check_name('template_valid', extra=f)
123 s = "OK"
124+ l = 'http://askubuntu.com/q/671403'
125 manual_review = False
126 if 'template' not in m:
127 # If template not specified, we just use the default
128@@ -463,7 +465,7 @@
129 and m['template'] in self.extraneous_ubuntu_templates:
130 t = 'warn'
131 s = "No need to specify '%s' template" % m['template']
132- self._add_result(t, n, s, manual_review=manual_review)
133+ self._add_result(t, n, s, l, manual_review=manual_review)
134
135 t = 'info'
136 n = self._get_check_name('template_exists', extra=f)

Subscribers

People subscribed via source and target branches