File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 20
20
< script src ="{{ url_for('static', filename='js/lib/models/label-list.js') }} "> </ script >
21
21
< script src ="{{ url_for('static', filename='js/lib/models/issue.js') }} "> </ script >
22
22
< script src ="{{ url_for('static', filename='js/lib/untriaged.js') }} "> </ script >
23
+ {# Normally this file is in the webcompat bundle, but the form-v2 #}
24
+ {# experiment does not include it. So include it here. #}
25
+ {# this can be removed when https://github.com/webcompat/webcompat.com/issues/3034 is fixed. #}
26
+ {% if ab_active('exp') == 'form-v2' %}
27
+ < script src ="{{ url_for('static', filename='js/lib/bugform.js') }} "> </ script >
28
+ {% endif %}
23
29
{%- endif -%}
24
30
{%- endblock %}
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ def create_issue():
277
277
elif request_type == 'create' :
278
278
# Check if there is a form
279
279
if not request .form :
280
- log .info ('POST request without form.' )
280
+ log .info ('400: POST request without form.' )
281
281
abort (400 )
282
282
# Adding parameters to the form
283
283
form = request .form .copy ()
@@ -290,6 +290,7 @@ def create_issue():
290
290
url = form ['url' ].encode ('utf-8' )))
291
291
# Check if the form is valid
292
292
if not is_valid_issue_form (form ):
293
+ log .info ('400: POST request w/o valid form (is_valid_issue_form).' )
293
294
abort (400 )
294
295
if form .get ('submit_type' ) == PROXY_REPORT :
295
296
# Checking blacklisted domains
@@ -315,6 +316,7 @@ def create_issue():
315
316
session ['form' ] = form
316
317
return redirect (url_for ('login' ))
317
318
else :
319
+ log .info ('400: Something else happened.' )
318
320
abort (400 )
319
321
320
322
You can’t perform that action at this time.
0 commit comments