Merge lp:~jcsackett/charmworld/keyerror-promulgated into lp:~juju-jitsu/charmworld/trunk
Proposed by
j.c.sackett
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | j.c.sackett | ||||
Approved revision: | 406 | ||||
Merged at revision: | 403 | ||||
Proposed branch: | lp:~jcsackett/charmworld/keyerror-promulgated | ||||
Merge into: | lp:~juju-jitsu/charmworld/trunk | ||||
Diff against target: |
223 lines (+10/-124) 6 files modified
charmworld/routes.py (+1/-1) charmworld/views/api.py (+1/-0) charmworld/views/helpers.py (+0/-14) charmworld/views/search.py (+0/-50) charmworld/views/tests/test_helpers.py (+0/-13) charmworld/views/tests/test_search.py (+8/-46) |
||||
To merge this branch: | bzr merge lp:~jcsackett/charmworld/keyerror-promulgated | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Gui Bot | continuous-integration | Approve | |
Curtis Hovey (community) | code | Approve | |
Review via email: mp+188858@code.launchpad.net |
Commit message
Removes old search_json view and related items.
Description of the change
charmworld/
-------
`search_json` is removed--it is no longer used by any clients, in favor of the
API search endpoint. Use of this method by bots was the cause of the error in
the linked bug.
charmworld/
-------
The `result_sorter` function is deleted; it was only used by search_json.
Misc
----
Tests for deleted code removed.
Route for deleted code removed.
To post a comment you must log in.
If we changed route to add_route( "search- json-obsolete" , "/search/json") views/api. py config( route_name= "search- json-obsolete" ) config( route_name= "api-obsolete- 0") config( route_name= "api-obsolete- 1")
config.
then added it to the obsolete view in charmworld/
@view_
@view_
@view_
def obsolete(request):
....
We could clearly state the feature is 410 Gone. It wont show up in a list of 404s. Is there any reason that 410 is wrong? Do we want old clients to see 404?