Closed
Description
# Note that 'needstriage' here is primarily used on the homepage.
# For paginated results on the /issues page,
# see /issues/search/needstriage.
# We abort with 301 here because the new endpoint has
# been replaced with needstriage.
elif issue_category == 'new':
abort(301)
I have seen that in the code today :) It doesn't seem right. :)
Let's see.
→ git log --oneline | head -3
99efc78 Merge pull request #1114 from deepthivenkat/issues/975/1
333d183 Issue #975 - Removed filter_new function and test_issues_new unit test
e98faea Issue #1088. Add pointer-events:none to non-button font icons.
→ git status
On branch master
Your branch is up-to-date with 'webcompat/master'.
nothing to commit, working directory clean
→ python run.py
secrets /Users/karl/code/webcompat.com
* Running on http://localhost:5000/ (Press CTRL+C to quit)
* Restarting with stat
secrets /Users/karl/code/webcompat.com
Then
→ http GET http://localhost:5000/api/issues/category/new 'Accept:application/json'
HTTP/1.0 500 INTERNAL SERVER ERROR
Connection: close
Content-Type: text/html; charset=utf-8
Date: Thu, 07 Jul 2016 01:42:29 GMT
Server: Werkzeug/0.10.4 Python/2.7.10
X-XSS-Protection: 0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
[…]
</html>
<!--
Traceback (most recent call last):
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/karl/code/webcompat.com/webcompat/helpers.py", line 380, in wrapped_func
return func(*args, **kwargs)
File "/Users/karl/code/webcompat.com/webcompat/api/endpoints.py", line 132, in get_issue_category
abort(301)
File "/Users/karl/.virtualenvs/webcompatcom/lib/python2.7/site-packages/werkzeug/exceptions.py", line 604, in __call__
raise LookupError('no exception for %r' % code)
LookupError: no exception for 301
-->
Metadata
Metadata
Assignees
Labels
No labels